Changeset 88556 in webkit
- Timestamp:
- Jun 10, 2011, 12:44:39 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/chromium-linux/printing/page-count-relayout-shrink-expected.txt (added)
-
LayoutTests/platform/mac/printing/page-count-relayout-shrink-expected.txt (added)
-
LayoutTests/printing/page-count-relayout-shrink.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/FrameView.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r88555 r88556 1 2011-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 1 14 2011-06-10 Rob Buis <rbuis@rim.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r88555 r88556 1 2011-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 1 15 2011-06-10 Rob Buis <rbuis@rim.com> 2 16 -
trunk/Source/WebCore/page/FrameView.cpp
r88307 r88556 2605 2605 // FIXME: We are assuming a shrink-to-fit printing implementation. A cropping 2606 2606 // implementation should not do this! 2607 const IntRect& documentRect = root->documentRect();2608 2607 bool horizontalWritingMode = root->style()->isHorizontalWritingMode(); 2609 int docLogicalWidth = horizontalWritingMode ? documentRect.width() : documentRect.height();2608 int docLogicalWidth = horizontalWritingMode ? root->documentRect().width() : root->documentRect().height(); 2610 2609 if (docLogicalWidth > pageLogicalWidth) { 2611 2610 flooredPageLogicalWidth = std::min<int>(docLogicalWidth, pageLogicalWidth * maximumShrinkFactor); … … 2615 2614 root->setNeedsLayoutAndPrefWidthsRecalc(); 2616 2615 forceLayout(); 2616 const IntRect& documentRect = root->documentRect(); 2617 2617 int docLogicalHeight = horizontalWritingMode ? documentRect.height() : documentRect.width(); 2618 2618 int docLogicalTop = horizontalWritingMode ? documentRect.y() : documentRect.x();
Note:
See TracChangeset
for help on using the changeset viewer.