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

Issue 1690493002: Switch to LayoutThemeMobile when emulating mobile device in DevTools. (Closed)

Created:
4 years, 10 months ago by dgozman
Modified:
4 years, 10 months ago
Reviewers:
pdr., Nico
CC:
apavlov+blink_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, eae+blinkwatch, jchaffraix+rendering, kinuko+watch, kozyatinskiy+blink_chromium.org, leviw+renderwatch, lushnikov+blink_chromium.org, pdr+renderingwatchlist_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch to LayoutThemeMobile when emulating mobile device in DevTools. This covers subtle differences between rendering on mobile vs desktop platforms (see bugs). LayoutTheme decides whether to use mobile theme based on mobileLayoutThemeEnabled. To accomplish this, NEW_THEME build flag was removed. Instead, non-null Theme* is passed to LayoutTheme as equivalent to USE(NEW_THEME), and LayoutTheme decides which code path to use. Only LayoutThemeMac passes non-null Theme* since NEW_THEME was only implemented on mac. Introduced ComputedStyle::invalidateInitialStyle to recalculate static values which may be affected by LayoutTheme change. BUG=585459, 543356, 586408 Committed: https://crrev.com/638717eea162abcacb1f797faeafa3df6f85456a Cr-Commit-Position: refs/heads/master@{#377198}

Patch Set 1 #

Patch Set 2 : android #

Patch Set 3 : android + mac #

Patch Set 4 : mac compile #

Patch Set 5 : more mac compile #

Total comments: 13

Patch Set 6 : removed the flag #

Total comments: 1

Patch Set 7 : Invalidate tapHighlightColor only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -415 lines) Patch
M third_party/WebKit/Source/build/features.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/config.gni View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 4 5 6 3 chunks +2 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/core.gyp View 1 2 3 4 5 9 chunks +7 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTheme.h View 1 2 3 4 5 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTheme.cpp View 1 2 3 4 5 7 chunks +107 lines, -102 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeAndroid.h View 1 chunk +5 lines, -46 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeAndroid.cpp View 3 chunks +4 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeDefault.h View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/layout/LayoutThemeFontProviderDefault.cpp View 0 chunks +-1 lines, --1 lines 0 comments Download
D third_party/WebKit/Source/core/layout/LayoutThemeFontProviderLinux.cpp View 1 chunk +0 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeLinux.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeMac.mm View 1 2 3 4 5 4 chunks +17 lines, -15 lines 0 comments Download
A + third_party/WebKit/Source/core/layout/LayoutThemeMobile.h View 1 4 5 2 chunks +9 lines, -8 lines 0 comments Download
A + third_party/WebKit/Source/core/layout/LayoutThemeMobile.cpp View 4 5 3 chunks +7 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutThemeWin.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ThemePainter.h View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ThemePainter.cpp View 1 2 3 4 5 4 chunks +19 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ThemePainterDefault.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ThemePainterMac.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ThemePainterMac.mm View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/DevToolsEmulator.cpp View 1 2 3 4 5 6 4 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (20 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/1690493002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690493002/1
4 years, 10 months ago (2016-02-10 02:15:35 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/19819) linux_android_rel_ng on ...
4 years, 10 months ago (2016-02-10 02:35:43 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690493002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690493002/40001
4 years, 10 months ago (2016-02-10 03:05:24 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/64436) mac_chromium_rel_ng on ...
4 years, 10 months ago (2016-02-10 03:22:38 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690493002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690493002/60001
4 years, 10 months ago (2016-02-10 17:51:56 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/178172)
4 years, 10 months ago (2016-02-10 18:36:48 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/1690493002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690493002/80001
4 years, 10 months ago (2016-02-11 02:04:26 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-11 03:46:20 UTC) #16
dgozman
Hi Philip, Could you please take a look? You are both an OWNER of core/layout ...
4 years, 10 months ago (2016-02-11 18:53:44 UTC) #19
pdr.
https://codereview.chromium.org/1690493002/diff/80001/third_party/WebKit/Source/core/BUILD.gn File third_party/WebKit/Source/core/BUILD.gn (right): https://codereview.chromium.org/1690493002/diff/80001/third_party/WebKit/Source/core/BUILD.gn#newcode241 third_party/WebKit/Source/core/BUILD.gn:241: sources -= [ "layout/LayoutThemeFontProviderDefault.cpp" ] I'm a little out ...
4 years, 10 months ago (2016-02-12 06:36:14 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/1690493002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690493002/100001
4 years, 10 months ago (2016-02-19 17:42:12 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-19 19:09:26 UTC) #26
dgozman
Please take another look. https://codereview.chromium.org/1690493002/diff/80001/third_party/WebKit/Source/core/BUILD.gn File third_party/WebKit/Source/core/BUILD.gn (right): https://codereview.chromium.org/1690493002/diff/80001/third_party/WebKit/Source/core/BUILD.gn#newcode241 third_party/WebKit/Source/core/BUILD.gn:241: sources -= [ "layout/LayoutThemeFontProviderDefault.cpp" ] ...
4 years, 10 months ago (2016-02-19 19:15:16 UTC) #27
pdr.
Overall this looks very nice. On 2016/02/19 at 19:15:16, dgozman wrote: > https://codereview.chromium.org/1690493002/diff/80001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode86 > third_party/WebKit/Source/core/style/ComputedStyle.cpp:86: ...
4 years, 10 months ago (2016-02-23 04:23:03 UTC) #28
dgozman
Could you please take another look? > Can you try this approach? I don't see ...
4 years, 10 months ago (2016-02-23 19:21:35 UTC) #29
pdr.
On 2016/02/23 at 19:21:35, dgozman wrote: > Could you please take another look? > > ...
4 years, 10 months ago (2016-02-23 23:54:37 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690493002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690493002/120001
4 years, 10 months ago (2016-02-24 00:55:55 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/149368)
4 years, 10 months ago (2016-02-24 01:18:24 UTC) #34
dgozman
Nico, could you please take a look at build files? I'm missing OWNER review for ...
4 years, 10 months ago (2016-02-24 01:28:29 UTC) #35
Nico
these 2 files lgtm but please mention in the cl description that this gets rid ...
4 years, 10 months ago (2016-02-24 01:36:58 UTC) #36
dgozman
On 2016/02/24 01:36:58, Nico wrote: > these 2 files lgtm but please mention in the ...
4 years, 10 months ago (2016-02-24 02:27:05 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690493002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690493002/120001
4 years, 10 months ago (2016-02-24 02:30:45 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-24 02:54:55 UTC) #42
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 02:56:24 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/638717eea162abcacb1f797faeafa3df6f85456a
Cr-Commit-Position: refs/heads/master@{#377198}

Powered by Google App Engine
This is Rietveld 408576698