Pagination splits lines that could fit on a single page if it were not for their...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2012 20:04:37 +0000 (20:04 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 May 2012 20:04:37 +0000 (20:04 +0000)
commitfafc7cd2f93128fdeba96666fc31d8537a406685
tree67de8423cff340269d59db77ae9af84fd878f11a
parentbc897c3d8d757980aef98ff1d876119e0166bd7b
Pagination splits lines that could fit on a single page if it were not for their top leading
https://bugs.webkit.org/show_bug.cgi?id=86388

Reviewed by Darin Adler.

Source/WebCore:

Test: fast/multicol/split-in-top-margin.html

When a line’s visible content fits on a page, but adding the top leading makes it taller than
a page, instead of giving up and splitting the line in an arbitrary position, add a strut
to push it downwards so that the split occurs in the top leading, and the visible content is
fully contained on a single page.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::adjustLinePositionForPagination):

LayoutTests:

* fast/multicol/split-in-top-margin-expected.html: Added.
* fast/multicol/split-in-top-margin.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@116986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/multicol/split-in-top-margin-expected.html [new file with mode: 0644]
LayoutTests/fast/multicol/split-in-top-margin.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp