Skip to content

Commit

Permalink
2010-07-07 Hayato Ito <[email protected]>
Browse files Browse the repository at this point in the history
        Reviewed by Darin Adler.

        Rolling out 'page-break-inside:avoid' part of the r54929.
        Rebased the related layout tests, which are now expected to fail, as well.

        https://bugs.webkit.org/show_bug.cgi?id=41532

        * fast/multicol/break-properties-expected.txt:
        * printing/page-break-inside-avoid-expected.txt:
2010-07-07  Hayato Ito  <[email protected]>

        Reviewed by Darin Adler.

        Rolling out 'page-break-inside:avoid' part of the r54929.
        Rebased the related layout tests, which are now expected to fail, as well.

        https://bugs.webkit.org/show_bug.cgi?id=41532

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

Canonical link: https://commits.webkit.org/53547@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@62632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed Jul 7, 2010
1 parent 4219ae1 commit d827957
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 13 deletions.
12 changes: 12 additions & 0 deletions LayoutTests/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
2010-07-07 Hayato Ito <[email protected]>

Reviewed by Darin Adler.

Rolling out 'page-break-inside:avoid' part of the r54929.
Rebased the related layout tests, which are now expected to fail, as well.

https://bugs.webkit.org/show_bug.cgi?id=41532

* fast/multicol/break-properties-expected.txt:
* printing/page-break-inside-avoid-expected.txt:

2010-07-06 Pavel Feldman <[email protected]>

Reviewed by Joseph Pecoraro.
Expand Down
2 changes: 1 addition & 1 deletion LayoutTests/fast/multicol/break-properties-expected.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PASS: 'break-before' is at (218, 8)
PASS: 'after-break' is at (428, 8)
PASS: 'no-break' is at (533, 8)
FAIL: 'no-break' is at (428, 68) instead of (533 ,8)

3 changes: 1 addition & 2 deletions LayoutTests/printing/page-break-inside-avoid-expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ PASS: page number of "page1-1" is 1
PASS: page number of "page1-2" is 1
PASS: page number of "page2" is 2
PASS: page number of "page3" is 3
PASS: page number of "page4" is 4
FAIL: expected page number of "page4" is 4. Was 3
PASS: page number of "page5" is 5
PASS: page number of "page8" is 8
PASS: page number of "page9-1" is 9
PASS: page number of "page9-2" is 9
PASS: page number of "page10" is 10
All tests passed

PASS successfullyParsed is true

Expand Down
12 changes: 12 additions & 0 deletions WebCore/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
2010-07-07 Hayato Ito <[email protected]>

Reviewed by Darin Adler.

Rolling out 'page-break-inside:avoid' part of the r54929.
Rebased the related layout tests, which are now expected to fail, as well.

https://bugs.webkit.org/show_bug.cgi?id=41532

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

2010-07-07 Mark Rowe <[email protected]>

Fix failures in a handful of Java-related tests.
Expand Down
10 changes: 0 additions & 10 deletions WebCore/rendering/RenderBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2113,16 +2113,6 @@ void RenderBlock::paintChildren(PaintInfo& paintInfo, int tx, int ty)
return;
}

// Check for page-break-inside: avoid, and it it's set, break and bail.
bool checkInsideAvoid = !childrenInline() && ((checkPageBreaks && child->style()->pageBreakInside() == PBAVOID) || (checkColumnBreaks && child->style()->columnBreakInside() == PBAVOID));
if (checkInsideAvoid
&& ty + child->y() > paintInfo.rect.y()
&& ty + child->y() < paintInfo.rect.bottom()
&& ty + child->y() + child->height() > paintInfo.rect.bottom()) {
view()->setBestTruncatedAt(ty + child->y(), this, true);
return;
}

if (!child->hasSelfPaintingLayer() && !child->isFloating())
child->paint(info, tx, ty);

Expand Down

0 comments on commit d827957

Please sign in to comment.