|
Remove the Pagination struct, clean up viewport scroll policy propagation.
The Pagination struct no longer served a purpose, now that the
internal setPagination() API is gone. Without any purpose in its own,
all it did was complicate the code (some unnecessary translations back
and forth involving writing mode, text direction and column
progression direction).
Added a bunch of tests for paged overflow, to test every combination
of writing mode, text direction, overflow direction, and whether it's
set on the viewport or on a regular DIV. DIV tests for paged-y are
omitted, since there's no vertical scrollbar then (which is an old bug
that could be fixed separately).
Also added tests for dynamically switching between paged and
non-paged.
Since this work required some changes regarding how overflow from BODY
or root is propagated to the viewport, I cleaned up this a bit. There
used to be 2 places with duplicated logic (picking the right element
for propagation; root or BODY). With my changes that would easily
become 3. Reduced it to 1 instead. :)
Added some tests for overflow policy propagation as well.
No behavioral changes are intended with this patch, except: it is now
possible to make the BODY renderer itself paginated - if it is the
root element that got its overflow properties propagated to the
viewport
(e.g. <html style="overflow:hidden;"><body style="overflow:-webkit-paged-x;">...)
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166923
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1220 lines, -302 lines) |
Patch |
|
A |
LayoutTests/fast/overflow/hidden-html-auto-body.html
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-html-auto-body-expected.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-html-hidden-body.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-html-hidden-body-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-html-paged-body.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-html-paged-body-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-viewport-x.html
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-viewport-x-expected.html
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-viewport-y.html
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/hidden-viewport-y-expected.html
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/scroll-html-hidden-body.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/scroll-html-hidden-body-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/scroll-html-paged-body.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/overflow/scroll-html-paged-body-expected.html
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/body-make-paginated.html
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/body-make-paginated-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/body-make-unpaginated.html
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/body-make-unpaginated-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-make-paginated.html
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-make-paginated-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-make-unpaginated.html
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-make-unpaginated-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-bt-ltr.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-bt-ltr-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-bt-rtl.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-bt-rtl-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-tb-ltr.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-tb-ltr-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-tb-rtl.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-horizontal-tb-rtl-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-lr-ltr.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-lr-ltr-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-lr-rtl.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-lr-rtl-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-rl-ltr.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-rl-ltr-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-rl-rtl.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/div-x-vertical-rl-rtl-expected.html
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/html-make-paginated.html
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/html-make-paginated-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/html-make-unpaginated.html
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/html-make-unpaginated-expected.html
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/paged-x-to-paged-y.html
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/paged-x-to-paged-y-expected.html
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/paged-y-to-paged-x.html
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/paged-y-to-paged-x-expected.html
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-bt-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-bt-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-bt-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-bt-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-tb-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-tb-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-tb-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-horizontal-tb-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-lr-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-lr-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-lr-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-lr-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-rl-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-rl-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-rl-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-x-vertical-rl-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-bt-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-bt-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-bt-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-bt-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-tb-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-tb-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-tb-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-horizontal-tb-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-lr-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-lr-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-lr-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-lr-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-rl-ltr.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-rl-ltr-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-rl-rtl.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/pagination/viewport-y-vertical-rl-rtl-expected.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/core.gypi
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/StyleAdjuster.cpp
|
View
|
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/core/css/resolver/StyleResolver.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.h
|
View
|
1
2
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/dom/Document.cpp
|
View
|
1
2
|
5 chunks |
+57 lines, -13 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/FrameView.h
|
View
|
1
2
|
5 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
|
M |
Source/core/frame/FrameView.cpp
|
View
|
1
2
|
5 chunks |
+8 lines, -83 lines |
0 comments
|
Download
|
|
M |
Source/core/page/Page.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
Source/core/rendering/Pagination.h
|
View
|
|
1 chunk |
+0 lines, -60 lines |
0 comments
|
Download
|
|
D |
Source/core/rendering/Pagination.cpp
|
View
|
|
1 chunk |
+0 lines, -67 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBlock.h
|
View
|
1
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBlock.cpp
|
View
|
1
2
|
2 chunks |
+10 lines, -32 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderBox.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -11 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderLayer.cpp
|
View
|
1
2
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderLayerScrollableArea.cpp
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderView.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderView.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/style/RenderStyle.h
|
View
|
1
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|