[Webkit-unassigned] [Bug 11973] WebKit does not respect boundingbox percentages larger than 1 (aka 100%)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 25 22:34:58 PST 2006
http://bugs.webkit.org/show_bug.cgi?id=11973
------- Comment #3 from macdome at opendarwin.org 2006-12-25 22:34 PDT -------
Created an attachment (id=12024)
--> (http://bugs.webkit.org/attachment.cgi?id=12024&action=view)
partial fix
Attached is a partial fix. It's only partial because it breaks most patterns
(and strangely enough, some gradients?). Our pattern code is actually now
"more correct", but as a result allocates needlessly large image buffers for
drawing the tile into. We need to add some code to make tile drawing smarter,
to scale the tile down to only the size necessary before allocating the
ImageBuffer. As a quick hack, we could simply divide by 100 (the previous
behavior) or scale it down to just the size of the element-using-the-pattern's
bounding box. The best solution is to add a method which calculates the actual
size of the pattern tile as it is to be rendered to the screen, and then
allocate the ImageBuffer for that resolution. This same sort of
"finalRenderedSize()" function would be useful for the filter code as well
(which already exhibits this same scaling problem).
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list