12014-05-16 Radu Stavila <stavila@adobe.com>
2
3 [CSS Regions] Block incorrectly sized when containing an unsplittable box
4 https://bugs.webkit.org/show_bug.cgi?id=132601
5
6 Reviewed by NOBODY (OOPS!).
7
8 When laying out elements in a region, when an unsplittable elements is encountered
9 the size of its parent must not be increased beyond the bottom of the current region,
10 unless if its the last region. This will ensure that the next sibling of the
11 unsplittable element is correctly laid out at the top of the next region, instead
12 of leaving an empty space equal to the height of the overflow, as it did until now.
13
14 Tests: fast/regions/inline-block-inside-anonymous-overflow.html
15 fast/regions/inline-block-overflow.html
16
17 * rendering/RenderBlockFlow.cpp:
18 (WebCore::RenderBlockFlow::hasNextPage):
19 * rendering/RenderBlockLineLayout.cpp:
20 (WebCore::RenderBlockFlow::computeBlockDirectionPositionsForLine):
21