+2007-12-20 Eric Seidel <eric@webkit.org>
+
+ Reviewed by Nikolas Zimmermann.
+
+ WebKit claims to support SVG feature strings it shouldn't
+ http://bugs.webkit.org/show_bug.cgi?id=15480
+
+ * platform/mac/svg/W3C-SVG-1.1/struct-cond-03-t-expected.checksum:
+ * platform/mac/svg/W3C-SVG-1.1/struct-cond-03-t-expected.png:
+ * platform/mac/svg/W3C-SVG-1.1/struct-cond-03-t-expected.txt:
+ * platform/mac/svg/W3C-SVG-1.1/struct-image-02-b-expected.checksum:
+ * platform/mac/svg/W3C-SVG-1.1/struct-image-02-b-expected.png:
+ * platform/mac/svg/W3C-SVG-1.1/struct-image-02-b-expected.txt:
+ * svg/custom/svg-features-expected.txt:
+ * svg/custom/svg-features.html:
+
2007-12-17 Tony Chang <idealisms@gmail.com>
Reviewed by Darin.
-2daa6aa37b25f43b63596bf174580a35
\ No newline at end of file
+fa8e105f7865f13b87545ac038de8ab4
\ No newline at end of file
RenderSVGContainer {g} at (30,20) size 420x270
RenderSVGContainer {switch} at (30,20) size 420x130
RenderSVGContainer {g} at (30,20) size 420x130
- RenderPath {rect} at (30,20) size 420x130 [fill={[type=SOLID] [color=#FF0000]}] [data="M30.00,20.00L450.00,20.00L450.00,150.00L30.00,150.00"]
- RenderSVGText {text} at (84,100) size 312x23 contains 1 chunk(s)
- RenderSVGInlineText {#text} at (0,-18) size 312x23
- chunk 1 (middle anchor) text run 1 at (84.00,100.00) startOffset 0 endOffset 35 width 312.00: "This viewer does more than SVG Tiny"
+ RenderPath {rect} at (30,20) size 420x130 [fill={[type=SOLID] [color=#00FF00]}] [data="M30.00,20.00L450.00,20.00L450.00,150.00L30.00,150.00"]
RenderSVGContainer {switch} at (30,160) size 420x130 [transform={m=((1.00,0.00)(0.00,1.00)) t=(0.00,140.00)}]
RenderSVGContainer {g} at (30,160) size 420x130
- RenderPath {rect} at (30,160) size 420x130 [fill={[type=SOLID] [color=#FF0000]}] [data="M30.00,20.00L450.00,20.00L450.00,150.00L30.00,150.00"]
- RenderSVGText {text} at (109,100) size 262x23 contains 1 chunk(s)
- RenderSVGInlineText {#text} at (0,-18) size 262x23
- chunk 1 (middle anchor) text run 1 at (109.50,100.00) startOffset 0 endOffset 30 width 261.00: "This is not an SVG Tiny Viewer"
+ RenderPath {rect} at (30,160) size 420x130 [fill={[type=SOLID] [color=#00FF00]}] [data="M30.00,20.00L450.00,20.00L450.00,150.00L30.00,150.00"]
RenderSVGText {text} at (10,340) size 264x46 contains 1 chunk(s)
RenderSVGInlineText {#text} at (0,-36) size 264x46
chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.00: "$Revision: 1.9 $"
-ffa003d57173c942f66aaa469cf6d74f
\ No newline at end of file
+2f6771211a27e3fa54b895b9ff5961f4
\ No newline at end of file
layer at (0,0) size 480x360
RenderView at (0,0) size 480x360
layer at (0,0) size 480x360
- RenderSVGRoot {svg} at (0,0) size 480x359.50
- RenderSVGContainer {g} at (0,0) size 480x300
+ RenderSVGRoot {svg} at (0,0) size 479.50x359.50
+ RenderSVGContainer {g} at (0,0) size 240x225
RenderSVGHiddenContainer {defs} at (0,0) size 0x0
RenderImage {image} at (0,0) size 240x150
RenderSVGViewportContainer {svg} at (240,0) size 240x225
RenderSVGViewportContainer {svg} at (0,150) size 240x150
RenderSVGContainer {g} at (0,150) size 240x150
RenderPath {rect} at (0,150) size 240x150 [fill={[type=SOLID] [color=#00FFFF]}] [data="M0.00,0.00L240.00,0.00L240.00,150.00L0.00,150.00"]
- RenderSVGContainer {g} at (240,150) size 240x150
- RenderSVGContainer {switch} at (240,150) size 240x150
- RenderPath {rect} at (240,150) size 240x150 [fill={[type=SOLID] [color=#008000]}] [data="M240.00,150.00L480.00,150.00L480.00,300.00L240.00,300.00"]
+ RenderSVGContainer {g} at (0,0) size 0x0
+ RenderSVGContainer {switch} at (0,0) size 0x0
RenderSVGText {text} at (10,340) size 264x46 contains 1 chunk(s)
RenderSVGInlineText {#text} at (0,-36) size 264x46
chunk 1 text run 1 at (10.00,340.00) startOffset 0 endOffset 16 width 264.00: "$Revision: 1.2 $"
-"org.w3c.svg", "1.0": true, true
-"org.w3c.svg.static", "1.0": true, true
+"org.w3c.svg", "1.0": false, false
+"org.w3c.svg.static", "1.0": false, false
"org.w3c.svg.animation", "1.0": false, false
"org.w3c.svg.dynamic", "1.0": false, false
-"org.w3c.dom", "1.0": true, true
-"org.w3c.dom.svg", "1.0": true, true
-"org.w3c.dom.svg.static", "1.0": true, true
+"org.w3c.dom", "1.0": false, false
+"org.w3c.dom.svg", "1.0": false, false
+"org.w3c.dom.svg.static", "1.0": false, false
"org.w3c.dom.svg.animation", "1.0": false, false
"org.w3c.dom.svg.dynamic", "1.0": false, false
"org.w3c.svg.all", "1.0": false, false
"org.w3c.dom.svg.all", "1.0": false, false
-"http://www.w3.org/TR/SVG11/feature#SVG", "1.1": true, true
-"http://www.w3.org/TR/SVG11/feature#SVGDOM", "1.1": true, true
-"http://www.w3.org/TR/SVG11/feature#SVG-static", "1.1": true, true
-"http://www.w3.org/TR/SVG11/feature#SVGDOM-static", "1.1": true, true
+"http://www.w3.org/TR/SVG11/feature#SVG", "1.1": false, false
+"http://www.w3.org/TR/SVG11/feature#SVGDOM", "1.1": false, false
+"http://www.w3.org/TR/SVG11/feature#SVG-static", "1.1": false, false
+"http://www.w3.org/TR/SVG11/feature#SVGDOM-static", "1.1": false, false
"http://www.w3.org/TR/SVG11/feature#SVG-animation", "1.1": false, false
"http://www.w3.org/TR/SVG11/feature#SVGDOM-animation", "1.1": false, false
"http://www.w3.org/TR/SVG11/feature#SVG-dynamic", "1.1": false, false
"http://www.w3.org/TR/SVG11/feature#ViewportAttribute", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#Shape", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#Text", "1.1": false, false
-"http://www.w3.org/TR/SVG11/feature#BasicText", "1.1": false, false
+"http://www.w3.org/TR/SVG11/feature#BasicText", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#PaintAttribute", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#BasicPaintAttribute", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#OpacityAttribute", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#BasicFilter", "1.1": false, false
"http://www.w3.org/TR/SVG11/feature#DocumentEventsAttribute", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#GraphicalEventsAttribute", "1.1": true, true
-"http://www.w3.org/TR/SVG11/feature#AnimationEventsAttribute", "1.1": true, true
-"http://www.w3.org/TR/SVG11/feature#Cursor", "1.1": false, false
+"http://www.w3.org/TR/SVG11/feature#AnimationEventsAttribute", "1.1": false, false
+"http://www.w3.org/TR/SVG11/feature#Cursor", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#Hyperlinking", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#XlinkAttribute", "1.1": true, true
-"http://www.w3.org/TR/SVG11/feature#ExternalResourcesRequired", "1.1": false, false
+"http://www.w3.org/TR/SVG11/feature#ExternalResourcesRequired", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#View", "1.1": false, false
"http://www.w3.org/TR/SVG11/feature#Script", "1.1": true, true
"http://www.w3.org/TR/SVG11/feature#Animation", "1.1": false, false
+2007-12-20 Eric Seidel <eric@webkit.org>
+
+ Reviewed by Nikolas Zimmermann.
+
+ WebKit claims to support SVG feature strings it shouldn't
+ http://bugs.webkit.org/show_bug.cgi?id=15480
+
+ * dom/DOMImplementation.cpp:
+ (WebCore::isSVG10Feature):
+ (WebCore::isSVG11Feature):
+
2007-12-20 John Sullivan <sullivan@apple.com>
Reviewed by Oliver and Geoff
static bool initialized = false;
static HashSet<StringImpl*, CaseFoldingHash> svgFeatures;
if (!initialized) {
- // TODO: features need to be uncommented when we implement them
- // 1.0 features
- addString(svgFeatures, "svg");
- addString(svgFeatures, "svg.static");
+ // Sadly, we cannot claim to implement any SVG 1.0 feature set, due to
+ // lack of Font support.
+ // http://bugs.webkit.org/show_bug.cgi?id=15480
+// addString(svgFeatures, "svg");
+// addString(svgFeatures, "svg.static");
// addString(svgFeatures, "svg.animation");
// addString(svgFeatures, "svg.dynamic");
// addString(svgFeatures, "svg.dom.animation");
// addString(svgFeatures, "svg.dom.dynamic");
- addString(svgFeatures, "dom");
- addString(svgFeatures, "dom.svg");
- addString(svgFeatures, "dom.svg.static");
+// addString(svgFeatures, "dom");
+// addString(svgFeatures, "dom.svg");
+// addString(svgFeatures, "dom.svg.static");
// addString(svgFeatures, "svg.all");
// addString(svgFeatures, "dom.svg.all");
initialized = true;
static bool initialized = false;
static HashSet<StringImpl*, CaseFoldingHash> svgFeatures;
if (!initialized) {
- // TODO: features need to be uncommented when we implement them
- // 1.1 features
- addString(svgFeatures, "SVG");
- addString(svgFeatures, "SVGDOM");
- addString(svgFeatures, "SVG-static");
- addString(svgFeatures, "SVGDOM-static");
+ // Sadly, we cannot claim to implement any of the SVG 1.1 generic feature sets
+ // lack of Font and Filter support.
+ // http://bugs.webkit.org/show_bug.cgi?id=15480
+// addString(svgFeatures, "SVG");
+// addString(svgFeatures, "SVGDOM");
+// addString(svgFeatures, "SVG-static");
+// addString(svgFeatures, "SVGDOM-static");
// addString(svgFeatures, "SVG-animation);
// addString(svgFeatures, "SVGDOM-animation);
// addString(svgFeatures, "SVG-dynamic);
// addString(svgFeatures, "SVGDOM-dynamic);
addString(svgFeatures, "CoreAttribute");
+#if ENABLE(SVG_USE)
addString(svgFeatures, "Structure");
addString(svgFeatures, "BasicStructure");
+#endif
addString(svgFeatures, "ContainerAttribute");
addString(svgFeatures, "ConditionalProcessing");
addString(svgFeatures, "Image");
addString(svgFeatures, "Style");
addString(svgFeatures, "ViewportAttribute");
addString(svgFeatures, "Shape");
-// addString(svgFeatures, "Text");
-// addString(svgFeatures, "BasicText");
+// addString(svgFeatures, "Text"); // requires altGlyph, bug 6426
+ addString(svgFeatures, "BasicText");
addString(svgFeatures, "PaintAttribute");
addString(svgFeatures, "BasicPaintAttribute");
addString(svgFeatures, "OpacityAttribute");
addString(svgFeatures, "Clip");
addString(svgFeatures, "BasicClip");
addString(svgFeatures, "Mask");
+#if ENABLE(SVG_FILTER)
// addString(svgFeatures, "Filter");
-// addString(svgFeatures, "BasicFilter");
+ addString(svgFeatures, "BasicFilter");
+#endif
addString(svgFeatures, "DocumentEventsAttribute");
addString(svgFeatures, "GraphicalEventsAttribute");
- addString(svgFeatures, "AnimationEventsAttribute");
-// addString(svgFeatures, "Cursor");
+// addString(svgFeatures, "AnimationEventsAttribute");
+ addString(svgFeatures, "Cursor");
addString(svgFeatures, "Hyperlinking");
addString(svgFeatures, "XlinkAttribute");
-// addString(svgFeatures, "ExternalResourcesRequired");
+ addString(svgFeatures, "ExternalResourcesRequired");
// addString(svgFeatures, "View");
addString(svgFeatures, "Script");
// addString(svgFeatures, "Animation");