Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: Source/WebCore/dom/Document.cpp

Issue 9716016: Merge 110821 - Platforms without USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR) don't need to query t… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 5282 matching lines...) Expand 10 before | Expand all | Expand 10 after
5293 5293
5294 void Document::loadEventDelayTimerFired(Timer<Document>*) 5294 void Document::loadEventDelayTimerFired(Timer<Document>*)
5295 { 5295 {
5296 if (frame()) 5296 if (frame())
5297 frame()->loader()->checkCompleted(); 5297 frame()->loader()->checkCompleted();
5298 } 5298 }
5299 5299
5300 #if ENABLE(REQUEST_ANIMATION_FRAME) 5300 #if ENABLE(REQUEST_ANIMATION_FRAME)
5301 int Document::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallba ck> callback, Element* animationElement) 5301 int Document::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallba ck> callback, Element* animationElement)
5302 { 5302 {
5303 if (!m_scriptedAnimationController) 5303 if (!m_scriptedAnimationController) {
5304 #if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
5304 m_scriptedAnimationController = ScriptedAnimationController::create(this , page()->displayID()); 5305 m_scriptedAnimationController = ScriptedAnimationController::create(this , page()->displayID());
5306 #else
5307 m_scriptedAnimationController = ScriptedAnimationController::create(this , 0);
5308 #endif
5309 }
5305 5310
5306 return m_scriptedAnimationController->registerCallback(callback, animationEl ement); 5311 return m_scriptedAnimationController->registerCallback(callback, animationEl ement);
5307 } 5312 }
5308 5313
5309 void Document::webkitCancelAnimationFrame(int id) 5314 void Document::webkitCancelAnimationFrame(int id)
5310 { 5315 {
5311 if (!m_scriptedAnimationController) 5316 if (!m_scriptedAnimationController)
5312 return; 5317 return;
5313 m_scriptedAnimationController->cancelCallback(id); 5318 m_scriptedAnimationController->cancelCallback(id);
5314 } 5319 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
5404 5409
5405 NodeListsNodeData* data = rareData()->nodeLists(); 5410 NodeListsNodeData* data = rareData()->nodeLists();
5406 5411
5407 String localTypeNames = typeNames.isNull() ? String("http://webkit.org/micro data/undefinedItemType") : typeNames; 5412 String localTypeNames = typeNames.isNull() ? String("http://webkit.org/micro data/undefinedItemType") : typeNames;
5408 ASSERT_UNUSED(list, list == data->m_microDataItemListCache.get(localTypeName s)); 5413 ASSERT_UNUSED(list, list == data->m_microDataItemListCache.get(localTypeName s));
5409 data->m_microDataItemListCache.remove(localTypeNames); 5414 data->m_microDataItemListCache.remove(localTypeNames);
5410 } 5415 }
5411 #endif 5416 #endif
5412 5417
5413 } // namespace WebCore 5418 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698