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

Issue 2808123004: [devtools] Remove device emulation background color override. (Closed)

Created:
3 years, 8 months ago by Eric Seckler
Modified:
3 years, 8 months ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, jam, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, darin-cc_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org, Sami
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[devtools] Remove device emulation background color override. If used in combination with a transparent setDefaultBackgroundColor, the background color override applied by setDeviceMetricsOverride is harmful. The background override does not seem to be beneficial anymore, as the frontend already doesn't use it. BUG=689349 Review-Url: https://codereview.chromium.org/2808123004 Cr-Commit-Position: refs/heads/master@{#464335} Committed: https://chromium.googlesource.com/chromium/src/+/9f00423812b73080001e1742d6ad356c68c23b62

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : remove background color override #

Patch Set 3 : fix android tests #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -11 lines) Patch
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M content/renderer/devtools/render_widget_screen_metrics_emulator.cc View 1 2 1 chunk +0 lines, -3 lines 2 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 1 2 2 chunks +1 line, -7 lines 2 comments Download

Messages

Total messages: 32 (23 generated)
Eric Seckler
Dmitry, PTAL. Let me know if you'd like to solve this differently :)
3 years, 8 months ago (2017-04-11 14:40:21 UTC) #5
dgozman
https://codereview.chromium.org/2808123004/diff/20001/third_party/WebKit/Source/web/DevToolsEmulator.cpp File third_party/WebKit/Source/web/DevToolsEmulator.cpp (right): https://codereview.chromium.org/2808123004/diff/20001/third_party/WebKit/Source/web/DevToolsEmulator.cpp#newcode230 third_party/WebKit/Source/web/DevToolsEmulator.cpp:230: web_view_impl_->SetBackgroundColorOverride(Color::kDarkGray); Let's just not override at all. DevTools currently ...
3 years, 8 months ago (2017-04-11 17:29:55 UTC) #8
Eric Seckler
https://codereview.chromium.org/2808123004/diff/20001/third_party/WebKit/Source/web/DevToolsEmulator.cpp File third_party/WebKit/Source/web/DevToolsEmulator.cpp (right): https://codereview.chromium.org/2808123004/diff/20001/third_party/WebKit/Source/web/DevToolsEmulator.cpp#newcode230 third_party/WebKit/Source/web/DevToolsEmulator.cpp:230: web_view_impl_->SetBackgroundColorOverride(Color::kDarkGray); On 2017/04/11 17:29:54, dgozman wrote: > Let's just ...
3 years, 8 months ago (2017-04-12 07:38:45 UTC) #10
Eric Seckler
https://codereview.chromium.org/2808123004/diff/80001/content/renderer/devtools/render_widget_screen_metrics_emulator.cc File content/renderer/devtools/render_widget_screen_metrics_emulator.cc (left): https://codereview.chromium.org/2808123004/diff/80001/content/renderer/devtools/render_widget_screen_metrics_emulator.cc#oldcode148 content/renderer/devtools/render_widget_screen_metrics_emulator.cc:148: modified_resize_params.physical_backing_size = @Dmirty: This was causing a test failure ...
3 years, 8 months ago (2017-04-12 16:18:46 UTC) #22
dgozman
lgtm, but let's cleanup in WebViewImpl as well https://codereview.chromium.org/2808123004/diff/80001/content/renderer/devtools/render_widget_screen_metrics_emulator.cc File content/renderer/devtools/render_widget_screen_metrics_emulator.cc (left): https://codereview.chromium.org/2808123004/diff/80001/content/renderer/devtools/render_widget_screen_metrics_emulator.cc#oldcode148 content/renderer/devtools/render_widget_screen_metrics_emulator.cc:148: modified_resize_params.physical_backing_size ...
3 years, 8 months ago (2017-04-12 18:21:23 UTC) #23
Eric Seckler
https://codereview.chromium.org/2808123004/diff/80001/third_party/WebKit/Source/web/DevToolsEmulator.cpp File third_party/WebKit/Source/web/DevToolsEmulator.cpp (left): https://codereview.chromium.org/2808123004/diff/80001/third_party/WebKit/Source/web/DevToolsEmulator.cpp#oldcode230 third_party/WebKit/Source/web/DevToolsEmulator.cpp:230: web_view_impl_->SetBackgroundColorOverride(Color::kDarkGray); On 2017/04/12 18:21:23, dgozman wrote: > Remove these ...
3 years, 8 months ago (2017-04-12 19:31:31 UTC) #26
dgozman
On 2017/04/12 19:31:31, Eric Seckler wrote: > https://codereview.chromium.org/2808123004/diff/80001/third_party/WebKit/Source/web/DevToolsEmulator.cpp > File third_party/WebKit/Source/web/DevToolsEmulator.cpp (left): > > https://codereview.chromium.org/2808123004/diff/80001/third_party/WebKit/Source/web/DevToolsEmulator.cpp#oldcode230 ...
3 years, 8 months ago (2017-04-12 21:54:45 UTC) #27
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/2808123004/80001
3 years, 8 months ago (2017-04-13 07:39:19 UTC) #29
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 07:47:47 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9f00423812b73080001e1742d6ad...

Powered by Google App Engine
This is Rietveld 408576698