Summary: | [CSS Shapes] image valued shape element margin can cause an ASSERT fail | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Hans Muller <giles_joplin> | ||||||
Component: | CSS | Assignee: | Hans Muller <giles_joplin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, esprehn+autocc, glenn, kling, kondapallykalyan | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 116348 | ||||||||
Attachments: |
|
Description
Hans Muller
2013-11-04 09:24:41 PST
Created attachment 215932 [details]
Test case.
The attached test case demonstrates that the problem is due to specifying a non-zero margin (not shape-margin) for the shape-outside element.
Created attachment 215940 [details]
Patch
When margin-top is specified for a shape's element, the Y coordinates passed to RasterShapeIntervals::getExcludedIntervals() may be negative. This is because the incoming logical coordinates are relative to the content or padding box, depending on the box-sizing property. The RasterShape::getExcludedIntervals() method now clips the incoming Y coordinates to the shape's bounds.
Comment on attachment 215940 [details] Patch Clearing flags on attachment: 215940 Committed r158596: <http://trac.webkit.org/changeset/158596> All reviewed patches have been landed. Closing bug. |