https://bugs.webkit.org/show_bug.cgi?id=68940
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 22:11:41 +0000 (22:11 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Sep 2011 22:11:41 +0000 (22:11 +0000)
commitdd78df8e07e9c0a4af5af05905675159c44183fc
tree5732beee2e6b8e378b98f1708b795a292febf756
parentf5903b10114254f30450e665616517bc18b4c5c4
https://bugs.webkit.org/show_bug.cgi?id=68940

Narrow the float/lines pagination heuristic to only kick in if
the previous line broke cleanly and if the floats are occurring
at the start of the line.

Reviewed by Dan Bernstein.

Source/WebCore:

* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::positionNewFloatOnLine):

LayoutTests:

* fast/regions/webkit-flow-float-pushed-to-last-region.html:
* platform/mac/fast/multicol/float-paginate-empty-lines-expected.txt: Added.
* platform/mac/fast/regions/webkit-flow-float-pushed-to-last-region-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/regions/webkit-flow-float-pushed-to-last-region.html
LayoutTests/platform/mac/fast/multicol/float-paginate-empty-lines-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/fast/regions/webkit-flow-float-pushed-to-last-region-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlockLineLayout.cpp