Bug 78162
Summary: | With opaque borders, RenderBoxModelObject should avoid tiled drawing of the background image | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matthew Delaney <mdelaney7> |
Component: | Layout and Rendering | Assignee: | Matthew Delaney <mdelaney7> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | mdelaney7, simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | data:text/html,%3Cdiv%20style=%22height:300px;width:300px;background-image:-webkit-repeating-linear-gradient(top%20left,%20red%2010%25,%20blue%2030%25);border:10px%20solid%22%3E |
Matthew Delaney
Consider these two cases:
1) data:text/html,%3Cdiv%20style=%22height:300px;width:300px;background-image:-webkit-repeating-linear-gradient(top%20left,%20red%2010%25,%20blue%2030%25);border:10px%20solid%22%3E
2) data:text/html,%3Cdiv%20style=%22height:300px;width:300px;background-image:-webkit-repeating-linear-gradient(top%20left,%20red%2010%25,%20blue%2030%25);border:10px%20solid%20transparent%22%3E
The only difference is that 1) has a black fully-opaque border and 2) is transparent. In either case, we always draw in the 9-tile case (with the tiles behind the border). Most often, borders are opaque which would save us a bit of work to avoid drawing the full pattern.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/10832889>
Simon Fraser (smfr)
*** This bug has been marked as a duplicate of bug 37241 ***