[Shadow DOM] Element.createShadowRoot() should be prefixed.
authormorrita@google.com <morrita@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2012 05:27:07 +0000 (05:27 +0000)
committermorrita@google.com <morrita@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Nov 2012 05:27:07 +0000 (05:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=103595

Reviewed by Kentaro Hara.

Source/WebCore:

No new tests, updated shadow-aware-create-shadow-root.html to follow the change.

* dom/Element.idl:

LayoutTests:

* fast/dom/shadow/shadow-aware-create-shadow-root.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136092 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/shadow/shadow-aware-create-shadow-root.html
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.idl

index 7b304b7..092fc7a 100644 (file)
@@ -1,3 +1,12 @@
+2012-11-28  Hajime Morrita  <morrita@google.com>
+
+        [Shadow DOM] Element.createShadowRoot() should be prefixed.
+        https://bugs.webkit.org/show_bug.cgi?id=103595
+
+        Reviewed by Kentaro Hara.
+
+        * fast/dom/shadow/shadow-aware-create-shadow-root.html:
+
 2012-11-28  Hayato Ito <hayato@chromium.org>
 
         Test the return value from Node::compareDocumentPositionMake more strictly.
index 93b1743..bdf153d 100644 (file)
@@ -6,6 +6,7 @@
 <body>
 <script>
 description("Tests for ShadowAware JS APIs.");
+Element.prototype.createShadowRoot = Element.prototype.createShadowRoot || Element.prototype.webkitCreateShadowRoot;
 
 // ShadowAware.createShadowRoot()
 var host = document.createElement('div');
index bef1333..195dda4 100644 (file)
@@ -1,3 +1,14 @@
+2012-11-28  Hajime Morrita  <morrita@google.com>
+
+        [Shadow DOM] Element.createShadowRoot() should be prefixed.
+        https://bugs.webkit.org/show_bug.cgi?id=103595
+
+        Reviewed by Kentaro Hara.
+
+        No new tests, updated shadow-aware-create-shadow-root.html to follow the change.
+
+        * dom/Element.idl:
+
 2012-11-28  Hayato Ito  <hayato@chromium.org>
 
         Node::compareDocumentPosition returns wrong value for a node in the different shadow tree.
index 8769c63..a1424c9 100644 (file)
     // ShadowAware API
 #if defined(ENABLE_SHADOW_DOM) && ENABLE_SHADOW_DOM
     [Reflect, V8EnabledAtRuntime=shadowDOM] attribute DOMString pseudo;
-    [V8EnabledAtRuntime=shadowDOM] ShadowRoot createShadowRoot() raises(DOMException);
+    [V8EnabledAtRuntime=shadowDOM, ImplementedAs=createShadowRoot] ShadowRoot webkitCreateShadowRoot() raises(DOMException);
 #endif
 
     // DOM 4