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

Issue 2643723008: [devtools] Add a command to emulate the default background color. (Closed)

Created:
3 years, 11 months ago by Eric Seckler
Modified:
3 years, 10 months ago
Reviewers:
chrishtr, dgozman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kinuko+watch, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[devtools] Add a command to emulate the default background color. BUG=683073 Review-Url: https://codereview.chromium.org/2643723008 Cr-Commit-Position: refs/heads/master@{#448557} Committed: https://chromium.googlesource.com/chromium/src/+/9e1762d63c728455a9a45f3541097f73118db2a7

Patch Set 1 #

Total comments: 8

Patch Set 2 : Try using setBackgroundColorOverride #

Total comments: 2

Patch Set 3 : back to setBaseBackgroundColor. also adds state restore/reset. #

Total comments: 2

Patch Set 4 : store override in WebViewImpl. #

Patch Set 5 : Apply compositedLayerMapping updates during updateLifecyclePhases to fix DCHECK errors. #

Total comments: 2

Patch Set 6 : Force lifecycle update to CompositingCleanPlusScrolling. #

Messages

Total messages: 45 (26 generated)
Eric Seckler
Dmitry, I'm adding this to Emulation, since that seems most sensible. WDYT? Thanks!
3 years, 11 months ago (2017-01-20 16:39:49 UTC) #2
dgozman
https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html File third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html (right): https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html#newcode7 third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html:7: background-color: #123456; Looks like the page here specifies the ...
3 years, 11 months ago (2017-01-20 17:57:07 UTC) #3
Eric Seckler
Thanks, Dmitry. PTAL :) https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html File third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html (right): https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html#newcode7 third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html:7: background-color: #123456; On 2017/01/20 17:57:07, ...
3 years, 11 months ago (2017-01-23 18:06:24 UTC) #6
Eric Seckler
Thanks, Dmitry. PTAL :) https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html File third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html (right): https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html#newcode7 third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color-expected.html:7: background-color: #123456; On 2017/01/20 17:57:07, ...
3 years, 11 months ago (2017-01-23 18:06:24 UTC) #7
dgozman
https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode179 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:179: m_webLocalFrameImpl->frameWidget()->setBaseBackgroundColor( On 2017/01/23 18:06:24, Eric Seckler wrote: > On ...
3 years, 11 months ago (2017-01-23 20:27:05 UTC) #10
Eric Seckler
PTAL :) https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2643723008/diff/1/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode179 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:179: m_webLocalFrameImpl->frameWidget()->setBaseBackgroundColor( On 2017/01/23 20:27:04, dgozman wrote: > ...
3 years, 11 months ago (2017-01-24 14:08:26 UTC) #13
dgozman
https://codereview.chromium.org/2643723008/diff/40001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2643723008/diff/40001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode196 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:196: m_state->get(EmulationAgentState::defaultBackgroundColorOriginalRGBA); You don't have to store original in the ...
3 years, 11 months ago (2017-01-24 20:12:49 UTC) #16
Eric Seckler
https://codereview.chromium.org/2643723008/diff/40001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2643723008/diff/40001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode196 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:196: m_state->get(EmulationAgentState::defaultBackgroundColorOriginalRGBA); On 2017/01/24 20:12:49, dgozman wrote: > You don't ...
3 years, 11 months ago (2017-01-25 10:33:37 UTC) #19
Eric Seckler
Turns out we may be triggering a DCHECK error, because setting the FrameView::setBaseBackgroundColor() accesses the ...
3 years, 11 months ago (2017-01-25 17:00:53 UTC) #24
dgozman
+chrishtr for compositedLayerMapping stuff in FrameView. The rest lgtm. https://codereview.chromium.org/2643723008/diff/80001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2643723008/diff/80001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode3596 third_party/WebKit/Source/web/WebViewImpl.cpp:3596: ...
3 years, 11 months ago (2017-01-26 00:04:17 UTC) #28
chrishtr
Some questions: Why these changes to FrameView? Does it fail to invalidate and update certain ...
3 years, 11 months ago (2017-01-26 00:50:07 UTC) #29
Eric Seckler
On 2017/01/26 00:50:07, chrishtr wrote: > Some questions: > > Why these changes to FrameView? ...
3 years, 11 months ago (2017-01-26 09:59:06 UTC) #30
Eric Seckler
On 2017/01/26 09:59:06, Eric Seckler wrote: > On 2017/01/26 00:50:07, chrishtr wrote: > > Some ...
3 years, 10 months ago (2017-02-06 22:26:19 UTC) #31
chrishtr
On 2017/02/06 at 22:26:19, eseckler wrote: > On 2017/01/26 09:59:06, Eric Seckler wrote: > > ...
3 years, 10 months ago (2017-02-06 22:59:14 UTC) #32
Eric Seckler
PTAL :) On 2017/02/06 22:59:14, chrishtr wrote: > I see. Why not just force-update the ...
3 years, 10 months ago (2017-02-06 23:54:37 UTC) #35
chrishtr
lgtm
3 years, 10 months ago (2017-02-07 05:14:52 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2643723008/100001
3 years, 10 months ago (2017-02-07 05:32:17 UTC) #41
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/9e1762d63c728455a9a45f3541097f73118db2a7
3 years, 10 months ago (2017-02-07 05:42:40 UTC) #44
findit-for-me
3 years, 10 months ago (2017-02-07 06:22:00 UTC) #45
Message was sent while issue was closed.
FYI: Findit identified this CL at revision 448557 as the culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698