| Summary: | [CSS Shapes] SVG Image valued shape fails if root element's size is relative | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Hans Muller <giles_joplin> | ||||||||
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | buildbot, commit-queue, esprehn+autocc, glenn, kling, kondapallykalyan, rniwa | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Hans Muller
2014-02-18 11:13:37 PST
Created attachment 224525 [details]
Test case.
Created attachment 226174 [details]
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.
Comment on attachment 226174 [details] Patch Attachment 226174 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4806239699599360 New failing tests: editing/unsupported-content/list-delete-001.html editing/unsupported-content/table-type-after.html editing/unsupported-content/list-type-after.html editing/unsupported-content/list-type-before.html editing/unsupported-content/table-type-before.html Created attachment 226185 [details]
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-16 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Comment on attachment 226174 [details] Patch Clearing flags on attachment: 226174 Committed r165387: <http://trac.webkit.org/changeset/165387> All reviewed patches have been landed. Closing bug. |