Title: [131214] trunk
Revision
131214
Author
[email protected]
Date
2012-10-12 12:48:38 -0700 (Fri, 12 Oct 2012)

Log Message

[RequestAnimationFrame] Remove vendor prefix
https://bugs.webkit.org/show_bug.cgi?id=99116

Reviewed by Adam Barth.

Source/WebCore:

Test: Existing rAF tests without prefix.

* dom/Document.cpp:
(WebCore::Document::requestAnimationFrame):
(WebCore::Document::cancelAnimationFrame):
* dom/Document.h:
(Document):
* page/DOMWindow.cpp:
(WebCore::DOMWindow::requestAnimationFrame):
(WebCore::DOMWindow::cancelAnimationFrame):
* page/DOMWindow.h:
(DOMWindow):
* page/DOMWindow.idl:

LayoutTests:

* fast/animation/request-animation-frame-callback-id.html:
* fast/animation/request-animation-frame-cancel-expected.txt:
* fast/animation/request-animation-frame-detach-element.html:
* fast/animation/request-animation-frame-detach-element2.html:
* fast/animation/request-animation-frame-during-modal.html:
* fast/animation/request-animation-frame-iframe2.html:
* fast/animation/request-animation-frame-missing-arguments-expected.txt:
* fast/animation/request-animation-frame-missing-arguments.html:
* fast/animation/script-tests/request-animation-frame-cancel.js:
(window):
* fast/animation/script-tests/request-animation-frame-cancel2.js:
* fast/animation/script-tests/request-animation-frame-disabled.js:
* fast/animation/script-tests/request-animation-frame-subframe.html:
* fast/animation/script-tests/request-animation-frame-timestamps-advance.js:
(window.requestAnimationFrame):
* fast/animation/script-tests/request-animation-frame-timestamps.js:
* fast/animation/script-tests/request-animation-frame-within-callback.js:
(window):
* fast/animation/script-tests/request-animation-frame.js:
* fast/canvas/script-tests/canvas-imageSmoothingEnabled-repaint.js:
(BrowserPaint):
* fast/canvas/webgl/webgl-texture-binding-preserved.html:
* fast/dom/Window/post-message-crash.html:
* inspector/timeline/timeline-animation-frame.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (131213 => 131214)


