Changeset 102612 in webkit
- Timestamp:
- Dec 12, 2011 12:58:15 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r102609 r102612 1 2011-12-12 James Robinson <jamesr@chromium.org> 2 3 Rename webkitCancelRequestAnimationFrame to webkitCancelAnimationFrame to match spec change 4 https://bugs.webkit.org/show_bug.cgi?id=74231 5 6 Reviewed by Simon Fraser. 7 8 Update requestAnimationFrame tests to refer to the new function name. 9 10 * fast/animation/request-animation-frame-missing-arguments.html: 11 * fast/animation/script-tests/request-animation-frame-cancel.js: 12 (window): 13 * fast/animation/script-tests/request-animation-frame-cancel2.js: 14 1 15 2011-12-12 Kenneth Russell <kbr@google.com> 2 16 -
trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments-expected.txt
r94769 r102612 5 5 6 6 PASS webkitRequestAnimationFrame() threw exception TypeError: Not enough arguments. 7 PASS webkitCancel RequestAnimationFrame() threw exception TypeError: Not enough arguments.7 PASS webkitCancelAnimationFrame() threw exception TypeError: Not enough arguments. 8 8 PASS successfullyParsed is true 9 9 -
trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments.html
r98407 r102612 8 8 description('Test how animation methods react to too few arguments.'); 9 9 shouldThrow("webkitRequestAnimationFrame()"); 10 shouldThrow("webkitCancel RequestAnimationFrame()");10 shouldThrow("webkitCancelAnimationFrame()"); 11 11 </script> 12 12 <script src="../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel.js
r98407 r102612 6 6 }, e); 7 7 8 window.webkitCancel RequestAnimationFrame(id);8 window.webkitCancelAnimationFrame(id); 9 9 10 10 if (window.layoutTestController) -
trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel2.js
r98407 r102612 8 8 window.webkitRequestAnimationFrame(function() { 9 9 cancelFired = true; 10 window.webkitCancel RequestAnimationFrame(secondCallbackId);10 window.webkitCancelAnimationFrame(secondCallbackId); 11 11 }, e); 12 12 -
trunk/Source/WebCore/ChangeLog
r102611 r102612 1 2011-12-12 James Robinson <jamesr@chromium.org> 2 3 Rename webkitCancelRequestAnimationFrame to webkitCancelAnimationFrame to match spec change 4 https://bugs.webkit.org/show_bug.cgi?id=74231 5 6 Reviewed by Simon Fraser. 7 8 The RequestAnimationFrame spec has renamed cancelRequestAnimationFrame to cancelAnimationFrame in response to 9 feedback from Mozilla and Microsoft that the old name was too long and didn't parallel setTimeout/clearTimeout 10 and setInterval/clearInterval very well. This updates our IDL to match, while preserving the old name as an 11 alias to be compatible with current content. 12 13 * dom/Document.cpp: 14 (WebCore::Document::webkitCancelAnimationFrame): 15 * dom/Document.h: 16 * page/DOMWindow.cpp: 17 (WebCore::DOMWindow::webkitCancelAnimationFrame): 18 * page/DOMWindow.h: 19 (WebCore::DOMWindow::webkitCancelRequestAnimationFrame): 20 * page/DOMWindow.idl: 21 1 22 2011-12-12 Shawn Singh <shawnsingh@chromium.org> 2 23 -
trunk/Source/WebCore/dom/Document.cpp
r102606 r102612 5146 5146 } 5147 5147 5148 void Document::webkitCancel RequestAnimationFrame(int id)5148 void Document::webkitCancelAnimationFrame(int id) 5149 5149 { 5150 5150 if (!m_scriptedAnimationController) -
trunk/Source/WebCore/dom/Document.h
r102431 r102612 1106 1106 #if ENABLE(REQUEST_ANIMATION_FRAME) 1107 1107 int webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>, Element*); 1108 void webkitCancel RequestAnimationFrame(int id);1108 void webkitCancelAnimationFrame(int id); 1109 1109 void serviceScriptedAnimations(DOMTimeStamp); 1110 1110 #endif -
trunk/Source/WebCore/page/DOMWindow.cpp
r102080 r102612 1585 1585 } 1586 1586 1587 void DOMWindow::webkitCancel RequestAnimationFrame(int id)1587 void DOMWindow::webkitCancelAnimationFrame(int id) 1588 1588 { 1589 1589 if (Document* d = document()) 1590 d->webkitCancel RequestAnimationFrame(id);1590 d->webkitCancelAnimationFrame(id); 1591 1591 } 1592 1592 #endif -
trunk/Source/WebCore/page/DOMWindow.h
r98388 r102612 255 255 #if ENABLE(REQUEST_ANIMATION_FRAME) 256 256 int webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>, Element*); 257 void webkitCancelRequestAnimationFrame(int id); 257 void webkitCancelAnimationFrame(int id); 258 void webkitCancelRequestAnimationFrame(int id) { webkitCancelAnimationFrame(id); } 258 259 #endif 259 260 -
trunk/Source/WebCore/page/DOMWindow.idl
r102572 r102612 242 242 243 243 #if defined(ENABLE_REQUEST_ANIMATION_FRAME) 244 // WebKit animation extensions 244 // WebKit animation extensions, being standardized in the WebPerf WG 245 245 long webkitRequestAnimationFrame(in [Callback] RequestAnimationFrameCallback callback, in [Optional=CallWithDefaultValue] Element element); 246 void webkitCancelRequestAnimationFrame(in long id); 246 void webkitCancelAnimationFrame(in long id); 247 void webkitCancelRequestAnimationFrame(in long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix. 247 248 #endif 248 249
Note: See TracChangeset
for help on using the changeset viewer.