Bug 103409 - Use render box background over border draw strategy in cases with background-image
Summary: Use render box background over border draw strategy in cases with background-...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Justin Novosad
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-27 07:23 PST by Justin Novosad
Modified: 2012-12-12 11:10 PST (History)
7 users (show)

See Also:


Attachments
Patch (3.97 KB, patch)
2012-11-27 07:32 PST, Justin Novosad
no flags Details | Formatted Diff | Diff
Patch (5.47 KB, patch)
2012-12-05 11:25 PST, Justin Novosad
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.