Changeset 148618 in webkit
- Timestamp:
- Apr 17, 2013 11:16:52 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r148617 r148618 1 2013-04-17 Bruno de Oliveira Abinader <bruno.abinader@basyskom.com> 2 3 [refactor] Moved ScriptedAnimationController common code to inline function 4 https://bugs.webkit.org/show_bug.cgi?id=114681 5 6 Reviewed by Daniel Bates. 7 8 Avoided duplicated code by moving ScriptedAnimationController clearance 9 code to a common function used by both Document::dispose() and 10 Document::detach(). 11 12 No new tests, no behavior changes. 13 14 * dom/Document.cpp: 15 (WebCore::Document::dispose): 16 (WebCore::Document::detach): 17 (WebCore::Document::clearScriptedAnimationController): Added. 18 * dom/Document.h: 19 (Document): 20 1 21 2013-04-17 Chris Fleizach <cfleizach@apple.com> 2 22 -
trunk/Source/WebCore/dom/Document.cpp
r148395 r148618 696 696 697 697 #if ENABLE(REQUEST_ANIMATION_FRAME) 698 // FIXME: consider using ActiveDOMObject. 699 if (m_scriptedAnimationController) 700 m_scriptedAnimationController->clearDocumentPointer(); 701 m_scriptedAnimationController.clear(); 698 clearScriptedAnimationController(); 702 699 #endif 703 700 } … … 2118 2115 2119 2116 #if ENABLE(REQUEST_ANIMATION_FRAME) 2120 // FIXME: consider using ActiveDOMObject. 2121 if (m_scriptedAnimationController) 2122 m_scriptedAnimationController->clearDocumentPointer(); 2123 m_scriptedAnimationController.clear(); 2117 clearScriptedAnimationController(); 2124 2118 #endif 2125 2119 … … 5628 5622 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationStartTime); 5629 5623 } 5624 5625 void Document::clearScriptedAnimationController() 5626 { 5627 // FIXME: consider using ActiveDOMObject. 5628 if (m_scriptedAnimationController) 5629 m_scriptedAnimationController->clearDocumentPointer(); 5630 m_scriptedAnimationController.clear(); 5631 } 5630 5632 #endif 5631 5633 -
trunk/Source/WebCore/dom/Document.h
r148289 r148618 1544 1544 1545 1545 #if ENABLE(REQUEST_ANIMATION_FRAME) 1546 void clearScriptedAnimationController(); 1546 1547 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; 1547 1548 #endif
Note: See TracChangeset
for help on using the changeset viewer.