[CSS Regions] Region overset property is not properly computed when there is a region...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Feb 2013 14:50:21 +0000 (14:50 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Feb 2013 14:50:21 +0000 (14:50 +0000)
commit90cef12e369506b8d64a5d51916a231e520cff0f
treed15cae3156d67e40acd88c277bda1e9883bcac0b
parent97b5067e4e9b470fde1e3f282dcd74757f67fa7c
[CSS Regions] Region overset property is not properly computed when there is a region break
https://bugs.webkit.org/show_bug.cgi?id=92497

Patch by Mihai Maerean <mmaerean@adobe.com> on 2013-02-27
Reviewed by David Hyatt.

Source/WebCore:

For "paginated" content in regions that has -webkit-region-break-after:always, the bottom margin was being passed
along for the next region in the chain, which shouldn't happen.

The fix is, at layout, to clear the bottom margin for the nodes (inside paginated contexts) that have
-webkit-region-break-after:always.

Tests: fast/multicol/break-after-always-bottom-margin.html
       fast/regions/overset-break-nested.html
       fast/regions/overset-break-with-sibling.html
       fast/regions/overset-break.html

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

LayoutTests:

* fast/multicol/break-after-always-bottom-margin-expected.txt: Added.
* fast/multicol/break-after-always-bottom-margin.html: Added.
* fast/regions/overset-break-expected.txt: Added.
* fast/regions/overset-break-nested-expected.txt: Added.
* fast/regions/overset-break-nested.html: Added.
* fast/regions/overset-break-with-sibling-expected.txt: Added.
* fast/regions/overset-break-with-sibling.html: Added.
* fast/regions/overset-break.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/multicol/break-after-always-bottom-margin-expected.txt [new file with mode: 0644]
LayoutTests/fast/multicol/break-after-always-bottom-margin.html [new file with mode: 0644]
LayoutTests/fast/regions/overset-break-expected.txt [new file with mode: 0644]
LayoutTests/fast/regions/overset-break-nested-expected.txt [new file with mode: 0644]
LayoutTests/fast/regions/overset-break-nested.html [new file with mode: 0644]
LayoutTests/fast/regions/overset-break-with-sibling-expected.txt [new file with mode: 0644]
LayoutTests/fast/regions/overset-break-with-sibling.html [new file with mode: 0644]
LayoutTests/fast/regions/overset-break.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp