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

Issue 19883002: Expose a way to set a view's base background color. (Closed)

Created:
7 years, 5 months ago by joth
Modified:
7 years, 5 months ago
CC:
blink-reviews, kenneth.christiansen, dglazkov+blink, eae+blinkwatch, jamesr, abarth-chromium, eae
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : working #

Patch Set 3 : simpler, same issue as before #

Patch Set 4 : it works #

Patch Set 5 : nix dead code #

Patch Set 6 : typo #

Total comments: 4

Patch Set 7 : aelias #

Total comments: 1

Patch Set 8 : add a test #

Patch Set 9 : +test #

Total comments: 1

Patch Set 10 : fn ordering #

Patch Set 11 : rebase #

Total comments: 1

Patch Set 12 : jamesr comments #

Total comments: 3

Patch Set 13 : no recurse #

Patch Set 14 : retry upload #

Patch Set 15 : Fix unittests for Android, to reland #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -5 lines) Patch
M Source/core/page/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +16 lines, -2 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +32 lines, -0 lines 0 comments Download
M public/web/WebView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
joth
I need a hand with how to push through the invalidation...
7 years, 5 months ago (2013-07-22 04:56:52 UTC) #1
jamesr
What is a view's base background color? Why is the BUG= line empty?
7 years, 5 months ago (2013-07-22 17:56:32 UTC) #2
aelias_OOO_until_Jul13
On 2013/07/22 17:56:32, jamesr wrote: > What is a view's base background color? Why is ...
7 years, 5 months ago (2013-07-22 18:30:33 UTC) #3
joth
On 2013/07/22 17:56:32, jamesr wrote: > What is a view's base background color? I attempted ...
7 years, 5 months ago (2013-07-23 01:20:18 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/19883002/diff/14001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/19883002/diff/14001/Source/web/WebViewImpl.cpp#newcode3577 Source/web/WebViewImpl.cpp:3577: m_isTransparent = !m_baseBackgroundColor.alpha(); This is testing for complete transparency, ...
7 years, 5 months ago (2013-07-23 19:02:16 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/19883002/diff/14001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/19883002/diff/14001/Source/web/WebViewImpl.cpp#newcode3574 Source/web/WebViewImpl.cpp:3574: void WebViewImpl::setBaseBackgroundColor(WebColor color) Please add an early return if ...
7 years, 5 months ago (2013-07-23 19:05:01 UTC) #6
joth
https://codereview.chromium.org/19883002/diff/14001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/19883002/diff/14001/Source/web/WebViewImpl.cpp#newcode3574 Source/web/WebViewImpl.cpp:3574: void WebViewImpl::setBaseBackgroundColor(WebColor color) On 2013/07/23 19:05:01, aelias wrote: > ...
7 years, 5 months ago (2013-07-23 21:13:16 UTC) #7
aelias_OOO_until_Jul13
Could you add a unit test? https://codereview.chromium.org/19883002/diff/25001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/19883002/diff/25001/Source/web/WebViewImpl.cpp#newcode3582 Source/web/WebViewImpl.cpp:3582: m_page->mainFrame()->view()->updateBackgroundRecursively(c, m_isTransparent); Here ...
7 years, 5 months ago (2013-07-23 23:51:27 UTC) #8
joth
On 2013/07/23 23:51:27, aelias wrote: > Could you add a unit test? > Done. Hopefully ...
7 years, 5 months ago (2013-07-24 05:38:50 UTC) #9
aelias_OOO_until_Jul13
OK, lg2m. I double-checked FrameView lifetime and it seems fine. James, PTAL? https://codereview.chromium.org/19883002/diff/33001/Source/web/WebViewImpl.h File Source/web/WebViewImpl.h ...
7 years, 5 months ago (2013-07-24 06:56:02 UTC) #10
joth
On 2013/07/24 06:56:02, aelias wrote: > OK, lg2m. I double-checked FrameView lifetime and it seems ...
7 years, 5 months ago (2013-07-24 17:15:57 UTC) #11
joth
+eae@chromium.org FYI as my FrameView.cpp baseBackgroundColor() edit very slightly overlaps with your just-landed SytleColor change. ...
7 years, 5 months ago (2013-07-24 23:11:00 UTC) #12
jamesr
Hmm, can't setting a base background color change the opaque-ness of the root layer? I ...
7 years, 5 months ago (2013-07-24 23:16:27 UTC) #13
joth
Thanks James. New patchset uploaded https://codereview.chromium.org/19883002 On 24 July 2013 16:16, <jamesr@chromium.org> wrote: > Hmm, ...
7 years, 5 months ago (2013-07-24 23:57:51 UTC) #14
jamesr
https://codereview.chromium.org/19883002/diff/54001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/19883002/diff/54001/Source/web/WebViewImpl.cpp#newcode3589 Source/web/WebViewImpl.cpp:3589: m_page->mainFrame()->view()->updateBackgroundRecursively(color, m_isTransparent); hmm, why recursive? won't this only change ...
7 years, 5 months ago (2013-07-25 00:02:27 UTC) #15
jamesr
https://codereview.chromium.org/19883002/diff/54001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/19883002/diff/54001/Source/web/WebViewImpl.cpp#newcode3589 Source/web/WebViewImpl.cpp:3589: m_page->mainFrame()->view()->updateBackgroundRecursively(color, m_isTransparent); On 2013/07/25 00:02:28, jamesr wrote: > hmm, ...
7 years, 5 months ago (2013-07-25 00:16:06 UTC) #16
joth
You're right, of course! The recursive call is not needed, at least to the limit ...
7 years, 5 months ago (2013-07-25 00:39:43 UTC) #17
jamesr
lgtm
7 years, 5 months ago (2013-07-25 00:41:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/19883002/65001
7 years, 5 months ago (2013-07-25 00:55:57 UTC) #19
commit-bot: I haz the power
Change committed as 154891
7 years, 5 months ago (2013-07-25 03:20:55 UTC) #20
joth
Previous patch was reverted - Very minor diff in the test in PS15 to reland:- ...
7 years, 5 months ago (2013-07-25 18:23:22 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/19883002/76001
7 years, 5 months ago (2013-07-25 19:02:34 UTC) #22
commit-bot: I haz the power
7 years, 5 months ago (2013-07-25 22:41:36 UTC) #23
Message was sent while issue was closed.
Change committed as 154942

Powered by Google App Engine
This is Rietveld 408576698