Changeset 108528 in webkit


Ignore:
Timestamp:
Feb 22, 2012, 11:37:26 AM (13 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r62632): page-break-inside: avoid is ignored
https://bugs.webkit.org/show_bug.cgi?id=79262

Reviewed by Adele Peterson.

Source/WebCore:

This was disabled in r62632 because of <http://webkit.org/b/41532>. Changes to the
pagination code since then have invalidated that bug, so enabling the feature again does not
re-introduce the bug.

Updated expected results for printing/page-break-inside-avoid.html.

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::adjustForUnsplittableChild):

LayoutTests:

  • printing/page-break-inside-avoid-expected.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r108525 r108528  
     12012-02-22  Dan Bernstein  <mitz@apple.com>
     2
     3        REGRESSION (r62632): page-break-inside: avoid is ignored
     4        https://bugs.webkit.org/show_bug.cgi?id=79262
     5
     6        Reviewed by Adele Peterson.
     7
     8        * printing/page-break-inside-avoid-expected.txt:
     9
    1102012-02-22  Adrienne Walker  <enne@google.com>
    211
  • trunk/LayoutTests/printing/page-break-inside-avoid-expected.txt

    r62632 r108528  
    99PASS: page number of "page2" is 2
    1010PASS: page number of "page3" is 3
    11 FAIL: expected page number of "page4" is 4. Was 3
     11PASS: page number of "page4" is 4
    1212PASS: page number of "page5" is 5
    1313PASS: page number of "page8" is 8
     
    1515PASS: page number of "page9-2" is 9
    1616PASS: page number of "page10" is 10
     17All tests passed
    1718
    1819PASS successfullyParsed is true
  • trunk/Source/WebCore/ChangeLog

    r108524 r108528  
     12012-02-22  Dan Bernstein  <mitz@apple.com>
     2
     3        REGRESSION (r62632): page-break-inside: avoid is ignored
     4        https://bugs.webkit.org/show_bug.cgi?id=79262
     5
     6        Reviewed by Adele Peterson.
     7
     8        This was disabled in r62632 because of <http://webkit.org/b/41532>. Changes to the
     9        pagination code since then have invalidated that bug, so enabling the feature again does not
     10        re-introduce the bug.
     11
     12        Updated expected results for printing/page-break-inside-avoid.html.
     13
     14        * rendering/RenderBlock.cpp:
     15        (WebCore::RenderBlock::adjustForUnsplittableChild):
     16
    1172012-02-22  Philippe Normand  <pnormand@igalia.com>
    218
     
    426342792012-02-19  James Robinson  <jamesr@chromium.org>
    42644280
    4265         Sort WebCore XCode project files with sort-Xcode-project-files script. Unreviewed.
     4281        Sort WebCore Xcode project files with sort-Xcode-project-files script. Unreviewed.
    42664282
    42674283        * WebCore.xcodeproj/project.pbxproj:
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r108382 r108528  
    65856585LayoutUnit RenderBlock::adjustForUnsplittableChild(RenderBox* child, LayoutUnit logicalOffset, bool includeMargins)
    65866586{
    6587     bool isUnsplittable = child->isUnsplittableForPagination() || child->style()->columnBreakInside() == PBAVOID
    6588         || child->style()->regionBreakInside() == PBAVOID;
     6587    bool checkColumnBreaks = view()->layoutState()->isPaginatingColumns();
     6588    bool checkPageBreaks = !checkColumnBreaks && view()->layoutState()->m_pageLogicalHeight;
     6589    bool checkRegionBreaks = inRenderFlowThread();
     6590    bool isUnsplittable = child->isUnsplittableForPagination() || (checkColumnBreaks && child->style()->columnBreakInside() == PBAVOID)
     6591        || (checkPageBreaks && child->style()->pageBreakInside() == PBAVOID)
     6592        || (checkRegionBreaks && child->style()->regionBreakInside() == PBAVOID);
    65896593    if (!isUnsplittable)
    65906594        return logicalOffset;
Note: See TracChangeset for help on using the changeset viewer.