|
|
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}
Total comments: 13
Total comments: 1
|
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
|
Total messages: 44 (20 generated)
|