Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Issue 1675823002: Force bleed avoidance for some background image rendering (Closed)

Created:
4 years, 10 months ago by Stephen Chennney
Modified:
4 years, 10 months ago
Reviewers:
f(malita), jbroman
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Force bleed avoidance for some background image rendering When an element has both a background color and a background image, or multiple background images, the back-most color is intended to come through when the image has transparency. But when the element also has a border radius there may be bleeding among the background colors at the border, even for opaque images, due to the layers being clipped separately and then composited. This patch checks for the specific situation and applies the necessary bleed avoidance strategy. R=fmalita@chromium.org BUG=581616 Committed: https://crrev.com/46a5c2196e3746c376c1bdf75a8339732cd373b0 Cr-Commit-Position: refs/heads/master@{#376543}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test for opaque top layer #

Patch Set 3 : removed a bad check #

Total comments: 2

Patch Set 4 : Make sure we are actually drawing over something #

Patch Set 5 : Image over image test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/backgrounds/background-color-image-border-radius-bleed.html View 1 chunk +11 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/backgrounds/background-color-image-border-radius-bleed-expected.png View Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/fast/backgrounds/background-color-image-border-radius-bleed-expected.txt View 1 chunk +1 line, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/backgrounds/background-multi-image-border-radius-bleed.html View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/backgrounds/background-multi-image-border-radius-bleed-expected.png View 1 2 3 4 Binary file 0 comments Download
A + third_party/WebKit/LayoutTests/fast/backgrounds/background-multi-image-border-radius-bleed-expected.txt View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxDecorationData.cpp View 1 2 3 2 chunks +15 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPainter.cpp View 1 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 39 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675823002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675823002/1
4 years, 10 months ago (2016-02-05 21:46:03 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-06 02:36:32 UTC) #4
Stephen Chennney
Any takers to review this?
4 years, 10 months ago (2016-02-09 20:59:26 UTC) #6
jbroman
lgtm https://codereview.chromium.org/1675823002/diff/1/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp File third_party/WebKit/Source/core/paint/BoxDecorationData.cpp (right): https://codereview.chromium.org/1675823002/diff/1/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp#newcode50 third_party/WebKit/Source/core/paint/BoxDecorationData.cpp:50: const ComputedStyle& boxStyle = *layoutBox.style(); nit: *layoutBox.style() equivalent ...
4 years, 10 months ago (2016-02-09 22:06:21 UTC) #7
f(malita)
https://codereview.chromium.org/1675823002/diff/1/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp File third_party/WebKit/Source/core/paint/BoxDecorationData.cpp (right): https://codereview.chromium.org/1675823002/diff/1/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp#newcode55 third_party/WebKit/Source/core/paint/BoxDecorationData.cpp:55: if (backgroundColor.alpha() && boxStyle.hasBackgroundImage() && hasBorderRadius) { I think ...
4 years, 10 months ago (2016-02-09 22:07:39 UTC) #8
f(malita)
It'd be a good idea to also try a CT10k run with this, to make ...
4 years, 10 months ago (2016-02-09 22:10:44 UTC) #9
Stephen Chennney
On 2016/02/09 22:07:39, f(malita) wrote: > https://codereview.chromium.org/1675823002/diff/1/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp > File third_party/WebKit/Source/core/paint/BoxDecorationData.cpp (right): > > https://codereview.chromium.org/1675823002/diff/1/third_party/WebKit/Source/core/paint/BoxDecorationData.cpp#newcode55 > ...
4 years, 10 months ago (2016-02-12 19:57:28 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675823002/20001
4 years, 10 months ago (2016-02-12 22:02:45 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675823002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675823002/40001
4 years, 10 months ago (2016-02-12 22:06:47 UTC) #14
Stephen Chennney
Cluster telemetry is testing the new version. The older version has no real net perf ...
4 years, 10 months ago (2016-02-12 22:07:54 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/21570)
4 years, 10 months ago (2016-02-12 22:11:45 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675823002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675823002/60001
4 years, 10 months ago (2016-02-15 14:40:27 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-15 16:03:27 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675823002/80001
4 years, 10 months ago (2016-02-16 19:50:24 UTC) #23
Stephen Chennney
I think this is now ready to land. fmalita@, could you give your OK. I ...
4 years, 10 months ago (2016-02-16 19:51:45 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-16 21:00:02 UTC) #26
f(malita)
On 2016/02/16 19:51:45, Stephen Chenney wrote: > I think this is now ready to land. ...
4 years, 10 months ago (2016-02-19 20:31:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675823002/80001
4 years, 10 months ago (2016-02-19 20:34:14 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/24618)
4 years, 10 months ago (2016-02-19 20:52:35 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675823002/80001
4 years, 10 months ago (2016-02-19 21:09:48 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-19 21:49:12 UTC) #37
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 21:50:28 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/46a5c2196e3746c376c1bdf75a8339732cd373b0
Cr-Commit-Position: refs/heads/master@{#376543}

Powered by Google App Engine
This is Rietveld 408576698