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

Description Justin Novosad 2012-11-27 07:23:44 PST
Use render box background over border draw strategy in cases with background-image
Comment 1 Justin Novosad 2012-11-27 07:32:18 PST
Created attachment 176264 [details]
Patch
Comment 2 Simon Fraser (smfr) 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?
Comment 3 Justin Novosad 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.
Comment 4 WebKit Review Bot 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
Comment 5 WebKit Review Bot 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
Comment 6 Justin Novosad 2012-12-05 11:25:40 PST
Created attachment 177800 [details]
Patch
Comment 7 Justin Novosad 2012-12-12 07:57:55 PST
Review ping.
Comment 8 WebKit Review Bot 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>
Comment 9 WebKit Review Bot 2012-12-12 09:12:42 PST
All reviewed patches have been landed.  Closing bug.
Comment 11 Adam Klein 2012-12-12 11:10:47 PST
Filed bug 104825 to track the image diffs in calendar-picker.