Bug 78162 - With opaque borders, RenderBoxModelObject should avoid tiled drawing of the background image
Summary: With opaque borders, RenderBoxModelObject should avoid tiled drawing of the b...
Status: RESOLVED DUPLICATE of bug 37241
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matthew Delaney
URL: data:text/html,%3Cdiv%20style=%22heig...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-02-08 15:23 PST by Matthew Delaney
Modified: 2012-02-08 23:47 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Delaney 2012-02-08 15:23:01 PST
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.
Comment 1 Radar WebKit Bug Importer 2012-02-08 17:34:47 PST
<rdar://problem/10832889>
Comment 2 Simon Fraser (smfr) 2012-02-08 23:47:51 PST

*** This bug has been marked as a duplicate of bug 37241 ***