Changeset 141656 in webkit
- Timestamp:
- Feb 1, 2013 3:55:46 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r141622 r141656 1 2013-02-01 Benjamin Poulain <bpoulain@apple.com> 2 3 Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime 4 https://bugs.webkit.org/show_bug.cgi?id=108558 5 6 Reviewed by Dean Jackson. 7 8 * Source/autotools/symbols.filter: 9 1 10 2013-02-01 Zan Dobersek <zdobersek@igalia.com> 2 11 -
trunk/Source/WebCore/ChangeLog
r141655 r141656 1 2013-02-01 Benjamin Poulain <bpoulain@apple.com> 2 3 Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime 4 https://bugs.webkit.org/show_bug.cgi?id=108558 5 6 Reviewed by Dean Jackson. 7 8 This is a step torward killing the implicit conversion from String to AtomicString. 9 10 The animation name are AtomicString. The API is changed all the way to the callers 11 to take an AtomicString. When needed, we use explicit conversion. 12 13 * WebCore.exp.in: 14 * page/animation/AnimationController.cpp: 15 (WebCore::AnimationControllerPrivate::pauseAnimationAtTime): 16 (WebCore::AnimationController::pauseAnimationAtTime): 17 * page/animation/AnimationController.h: 18 (AnimationController): 19 * page/animation/AnimationControllerPrivate.h: 20 (AnimationControllerPrivate): 21 * page/animation/CompositeAnimation.cpp: 22 (WebCore::CompositeAnimation::pauseAnimationAtTime): 23 We should not null check the name. Getting a null name from the HashMap would be 24 an error from the tests, and the HashMap would never return a value anyway. 25 * testing/Internals.cpp: 26 (WebCore::Internals::pauseAnimationAtTimeOnPseudoElement): 27 1 28 2013-02-01 Dominic Mazzoni <dmazzoni@google.com> 2 29 -
trunk/Source/WebCore/WebCore.exp.in
r141635 r141656 542 542 __ZN7WebCore19AnimationController16resumeAnimationsEv 543 543 __ZN7WebCore19AnimationController17suspendAnimationsEv 544 __ZN7WebCore19AnimationController20pauseAnimationAtTimeEPNS_12RenderObjectERKN3WTF 6StringEd544 __ZN7WebCore19AnimationController20pauseAnimationAtTimeEPNS_12RenderObjectERKN3WTF12AtomicStringEd 545 545 __ZN7WebCore19AnimationController21pauseTransitionAtTimeEPNS_12RenderObjectERKN3WTF6StringEd 546 546 __ZN7WebCore19BackForwardListImpl10removeItemEPNS_11HistoryItemE -
trunk/Source/WebCore/page/animation/AnimationController.cpp
r141578 r141656 321 321 } 322 322 323 bool AnimationControllerPrivate::pauseAnimationAtTime(RenderObject* renderer, const String& name, double t)323 bool AnimationControllerPrivate::pauseAnimationAtTime(RenderObject* renderer, const AtomicString& name, double t) 324 324 { 325 325 if (!renderer) … … 562 562 } 563 563 564 bool AnimationController::pauseAnimationAtTime(RenderObject* renderer, const String& name, double t)564 bool AnimationController::pauseAnimationAtTime(RenderObject* renderer, const AtomicString& name, double t) 565 565 { 566 566 return m_data->pauseAnimationAtTime(renderer, name, t); -
trunk/Source/WebCore/page/animation/AnimationController.h
r137243 r141656 57 57 void notifyAnimationStarted(RenderObject*, double startTime); 58 58 59 bool pauseAnimationAtTime(RenderObject*, const String& name, double t); // To be used only for testing59 bool pauseAnimationAtTime(RenderObject*, const AtomicString& name, double t); // To be used only for testing 60 60 bool pauseTransitionAtTime(RenderObject*, const String& property, double t); // To be used only for testing 61 61 unsigned numberOfActiveAnimations(Document*) const; // To be used only for testing -
trunk/Source/WebCore/page/animation/AnimationControllerPrivate.h
r137243 r141656 88 88 bool isRunningAcceleratedAnimationOnRenderer(RenderObject*, CSSPropertyID, bool isRunningNow) const; 89 89 90 bool pauseAnimationAtTime(RenderObject*, const String& name, double t);90 bool pauseAnimationAtTime(RenderObject*, const AtomicString& name, double t); 91 91 bool pauseTransitionAtTime(RenderObject*, const String& property, double t); 92 92 unsigned numberOfActiveAnimations(Document*) const; -
trunk/Source/WebCore/page/animation/CompositeAnimation.cpp
r141314 r141656 479 479 bool CompositeAnimation::pauseAnimationAtTime(const AtomicString& name, double t) 480 480 { 481 if (!name)482 return false;483 484 481 m_keyframeAnimations.checkConsistency(); 485 482 -
trunk/Source/WebCore/testing/Internals.cpp
r141175 r141656 425 425 } 426 426 427 return frame()->animation()->pauseAnimationAtTime(pseudoElement->renderer(), animationName, pauseTime);427 return frame()->animation()->pauseAnimationAtTime(pseudoElement->renderer(), AtomicString(animationName), pauseTime); 428 428 } 429 429 -
trunk/Source/WebKit/win/WebKit.vcproj/WebKitExports.def.in
r141637 r141656 382 382 ?addUserSheet@DocumentStyleSheetCollection@WebCore@@QAEXV?$PassRefPtr@VStyleSheetContents@WebCore@@@WTF@@@Z 383 383 ??1StyleSheetContents@WebCore@@QAE@XZ 384 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABV String@WTF@@N@Z384 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVAtomicString@WTF@@N@Z 385 385 ?pseudoElement@Element@WebCore@@QBEPAVPseudoElement@2@W4PseudoId@2@@Z 386 386 ?pauseTransitionAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVString@WTF@@N@Z … … 769 769 ?addUserSheet@DocumentStyleSheetCollection@WebCore@@QAEXV?$PassRefPtr@VStyleSheetContents@WebCore@@@WTF@@@Z 770 770 ??1StyleSheetContents@WebCore@@QAE@XZ 771 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABV String@WTF@@N@Z771 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVAtomicString@WTF@@N@Z 772 772 ?pseudoElement@Element@WebCore@@QBEPAVPseudoElement@2@W4PseudoId@2@@Z 773 773 ?pauseTransitionAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVString@WTF@@N@Z … … 1155 1155 ?addUserSheet@DocumentStyleSheetCollection@WebCore@@QAEXV?$PassRefPtr@VStyleSheetContents@WebCore@@@WTF@@@Z 1156 1156 ??1StyleSheetContents@WebCore@@QAE@XZ 1157 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABV String@WTF@@N@Z1157 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVAtomicString@WTF@@N@Z 1158 1158 ?pseudoElement@Element@WebCore@@QBEPAVPseudoElement@2@W4PseudoId@2@@Z 1159 1159 ?pauseTransitionAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVString@WTF@@N@Z … … 1547 1547 ?addUserSheet@DocumentStyleSheetCollection@WebCore@@QAEXV?$PassRefPtr@VStyleSheetContents@WebCore@@@WTF@@@Z 1548 1548 ??1StyleSheetContents@WebCore@@QAE@XZ 1549 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABV String@WTF@@N@Z1549 ?pauseAnimationAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVAtomicString@WTF@@N@Z 1550 1550 ?pseudoElement@Element@WebCore@@QBEPAVPseudoElement@2@W4PseudoId@2@@Z 1551 1551 ?pauseTransitionAtTime@AnimationController@WebCore@@QAE_NPAVRenderObject@2@ABVString@WTF@@N@Z -
trunk/Source/WebKit2/ChangeLog
r141648 r141656 1 2013-02-01 Benjamin Poulain <bpoulain@apple.com> 2 3 Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime 4 https://bugs.webkit.org/show_bug.cgi?id=108558 5 6 Reviewed by Dean Jackson. 7 8 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: 9 (WKBundleFramePauseAnimationOnElementWithId): 10 * WebProcess/WebPage/WebFrame.cpp: 11 (WebKit::WebFrame::pauseAnimationOnElementWithId): 12 * WebProcess/WebPage/WebFrame.h: 13 (WebFrame): 14 1 15 2013-02-01 Anders Carlsson <andersca@apple.com> 2 16 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
r139023 r141656 100 100 bool WKBundleFramePauseAnimationOnElementWithId(WKBundleFrameRef frameRef, WKStringRef animationName, WKStringRef elementID, double time) 101 101 { 102 return toImpl(frameRef)->pauseAnimationOnElementWithId( toWTFString(animationName), toWTFString(elementID), time);102 return toImpl(frameRef)->pauseAnimationOnElementWithId(AtomicString(toWTFString(animationName)), toWTFString(elementID), time); 103 103 } 104 104 -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp
r141448 r141656 431 431 } 432 432 433 bool WebFrame::pauseAnimationOnElementWithId(const String& animationName, const String& elementID, double time)433 bool WebFrame::pauseAnimationOnElementWithId(const AtomicString& animationName, const String& elementID, double time) 434 434 { 435 435 if (!m_coreFrame) -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.h
r141448 r141656 117 117 118 118 unsigned numberOfActiveAnimations() const; 119 bool pauseAnimationOnElementWithId(const String& animationName, const String& elementID, double time);119 bool pauseAnimationOnElementWithId(const AtomicString& animationName, const String& elementID, double time); 120 120 bool pauseTransitionOnElementWithId(const String& propertyName, const String& elementID, double time); 121 121 void suspendAnimations(); -
trunk/Source/autotools/symbols.filter
r141622 r141656 159 159 _ZN7WebCore19AnimationController17suspendAnimationsEv; 160 160 _ZN7WebCore19AnimationController16resumeAnimationsEv; 161 _ZN7WebCore19AnimationController20pauseAnimationAtTimeEPNS_12RenderObjectERKN3WTF 6StringEd;161 _ZN7WebCore19AnimationController20pauseAnimationAtTimeEPNS_12RenderObjectERKN3WTF12AtomicStringEd; 162 162 _ZN7WebCore19AnimationController21pauseTransitionAtTimeEPNS_12RenderObjectERKN3WTF6StringEd; 163 163 _ZN7WebCore19InspectorController18setProfilerEnabledEb;
Note: See TracChangeset
for help on using the changeset viewer.