[Webkit-unassigned] [Bug 44047] Stylesheets that use local references are treated as local to the SVG document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 26 12:58:27 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=44047


Rob Buis <rwlbuis at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rwlbuis at gmail.com




--- Comment #2 from Rob Buis <rwlbuis at gmail.com>  2010-08-26 12:58:27 PST ---
It seems to me these checks can be done on three levels:

1 at the css parser level, perfectly possible but computed values for url(#foo) will not
show and that is not what I see in Opera and FF.

2 at the css style selector level, checking the stylesheet baseURL with the doc URL seems
not reliable though when doing run-webkit-tests, I suspect the static cache in
StyledElement.cpp.

3 at rendering time, this has the drawback of slowing down painting.

Since 2 seems the most reasonable (computed values ok and no painting speed loss) I went for
that in my WIP patch. I think right now checking for data: is enough as xml-stylesheet referncing
an external stylesheet seems to wok in all implementations (see for instance LayoutTests/svg/batik/paints/gradientLimit.svg).

I have a testcase handy, just wanted to show the patch and maybe get some feedback on whether this is the right approach.
Cheers,

Rob.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list