Bug 103409

Summary: Use render box background over border draw strategy in cases with background-image
Product: WebKit Reporter: Justin Novosad <junov>
Component: New BugsAssignee: Justin Novosad <junov>
Status: RESOLVED FIXED    
Severity: Normal CC: adamk, dglazkov, eric, ojan, senorblanco, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Justin Novosad
Reported 2012-11-27 07:23:44 PST
Use render box background over border draw strategy in cases with background-image
Attachments
Patch (3.97 KB, patch)
2012-11-27 07:32 PST, Justin Novosad
no flags
Patch (5.47 KB, patch)
2012-12-05 11:25 PST, Justin Novosad
no flags
Justin Novosad
Comment 1 2012-11-27 07:32:18 PST
Simon Fraser (smfr)
Comment 2 2012-11-27 08:49:40 PST
Comment on attachment 176264 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176264&action=review > Source/WebCore/rendering/RenderBox.cpp:924 > + // If there is only one layer and no image, check whether the background color is opaque > + if (!fillLayer->next() && !fillLayer->hasImage()) { > + Color bgColor = style()->visitedDependentColor(CSSPropertyBackgroundColor); > + if (bgColor.isValid() && bgColor.alpha() == 255) > + return true; > + } What about an alpha image plus an opaque color?
Justin Novosad
Comment 3 2012-11-27 09:21:58 PST
(In reply to comment #2) > > What about an alpha image plus an opaque color? That could lead to color bleeding of the background color at the anti-aliased edges of rounded corners, so we want to use the TransparencyLayer strategy in that case.
WebKit Review Bot
Comment 4 2012-11-27 18:13:18 PST
Comment on attachment 176264 [details] Patch Attachment 176264 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15025186 New failing tests: fast/backgrounds/gradient-background-leakage-2.html
WebKit Review Bot
Comment 5 2012-11-27 18:35:26 PST
Comment on attachment 176264 [details] Patch Attachment 176264 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/15031059 New failing tests: fast/backgrounds/gradient-background-leakage-2.html
Justin Novosad
Comment 6 2012-12-05 11:25:40 PST
Justin Novosad
Comment 7 2012-12-12 07:57:55 PST
Review ping.
WebKit Review Bot
Comment 8 2012-12-12 09:12:38 PST
Comment on attachment 177800 [details] Patch Clearing flags on attachment: 177800 Committed r137473: <http://trac.webkit.org/changeset/137473>
WebKit Review Bot
Comment 9 2012-12-12 09:12:42 PST
All reviewed patches have been landed. Closing bug.
Adam Klein
Comment 11 2012-12-12 11:10:47 PST
Filed bug 104825 to track the image diffs in calendar-picker.
Note You need to log in before you can comment on or make changes to this bug.