|
Fix tests to be compatible with Android scale initialization.
On Android, we never want to allow zooming out further than the
content size. This behavior is currently guarded by the shrinksViewportContentToFit
WebSetting. Fix the layout tests to be compatible with this setting in
the future by expanding their body width. I also removed the viewportEnabled
check to activate the behavior, which was redundant.
Unit tests also need some changes to be compatible with the behavior
to always zoom out to minimum scale on page load unless
setPageScaleFactorLimits is called (which it always is in non-Android
content_shell). I fixed most of them to call setPageScaleFactorLimits
and deleted WebFrameTest.setPageScaleFactorBeforeFrameHasView (which
made no sense).
These changes will help prepare for better convergence of scaling behavior
between platforms in the future.
NOTRY=true
BUG= 350599
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173979
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+104 lines, -36 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+17 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/geometry/fixed-position-composited-page-scale-smaller-than-viewport.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/geometry/fixed-position-composited-page-scale-smaller-than-viewport-expected.html
|
View
|
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-scroll.html
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/overflow/overflow-scaled-descendant-overlapping.html
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/repaint/page-scale-repaint.html
|
View
|
|
1 chunk |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/page-scaled-mouse-click.html
|
View
|
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/page-scaled-mouse-click-iframe.html
|
View
|
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/scale-and-scroll-iframe-body.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/scale-and-scroll-iframe-window.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/events/touch/page-scaled-touch-gesture-click.html
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/frames/frame-set-rotation-hit.html
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/frames/frame-set-scaling-hit.html
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/repaint/scale-page-shrink.html
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/WebViewImpl.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/tests/TouchActionTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+1 line, -14 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/WebViewTest.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|