|
Move code from StyleResolver to ViewportStyleResolver.
@viewport rule collection is moved to ViewportStyleResolver. This removes
the last StyleResolver dependency from ScopedStyleResolver.
Removed an unnecessary null check for m_document in ViewportStyleResolver
which should always be non-null.
Moved resetAuthorStyle() to skip the call when the ScopedStyleResolver is
deleted immediately afterwards.
Load the viewport UA style into CSSDefaultStyleSheets once instead
of parsing it from InspectorPageAgent every time it is applied. Also
apply the UA style from ViewportStyleResolver instead of the
InspectorPageAgent to remove resolver dependencies from the inspector
code. The application of the UA style is controlled by a setting instead
of and OS(ANDROID) #if in Blink.
The introduction of the setting is a two-sided patch with this CL and [1].
[2] removes the OS(ANDROID) check completely.
[1] https://codereview.chromium.org/989963002/
[2] https://codereview.chromium.org/989973002/
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191747
Total comments: 5
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+101 lines, -67 lines) |
Patch |
|
M |
Source/core/css/CSSDefaultStyleSheets.h
|
View
|
1
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/css/CSSDefaultStyleSheets.cpp
|
View
|
1
|
5 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/ScopedStyleResolver.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/ScopedStyleResolver.cpp
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/StyleResolver.cpp
|
View
|
1
2
3
4
|
4 chunks |
+5 lines, -21 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/ViewportStyleResolver.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/ViewportStyleResolver.cpp
|
View
|
1
2
3
4
|
3 chunks |
+25 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/Settings.in
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/SettingsDelegate.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorInstrumentation.idl
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorPageAgent.h
|
View
|
1
2
3
4
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/inspector/InspectorPageAgent.cpp
|
View
|
1
2
3
4
|
5 chunks |
+12 lines, -15 lines |
0 comments
|
Download
|
|
M |
Source/core/page/Page.cpp
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/web/WebDevToolsAgentImpl.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/web/WebDevToolsAgentImpl.cpp
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/web/WebSettingsImpl.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/web/WebSettingsImpl.cpp
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
public/web/WebSettings.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 23 (8 generated)
|