Reviewed by Eric, landed by Maciej.
* svg/custom/class-selector.svg: Added.
WebCore:
Reviewed by Eric, landed by Maciej.
Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7627:
SVG from the W3C SVG 1.1 test suite (cubic01.svg) renders as all black
Fix this svg stylesheet to use strict-mode, as this makes sure
class selecting is done correctly.
* ksvg2/svg/SVGStyleElement.cpp:
(SVGStyleElement::childrenChanged):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13711
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-04-04 Rob Buis <buis@kde.org>
+
+ Reviewed by Eric, landed by Maciej.
+
+ * svg/custom/class-selector.svg: Added.
+
2006-04-04 Maciej Stachowiak <mjs@apple.com>
Reviewed by Anders.
--- /dev/null
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
+<style type="text/css"><![CDATA[
+.Foo { fill: green; stroke-width:2 }
+]]></style>
+<rect class="Foo" x="100" y="100" width="200" height="200"/>
+</svg>
+2006-04-04 Rob Buis <buis@kde.org>
+
+ Reviewed by Eric, landed by Maciej.
+
+ Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7627:
+ SVG from the W3C SVG 1.1 test suite (cubic01.svg) renders as all black
+
+ Fix this svg stylesheet to use strict-mode, as this makes sure
+ class selecting is done correctly.
+
+ * ksvg2/svg/SVGStyleElement.cpp:
+ (SVGStyleElement::childrenChanged):
+
2006-04-05 Justin Garcia <justin.garcia@apple.com>
Reviewed by mjs
m_loading = true;
m_sheet = new CSSStyleSheet(this);
- m_sheet->parseString(textContent(), false);//!document()->inCompatMode());
+ m_sheet->parseString(textContent()); // SVG css is always parsed in strict mode
MediaList *mediaList = new MediaList(m_sheet.get(), _media);
m_sheet->setMedia(mediaList);