[Webkit-unassigned] [Bug 33630] SVG not rendered as background-image from data URI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 4 16:24:18 PST 2010


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





--- Comment #16 from Yael <yael.aharon at nokia.com>  2010-02-04 16:24:17 PST ---
(In reply to comment #15)
> The reason why I questioned your use of draw() was that after this change it's
> not clear to me when code should use draw() and when code should use
> renderSubTreeToImage.
> 
> I'm not sure I even remember what draw() does.  I think it was for markers.  I
> remember writing renderSubTreeToImage for SVGImage (or maybe it was for
> patterns?) though.
> 
> I find it confusing that we have two functions that do similar things and it's
> not clear from reading the code when one should be used instead of the other.

draw() goes through all the phases of drawing, while renderSubTreeToImage draws
only the PaintPhaseForeground phase.
And like you said, renderSubTreeToImage is used for patterns and filter
effects.

Ifis the area to is draw smaller than the size of the svg, we wold call draw(),
not renderSubTreeToImage(), so I thought we should solve this bug by calling
draw() also in the case that the SVG is smaller than the area it should cover.
Please see Image:drawTiled().
thanks.

-- 
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