Reviewed by eseidel.
authorrwlbuis <rwlbuis@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Sep 2006 08:07:55 +0000 (08:07 +0000)
committerrwlbuis <rwlbuis@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Sep 2006 08:07:55 +0000 (08:07 +0000)
        http://bugzilla.opendarwin.org/show_bug.cgi?id=10977
        SVGDocument does not expose 'rootElement' property

        Enable 'rootElement' property.

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

LayoutTests/ChangeLog
LayoutTests/svg/custom/rootelement-expected.checksum [new file with mode: 0644]
LayoutTests/svg/custom/rootelement-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/rootelement-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/rootelement.svg [new file with mode: 0644]
WebCore/ChangeLog
WebCore/ksvg2/svg/SVGDocument.idl

index 4fc1f862d10ebf3cc4fcf7b8c12fc9be3d9d8844..974ebe115435f958092fb44547a9b2c845566330 100644 (file)
@@ -1,3 +1,16 @@
+2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed by eseidel.
+
+        Testcase for:
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=10977
+        SVGDocument does not expose 'rootElement' property
+
+        * svg/custom/rootelement-expected.checksum: Added.
+        * svg/custom/rootelement-expected.png: Added.
+        * svg/custom/rootelement-expected.txt: Added.
+        * svg/custom/rootelement.svg: Added.
+
 2006-09-21  Timothy Hatcher  <timothy@apple.com>
 
         Adding more calls to layoutTestController.dumpChildFrameScrollPositions()
diff --git a/LayoutTests/svg/custom/rootelement-expected.checksum b/LayoutTests/svg/custom/rootelement-expected.checksum
new file mode 100644 (file)
index 0000000..3a4f1f7
--- /dev/null
@@ -0,0 +1 @@
+16310588467cfc20d551635abc59b784
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/rootelement-expected.png b/LayoutTests/svg/custom/rootelement-expected.png
new file mode 100644 (file)
index 0000000..3db2634
Binary files /dev/null and b/LayoutTests/svg/custom/rootelement-expected.png differ
diff --git a/LayoutTests/svg/custom/rootelement-expected.txt b/LayoutTests/svg/custom/rootelement-expected.txt
new file mode 100644 (file)
index 0000000..d98866f
--- /dev/null
@@ -0,0 +1,5 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+    KCanvasContainer {svg} at (0,0) size 100x100
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
+      KCanvasItem {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00L100.00,0.00L100.00,100.00L0.00,100.00"]
diff --git a/LayoutTests/svg/custom/rootelement.svg b/LayoutTests/svg/custom/rootelement.svg
new file mode 100644 (file)
index 0000000..d6df8db
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg">
+  <rect id="red" width="100" height="100" fill="red" />
+  <script type="text/javascript">
+  <![CDATA[
+    var red = document.getElementById('red');
+    var green = document.createElementNS("http://www.w3.org/2000/svg", "rect");
+    green.setAttribute("width", "100");
+    green.setAttribute("height", "100");
+    green.setAttribute("fill", "green");
+    red.ownerDocument.rootElement.appendChild(green);
+  ]]>
+  </script>
+</svg>
index 0dac6bdfad0cf1b4aa8d23dc2c134b693b705dde..4eeafb22d7a86ae9ff5414e60d3edb36fad32810 100644 (file)
@@ -1,3 +1,14 @@
+2006-09-21  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed by eseidel.
+
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=10977
+        SVGDocument does not expose 'rootElement' property
+
+        Enable 'rootElement' property.
+
+        * ksvg2/svg/SVGDocument.idl:
+
 2006-09-21  Steve Falkenburg  <sfalken@apple.com>
 
         Tweak includes.
index 68eee7a3b1dcf31927553e02aa7bb19a19b2c981..5042036eea2a922f6a4e3ef384155d14d4dacbdc 100644 (file)
@@ -27,7 +27,7 @@ module svg {
         readonly attribute core::DOMString      referrer;
         readonly attribute core::DOMString      domain;
         readonly attribute core::DOMString      URL;
-        //readonly attribute SVGSVGElement      rootElement; // FIXME: SVGSVGElement is not yet generated due to dependencies.
+        readonly attribute SVGSVGElement        rootElement;
 
         // Overwrite the one in events::DocumentEvent
         events::Event createEvent(in core::DOMString eventType)