|
Experimental viewport meta tag support for desktop, Blink-side.
Added flag to allow desktop builds to experimentally turn
on support for the viewport meta tag. The --enable-viewport
flag now turns on only support for @viewport.
--enable-viewport-meta turns on viewport meta and @viewport
support.
On Android, the viewport gets rescaled when the view is
resized, i.e. phone is rotated between landscape and
portrait. On desktop, enabling the viewport causes the page
to zoom out when the window is shrunk, rather than adding
scrollbars. To support viewport on both devices, I've added
a --scale-viewport-on-resize flag that should be set on
Android and not desktop. This prevents the viewport scaling
code in WebViewImpl::resize().
Enabling viewport on desktop means the page scale can
change. This causes a known issue with scrollbars where
mouse events are scaled with the page, making mouse
interaction with scrollbars broken.
This is the Blink side of a 2-side patch.
BUG= 232102
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161378
Total comments: 11
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+144 lines, -61 lines) |
Patch |
 |
M |
LayoutTests/css3/device-adapt/viewport-user-agent-style.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gyp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/core.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/core_derived_sources.gyp
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/CSSDefaultStyleSheets.cpp
|
View
|
1
2
3
4
5
6
|
4 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
A + |
Source/core/css/ViewportStyle.h
|
View
|
1
2
3
4
|
1 chunk |
+14 lines, -6 lines |
0 comments
|
Download
|
 |
A + |
Source/core/css/ViewportStyle.cpp
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
Source/core/css/ViewportStyleAndroid.cpp
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
Source/core/css/html.css
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
A + |
Source/core/css/viewportAndroid.css
|
View
|
1
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/Document.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/Settings.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/Settings.cpp
|
View
|
1
2
3
4
5
6
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebSettingsImpl.h
|
View
|
1
2
|
4 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebSettingsImpl.cpp
|
View
|
1
2
3
4
5
6
|
4 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebViewImpl.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
3
4
5
6
7
8
|
16 chunks |
+23 lines, -30 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/data/fixed_layout.html
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/data/no_viewport_tag.html
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
public/web/WebSettings.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 28 (0 generated)
|