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

Issue 23483051: Blend background with existing content (Closed)

Created:
7 years, 3 months ago by boliu
Modified:
7 years ago
CC:
blink-reviews, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, trchen
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add setting to blend background with existing content If both base background color (WebView::setBaseBackgroundColor) and background color (set by document) has alpha, then the background color should be blended into existing content. This behavior is important in Android WebView, which is a view inside the Android view tree and needs to blend with views below it. Internal bug: 10750978 BUG= PS10 committed in r163657 and reverted in r163699 due to test failing on android since android has different color ordering. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163717

Patch Set 1 #

Patch Set 2 : s/hasAlpha/alpha #

Patch Set 3 : Fix fast/backgrounds/gradient-background-shadow.html #

Patch Set 4 : Add setting #

Patch Set 5 : Fix current condition, rename setting #

Patch Set 6 : default to true #

Patch Set 7 : Default to false again #

Total comments: 1

Patch Set 8 : Rename setting to ShouldClearDocumentBackground #

Patch Set 9 : rebase r163463 #

Patch Set 10 : Add a WebViewTest #

Patch Set 11 : fix test in android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -18 lines) Patch
M Source/core/page/Settings.in View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderBoxModelObject.cpp View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -18 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +33 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
boliu
Up for initial review. No tests yet. I only implemented what I _thought_ was correct ...
7 years, 3 months ago (2013-09-17 18:19:36 UTC) #1
aelias_OOO_until_Jul13
Keep an eye on layout tests in linux_blink_rel, they cover rendering correctness issues.
7 years, 3 months ago (2013-09-17 18:25:59 UTC) #2
boliu
Err, PS3 broke fast/css/empty-webkit-mask-crash.html
7 years, 3 months ago (2013-09-17 23:36:05 UTC) #3
boliu
+enne for initial review Enne, do you think this change is reasonable? If so, I ...
7 years, 3 months ago (2013-09-24 16:43:58 UTC) #4
enne (OOO)
This approach seems reasonable to me. https://codereview.chromium.org/23483051/diff/27001/Source/core/rendering/RenderBoxModelObject.cpp File Source/core/rendering/RenderBoxModelObject.cpp (right): https://codereview.chromium.org/23483051/diff/27001/Source/core/rendering/RenderBoxModelObject.cpp#newcode716 Source/core/rendering/RenderBoxModelObject.cpp:716: bool shouldBlendWithExistingContent = ...
7 years, 3 months ago (2013-09-24 18:35:46 UTC) #5
enne (OOO)
Is there a way to test this?
7 years, 2 months ago (2013-10-09 16:56:36 UTC) #6
boliu
On 2013/10/09 16:56:36, enne wrote: > Is there a way to test this? My current ...
7 years, 2 months ago (2013-10-09 18:30:23 UTC) #7
boliu
Finally back to upstreaming this android webview change. This did ship in kitkat. Essentially no ...
7 years ago (2013-12-10 02:26:20 UTC) #8
aelias_OOO_until_Jul13
Source/web lgtm, over to enne@ for Source/core.
7 years ago (2013-12-10 04:02:56 UTC) #9
enne (OOO)
lgtm2
7 years ago (2013-12-10 18:25:42 UTC) #10
boliu
+jamesr for public
7 years ago (2013-12-10 18:37:04 UTC) #11
jamesr
public/ lgtm
7 years ago (2013-12-10 23:40:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/23483051/57001
7 years ago (2013-12-11 00:00:09 UTC) #13
commit-bot: I haz the power
Change committed as 163657
7 years ago (2013-12-11 01:08:37 UTC) #14
johnme
A revert of this CL has been created in https://codereview.chromium.org/110913005/ by johnme@chromium.org. The reason for ...
7 years ago (2013-12-11 11:26:14 UTC) #15
aelias_OOO_until_Jul13
Looks like the reason is that you looked directly at the byte data of the ...
7 years ago (2013-12-11 16:32:09 UTC) #16
boliu
On 2013/12/11 16:32:09, aelias wrote: > Looks like the reason is that you looked directly ...
7 years ago (2013-12-11 16:33:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/23483051/77001
7 years ago (2013-12-11 17:26:10 UTC) #18
commit-bot: I haz the power
7 years ago (2013-12-11 18:28:24 UTC) #19
Message was sent while issue was closed.
Change committed as 163717

Powered by Google App Engine
This is Rietveld 408576698