[Webkit-unassigned] [Bug 128983] [CSS Shapes] SVG Image valued shape fails if root element's size is relative
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 7 16:47:47 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=128983
WebKit Commit Bot <commit-queue at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |commit-queue at webkit.org,
| |esprehn+autocc at chromium.org
| |, glenn at skynav.com,
| |kondapallykalyan at gmail.com
Build Bot <buildbot at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |buildbot at hotmail.com,
| |rniwa at webkit.org
--- Comment #2 from Hans Muller <giles_joplin at yahoo.com> 2014-03-07 15:29:12 PST ---
Created an attachment (id=226174)
--> (https://bugs.webkit.org/attachment.cgi?id=226174&action=review)
Patch
When creating a shape based on an Image, compute its dimensions using RenderBoxModelObject::calculateImageIntrinsicDimensions(), then set the ImageResource's containerSize, and then use imageForRenderer() to get the image to be drawn. The first step resolves SVG Image relative sizes, the second step creates and caches an SVGImageForContainer with the correct containerSize, and the last step retrieves the SVGImageForContainer.
--
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