⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 88556 in webkit


Ignore:
Timestamp:
Jun 10, 2011, 12:44:39 PM (15 years ago)
Author:
eae@chromium.org
Message:

2011-06-10 Emil A Eklund <eae@chromium.org>

Reviewed by Eric Seidel.

Regression r85573: Blank pages appear at the end of some wikipedia documents.
https://bugs.webkit.org/show_bug.cgi?id=62343

Fix regression caused by r85573. Cached document size not updated after layout.

  • platform/chromium-linux/printing/page-count-relayout-shrink-expected.txt: Added.
  • platform/mac/printing/page-count-relayout-shrink-expected.txt: Added.
  • printing/page-count-relayout-shrink.html: Added.

2011-06-10 Emil A Eklund <eae@chromium.org>

Reviewed by Eric Seidel.

Regression r85573: Blank pages appear at the end of some wikipedia documents.
https://bugs.webkit.org/show_bug.cgi?id=62343

Fix regression caused by r85573. Cached document size not updated after layout.

Test: printing/page-count-relayout-shrink.html

  • page/FrameView.cpp: (WebCore::FrameView::forceLayoutForPagination):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r88555 r88556  
     12011-06-10  Emil A Eklund  <eae@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Regression r85573: Blank pages appear at the end of some wikipedia documents.
     6        https://bugs.webkit.org/show_bug.cgi?id=62343
     7
     8        Fix regression caused by r85573. Cached document size not updated after layout.
     9
     10        * platform/chromium-linux/printing/page-count-relayout-shrink-expected.txt: Added.
     11        * platform/mac/printing/page-count-relayout-shrink-expected.txt: Added.
     12        * printing/page-count-relayout-shrink.html: Added.
     13
    1142011-06-10  Rob Buis  <rbuis@rim.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r88555 r88556  
     12011-06-10  Emil A Eklund  <eae@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Regression r85573: Blank pages appear at the end of some wikipedia documents.
     6        https://bugs.webkit.org/show_bug.cgi?id=62343
     7
     8        Fix regression caused by r85573. Cached document size not updated after layout.
     9
     10        Test: printing/page-count-relayout-shrink.html
     11
     12        * page/FrameView.cpp:
     13        (WebCore::FrameView::forceLayoutForPagination):
     14
    1152011-06-10  Rob Buis  <rbuis@rim.com>
    216
  • trunk/Source/WebCore/page/FrameView.cpp

    r88307 r88556  
    26052605        // FIXME: We are assuming a shrink-to-fit printing implementation.  A cropping
    26062606        // implementation should not do this!
    2607         const IntRect& documentRect = root->documentRect();
    26082607        bool horizontalWritingMode = root->style()->isHorizontalWritingMode();
    2609         int docLogicalWidth = horizontalWritingMode ? documentRect.width() : documentRect.height();
     2608        int docLogicalWidth = horizontalWritingMode ? root->documentRect().width() : root->documentRect().height();
    26102609        if (docLogicalWidth > pageLogicalWidth) {
    26112610            flooredPageLogicalWidth = std::min<int>(docLogicalWidth, pageLogicalWidth * maximumShrinkFactor);
     
    26152614            root->setNeedsLayoutAndPrefWidthsRecalc();
    26162615            forceLayout();
     2616            const IntRect& documentRect = root->documentRect();
    26172617            int docLogicalHeight = horizontalWritingMode ? documentRect.height() : documentRect.width();
    26182618            int docLogicalTop = horizontalWritingMode ? documentRect.y() : documentRect.x();
Note: See TracChangeset for help on using the changeset viewer.