--- trunk/LayoutTests/ChangeLog	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/ChangeLog	2012-10-12 19:48:38 UTC (rev 131214)
@@ -1,3 +1,35 @@
+2012-10-12  James Simonsen  <[email protected]>
+
+        [RequestAnimationFrame] Remove vendor prefix
+        https://bugs.webkit.org/show_bug.cgi?id=99116
+
+        Reviewed by Adam Barth.
+
+        * fast/animation/request-animation-frame-callback-id.html:
+        * fast/animation/request-animation-frame-cancel-expected.txt:
+        * fast/animation/request-animation-frame-detach-element.html:
+        * fast/animation/request-animation-frame-detach-element2.html:
+        * fast/animation/request-animation-frame-during-modal.html:
+        * fast/animation/request-animation-frame-iframe2.html:
+        * fast/animation/request-animation-frame-missing-arguments-expected.txt:
+        * fast/animation/request-animation-frame-missing-arguments.html:
+        * fast/animation/script-tests/request-animation-frame-cancel.js:
+        (window):
+        * fast/animation/script-tests/request-animation-frame-cancel2.js:
+        * fast/animation/script-tests/request-animation-frame-disabled.js:
+        * fast/animation/script-tests/request-animation-frame-subframe.html:
+        * fast/animation/script-tests/request-animation-frame-timestamps-advance.js:
+        (window.requestAnimationFrame):
+        * fast/animation/script-tests/request-animation-frame-timestamps.js:
+        * fast/animation/script-tests/request-animation-frame-within-callback.js:
+        (window):
+        * fast/animation/script-tests/request-animation-frame.js:
+        * fast/canvas/script-tests/canvas-imageSmoothingEnabled-repaint.js:
+        (BrowserPaint):
+        * fast/canvas/webgl/webgl-texture-binding-preserved.html:
+        * fast/dom/Window/post-message-crash.html:
+        * inspector/timeline/timeline-animation-frame.html:
+
 2012-10-12  Emil A Eklund  <[email protected]>
 
         Unreviewed chromium lucid rebaseline for r131202.

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-callback-id.html (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-callback-id.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-callback-id.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -5,7 +5,7 @@
 }
 
 function runTest() {
-    var id = window.webkitRequestAnimationFrame(function () {});
+    var id = window.requestAnimationFrame(function () {});
     var results = document.getElementById("results");
 
     if (id > 0)
@@ -19,4 +19,4 @@
 
 window.addEventListener("load", runTest, false);
 </script>
-<div id="results"></div>
\ No newline at end of file
+<div id="results"></div>

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-cancel-expected.txt (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-cancel-expected.txt	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-cancel-expected.txt	2012-10-12 19:48:38 UTC (rev 131214)
@@ -1,4 +1,4 @@
-This tests cancelling a webkitRequestAnimationFrame callback
+This tests cancelling a requestAnimationFrame callback
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-detach-element.html (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-detach-element.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-detach-element.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -6,10 +6,10 @@
 }
 window._onload_ = function() {
     var el = document.getElementsByTagName("iframe")[0];
-    window.frames[0].webkitRequestAnimationFrame(function() {
+    window.frames[0].requestAnimationFrame(function() {
         el.parentNode.removeChild(el);
     });
-    window.frames[1].webkitRequestAnimationFrame(function() {
+    window.frames[1].requestAnimationFrame(function() {
     });
 
     if (window.testRunner) {

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-detach-element2.html (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-detach-element2.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-detach-element2.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -6,7 +6,7 @@
 }
 window._onload_ = function() {
     var el = document.getElementsByTagName("iframe")[0];
-    window.frames[0].webkitRequestAnimationFrame(function() {
+    window.frames[0].requestAnimationFrame(function() {
         el.parentNode.removeChild(el);
     });
 

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-during-modal.html (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-during-modal.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-during-modal.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -12,7 +12,7 @@
 _onload_ = function()
 {
     debug('Setting callback');
-    window.webkitRequestAnimationFrame(function() { debug('Callback fired'); }, document.body);
+    window.requestAnimationFrame(function() { debug('Callback fired'); }, document.body);
     debug('Showing modal dialog');
     var src = '' +
               '    testRunner.display();' +

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-iframe2.html (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-iframe2.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-iframe2.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -16,7 +16,7 @@
             testRunner.waitUntilDone();
         }
 
-        window.webkitRequestAnimationFrame(function() {
+        window.requestAnimationFrame(function() {
             mainFrameCallbackInvoked = true;
         });
 

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments-expected.txt (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments-expected.txt	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments-expected.txt	2012-10-12 19:48:38 UTC (rev 131214)
@@ -3,8 +3,8 @@
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS webkitRequestAnimationFrame() threw exception TypeError: Not enough arguments.
-PASS webkitCancelAnimationFrame() threw exception TypeError: Not enough arguments.
+PASS requestAnimationFrame() threw exception TypeError: Not enough arguments.
+PASS cancelAnimationFrame() threw exception TypeError: Not enough arguments.
 PASS successfullyParsed is true
 
 TEST COMPLETE

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments.html (131213 => 131214)


--- trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-missing-arguments.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -6,8 +6,8 @@
 <body>
 <script>
 description('Test how animation methods react to too few arguments.');
-shouldThrow("webkitRequestAnimationFrame()");
-shouldThrow("webkitCancelAnimationFrame()");
+shouldThrow("requestAnimationFrame()");
+shouldThrow("cancelAnimationFrame()");
 </script>
 <script src=""
 </body>

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel.js (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -1,11 +1,11 @@
-description("This tests cancelling a webkitRequestAnimationFrame callback");
+description("This tests cancelling a requestAnimationFrame callback");
 
 var callbackFired = false;
 var e = document.getElementById("e");
-var id = window.webkitRequestAnimationFrame(function() {
+var id = window.requestAnimationFrame(function() {
 }, e);
 
-window.webkitCancelAnimationFrame(id);
+window.cancelAnimationFrame(id);
 
 if (window.testRunner)
     testRunner.display();

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel2.js (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel2.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-cancel2.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -5,12 +5,12 @@
 var callbackFired = false;
 var cancelFired = false;
 
-window.webkitRequestAnimationFrame(function() {
+window.requestAnimationFrame(function() {
     cancelFired = true;
-    window.webkitCancelAnimationFrame(secondCallbackId);
+    window.cancelAnimationFrame(secondCallbackId);
 }, e);
 
-secondCallbackId = window.webkitRequestAnimationFrame(function() {
+secondCallbackId = window.requestAnimationFrame(function() {
     callbackFired = true;
 }, e);
 

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-disabled.js (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-disabled.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-disabled.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -1,7 +1,7 @@
 description("Tests that requestAnimationFrame is disabled when the setting/preference is false. Note: since the setting is true by default, this usually can't be tested directly in a browser.");
 
 var callbackInvoked = false;
-window.webkitRequestAnimationFrame(function() {
+window.requestAnimationFrame(function() {
     callbackInvoked = true;
 });
 

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-subframe.html (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-subframe.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-subframe.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -5,7 +5,7 @@
 </head>
 <body>
 <script>
-    window.webkitRequestAnimationFrame(function() {
+    window.requestAnimationFrame(function() {
         parent.callbackInvoked = true;
     });
 

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-timestamps-advance.js (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-timestamps-advance.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-timestamps-advance.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -10,10 +10,10 @@
 var firstTimestamp = undefined;
 var secondTimestamp = undefined;
 
-window.webkitRequestAnimationFrame(function(timestamp) {
+window.requestAnimationFrame(function(timestamp) {
     firstTimestamp = timestamp;
     shouldBeDefined("firstTimestamp");
-    window.webkitRequestAnimationFrame(function(timestamp) {
+    window.requestAnimationFrame(function(timestamp) {
         secondTimestamp = timestamp;
         shouldBeDefined("secondTimestamp");
         shouldBeTrue("secondTimestamp > firstTimestamp");

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-timestamps.js (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-timestamps.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-timestamps.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -7,14 +7,14 @@
 
 var firstTimestamp = undefined;
 
-window.webkitRequestAnimationFrame(function(timestamp) {
+window.requestAnimationFrame(function(timestamp) {
     firstTimestamp = timestamp;
     shouldBeDefined("firstTimestamp");
     busyWait(10);
 });
 
 var secondTimestamp = undefined;
-window.webkitRequestAnimationFrame(function(timestamp) {
+window.requestAnimationFrame(function(timestamp) {
     secondTimestamp = timestamp;
     shouldBeDefined("secondTimestamp");
     shouldBe("firstTimestamp", "secondTimestamp");

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-within-callback.js (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-within-callback.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame-within-callback.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -2,15 +2,15 @@
 
 var e = document.getElementById("e");
 var sameFrame;
-window.webkitRequestAnimationFrame(function() {
+window.requestAnimationFrame(function() {
     sameFrame = true;
 }, e);
-window.webkitRequestAnimationFrame(function() {
-    window.webkitRequestAnimationFrame(function() {
+window.requestAnimationFrame(function() {
+    window.requestAnimationFrame(function() {
         shouldBeFalse("sameFrame");
     }, e);
 }, e);
-window.webkitRequestAnimationFrame(function() {
+window.requestAnimationFrame(function() {
     sameFrame = false;
 }, e);
 

Modified: trunk/LayoutTests/fast/animation/script-tests/request-animation-frame.js (131213 => 131214)


--- trunk/LayoutTests/fast/animation/script-tests/request-animation-frame.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/animation/script-tests/request-animation-frame.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -2,7 +2,7 @@
 
 var e = document.getElementById("e");
 var callbackInvoked = false;
-window.webkitRequestAnimationFrame(function() {
+window.requestAnimationFrame(function() {
     callbackInvoked = true;
 }, e);
 

Modified: trunk/LayoutTests/fast/canvas/script-tests/canvas-imageSmoothingEnabled-repaint.js (131213 => 131214)


--- trunk/LayoutTests/fast/canvas/script-tests/canvas-imageSmoothingEnabled-repaint.js	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/canvas/script-tests/canvas-imageSmoothingEnabled-repaint.js	2012-10-12 19:48:38 UTC (rev 131214)
@@ -53,7 +53,7 @@
     draw();
 	if (drawIterations > 0) {
 		drawIterations = drawIterations - 1;
-		window.webkitRequestAnimationFrame(BrowserPaint);
+		window.requestAnimationFrame(BrowserPaint);
     } else {
 	    testResult();
 	}

Modified: trunk/LayoutTests/fast/canvas/webgl/webgl-texture-binding-preserved.html (131213 => 131214)


--- trunk/LayoutTests/fast/canvas/webgl/webgl-texture-binding-preserved.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/canvas/webgl/webgl-texture-binding-preserved.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -40,8 +40,6 @@
   canvas = document.getElementById("webgl-canvas");
   context = create3DContext(canvas);
 
-  requestAnimationFrame = window.webkitRequestAnimationFrame
-
   var program = wtu.setupTexturedQuad(context);
   var bufferObjects = wtu.setupUnitQuad(context);
   var texture = wtu.createColoredTexture(context, 1, 1, [0, 0, 255, 255]);

Modified: trunk/LayoutTests/fast/dom/Window/post-message-crash.html (131213 => 131214)


--- trunk/LayoutTests/fast/dom/Window/post-message-crash.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/fast/dom/Window/post-message-crash.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -23,7 +23,7 @@
     return true;
 };
 
-webkitRequestAnimationFrame(postMessage);
+requestAnimationFrame(postMessage);
 setTimeout(postMessage);
 
 if (window.testRunner)

Modified: trunk/LayoutTests/inspector/timeline/timeline-animation-frame.html (131213 => 131214)


--- trunk/LayoutTests/inspector/timeline/timeline-animation-frame.html	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/LayoutTests/inspector/timeline/timeline-animation-frame.html	2012-10-12 19:48:38 UTC (rev 131214)
@@ -7,10 +7,10 @@
 function performActions()
 {
     var element = document.getElementById("animation");
-    var requestId = window.webkitRequestAnimationFrame(animationFrameCallback, element);
+    var requestId = window.requestAnimationFrame(animationFrameCallback, element);
     function animationFrameCallback()
     {
-        window.webkitCancelRequestAnimationFrame(requestId);
+        window.cancelAnimationFrame(requestId);
     }
 
     if (window.testRunner)

Modified: trunk/Source/WebCore/ChangeLog (131213 => 131214)


--- trunk/Source/WebCore/ChangeLog	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/Source/WebCore/ChangeLog	2012-10-12 19:48:38 UTC (rev 131214)
@@ -1,3 +1,24 @@
+2012-10-12  James Simonsen  <[email protected]>
+
+        [RequestAnimationFrame] Remove vendor prefix
+        https://bugs.webkit.org/show_bug.cgi?id=99116
+
+        Reviewed by Adam Barth.
+
+        Test: Existing rAF tests without prefix.
+
+        * dom/Document.cpp:
+        (WebCore::Document::requestAnimationFrame):
+        (WebCore::Document::cancelAnimationFrame):
+        * dom/Document.h:
+        (Document):
+        * page/DOMWindow.cpp:
+        (WebCore::DOMWindow::requestAnimationFrame):
+        (WebCore::DOMWindow::cancelAnimationFrame):
+        * page/DOMWindow.h:
+        (DOMWindow):
+        * page/DOMWindow.idl:
+
 2012-10-12  Andreas Kling  <[email protected]>
 
         REGRESSION: Rapid memory growth calling DOM APIs with large strings.

Modified: trunk/Source/WebCore/dom/Document.cpp (131213 => 131214)


--- trunk/Source/WebCore/dom/Document.cpp	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/Source/WebCore/dom/Document.cpp	2012-10-12 19:48:38 UTC (rev 131214)
@@ -5541,7 +5541,7 @@
 }
 
 #if ENABLE(REQUEST_ANIMATION_FRAME)
-int Document::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback)
+int Document::requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback)
 {
     if (!m_scriptedAnimationController) {
 #if USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
@@ -5559,7 +5559,7 @@
     return m_scriptedAnimationController->registerCallback(callback);
 }
 
-void Document::webkitCancelAnimationFrame(int id)
+void Document::cancelAnimationFrame(int id)
 {
     if (!m_scriptedAnimationController)
         return;

Modified: trunk/Source/WebCore/dom/Document.h (131213 => 131214)


--- trunk/Source/WebCore/dom/Document.h	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/Source/WebCore/dom/Document.h	2012-10-12 19:48:38 UTC (rev 131214)
@@ -1091,8 +1091,8 @@
     const DocumentTiming* timing() const { return &m_documentTiming; }
 
 #if ENABLE(REQUEST_ANIMATION_FRAME)
-    int webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>);
-    void webkitCancelAnimationFrame(int id);
+    int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>);
+    void cancelAnimationFrame(int id);
     void serviceScriptedAnimations(double monotonicAnimationStartTime);
 #endif
 

Modified: trunk/Source/WebCore/page/DOMWindow.cpp (131213 => 131214)


--- trunk/Source/WebCore/page/DOMWindow.cpp	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/Source/WebCore/page/DOMWindow.cpp	2012-10-12 19:48:38 UTC (rev 131214)
@@ -1533,17 +1533,17 @@
 }
 
 #if ENABLE(REQUEST_ANIMATION_FRAME)
-int DOMWindow::webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback)
+int DOMWindow::requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> callback)
 {
     if (Document* d = document())
-        return d->webkitRequestAnimationFrame(callback);
+        return d->requestAnimationFrame(callback);
     return 0;
 }
 
-void DOMWindow::webkitCancelAnimationFrame(int id)
+void DOMWindow::cancelAnimationFrame(int id)
 {
     if (Document* d = document())
-        d->webkitCancelAnimationFrame(id);
+        d->cancelAnimationFrame(id);
 }
 #endif
 

Modified: trunk/Source/WebCore/page/DOMWindow.h (131213 => 131214)


--- trunk/Source/WebCore/page/DOMWindow.h	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/Source/WebCore/page/DOMWindow.h	2012-10-12 19:48:38 UTC (rev 131214)
@@ -263,9 +263,8 @@
 
         // WebKit animation extensions
 #if ENABLE(REQUEST_ANIMATION_FRAME)
-        int webkitRequestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>);
-        void webkitCancelAnimationFrame(int id);
-        void webkitCancelRequestAnimationFrame(int id) { webkitCancelAnimationFrame(id); }
+        int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>);
+        void cancelAnimationFrame(int id);
 #endif
 
         // Events

Modified: trunk/Source/WebCore/page/DOMWindow.idl (131213 => 131214)


--- trunk/Source/WebCore/page/DOMWindow.idl	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/Source/WebCore/page/DOMWindow.idl	2012-10-12 19:48:38 UTC (rev 131214)
@@ -213,10 +213,11 @@
     void clearInterval(in [Optional=DefaultIsUndefined] long handle);
 
 #if defined(ENABLE_REQUEST_ANIMATION_FRAME) && ENABLE_REQUEST_ANIMATION_FRAME
-    // WebKit animation extensions, being standardized in the WebPerf WG
-    long webkitRequestAnimationFrame(in [Callback] RequestAnimationFrameCallback callback);
-    void webkitCancelAnimationFrame(in long id);
-    void webkitCancelRequestAnimationFrame(in long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix.
+    [V8MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(in [Callback] RequestAnimationFrameCallback callback);
+    void cancelAnimationFrame(in long id);
+    [ImplementedAs=requestAnimationFrame, V8MeasureAs=PrefixedRequestAnimationFrame] long webkitRequestAnimationFrame(in [Callback] RequestAnimationFrameCallback callback);
+    [ImplementedAs=cancelAnimationFrame] void webkitCancelAnimationFrame(in long id);
+    [ImplementedAs=cancelAnimationFrame] void webkitCancelRequestAnimationFrame(in long id); // This is a deprecated alias for webkitCancelAnimationFrame(). Remove this when removing vendor prefix.
 #endif
 
     // Base64

Modified: trunk/Source/WebCore/page/FeatureObserver.h (131213 => 131214)


--- trunk/Source/WebCore/page/FeatureObserver.h	2012-10-12 19:38:35 UTC (rev 131213)
+++ trunk/Source/WebCore/page/FeatureObserver.h	2012-10-12 19:48:38 UTC (rev 131214)
@@ -52,6 +52,8 @@
         OpenWebDatabase,
         LegacyHTMLNotifications,
         LegacyTextNotifications,
+        UnprefixedRequestAnimationFrame,
+        PrefixedRequestAnimationFrame,
         // Add new features above this line.
         NumberOfFeatures, // This enum value must be last.
     };
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to