Commit 3a2d0c35 authored by eseidel's avatar eseidel

2007-01-15 Eric Seidel <eric@webkit.org>

        Reviewed by hyatt.

        Don't map attributes in namespaces other than null to CSS properties.
        
        Test: svg/custom/attribute-namespace-check.svg

        * ksvg2/svg/SVGStyledElement.cpp:
        (WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):



git-svn-id: svn://svn.chromium.org/blink/trunk@18879 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a6189a1f
2007-01-15 Eric Seidel <eric@webkit.org>
Reviewed by hyatt.
Don't map attributes in namespaces other than null to CSS properties.
* svg/custom/attribute-namespace-check-expected.checksum: Added.
* svg/custom/attribute-namespace-check-expected.png: Added.
* svg/custom/attribute-namespace-check-expected.txt: Added.
* svg/custom/attribute-namespace-check.svg: Added.
2007-01-15 Darin Adler <darin@apple.com> 2007-01-15 Darin Adler <darin@apple.com>
- test for http://bugs.webkit.org/show_bug.cgi?id=12190 - test for http://bugs.webkit.org/show_bug.cgi?id=12190
...@@ -109,7 +120,7 @@ ...@@ -109,7 +120,7 @@
* svg/custom/viewBox-hit-expected.txt: Added. * svg/custom/viewBox-hit-expected.txt: Added.
* svg/custom/viewBox-hit.svg: Added. * svg/custom/viewBox-hit.svg: Added.
2007-01-15 Eric Seidel <eric@eseidel.com> 2007-01-15 Eric Seidel <eric@webkit.org>
Reviewed by mjs. Reviewed by mjs.
16310588467cfc20d551635abc59b784
\ No newline at end of file
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
RenderSVGContainer {svg} at (0,0) size 100x100
RenderSVGContainer {g} at (0,0) size 100x100
RenderPath {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"]
<svg xmlns='http://www.w3.org/2000/svg' xmlns:bogus='http://www.example.com' width='100px' height='100px'>
<g fill='green'>
<rect width='100' height='100' bogus:fill='red' />
</g>
</svg>
2007-01-15 Eric Seidel <eric@webkit.org>
Reviewed by hyatt.
Don't map attributes in namespaces other than null to CSS properties.
Test: svg/custom/attribute-namespace-check.svg
* ksvg2/svg/SVGStyledElement.cpp:
(WebCore::SVGStyledElement::cssPropertyIdForSVGAttributeName):
2007-01-15 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk> 2007-01-15 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
Reviewed by Darin. Reviewed by Darin.
......
...@@ -87,6 +87,9 @@ static inline void mapAttributeToCSSProperty(HashMap<AtomicStringImpl*, int>* pr ...@@ -87,6 +87,9 @@ static inline void mapAttributeToCSSProperty(HashMap<AtomicStringImpl*, int>* pr
int SVGStyledElement::cssPropertyIdForSVGAttributeName(const QualifiedName& attrName) int SVGStyledElement::cssPropertyIdForSVGAttributeName(const QualifiedName& attrName)
{ {
if (!attrName.namespaceURI().isNull())
return 0;
static HashMap<AtomicStringImpl*, int>* propertyNameToIdMap = 0; static HashMap<AtomicStringImpl*, int>* propertyNameToIdMap = 0;
if (!propertyNameToIdMap) { if (!propertyNameToIdMap) {
propertyNameToIdMap = new HashMap<AtomicStringImpl*, int>; propertyNameToIdMap = new HashMap<AtomicStringImpl*, int>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment