|
Lines 2420-2426
void FrameView::forceLayoutForPagination(const FloatSize& pageSize, float maximu
a/Source/WebCore/page/FrameView.cpp_sec1
|
| 2420 |
root->setLogicalWidth(flooredPageLogicalWidth); |
2420 |
root->setLogicalWidth(flooredPageLogicalWidth); |
| 2421 |
root->setNeedsLayoutAndPrefWidthsRecalc(); |
2421 |
root->setNeedsLayoutAndPrefWidthsRecalc(); |
| 2422 |
forceLayout(); |
2422 |
forceLayout(); |
| 2423 |
root->clearLayoutOverflow(); |
|
|
| 2424 |
int docLogicalHeight = root->style()->isHorizontalWritingMode() ? root->docHeight() : root->docWidth(); |
2423 |
int docLogicalHeight = root->style()->isHorizontalWritingMode() ? root->docHeight() : root->docWidth(); |
| 2425 |
int docLogicalTop = root->style()->isHorizontalWritingMode() ? root->docTop() : root->docLeft(); |
2424 |
int docLogicalTop = root->style()->isHorizontalWritingMode() ? root->docTop() : root->docLeft(); |
| 2426 |
int docLogicalRight = root->style()->isHorizontalWritingMode() ? root->docRight() : root->docBottom(); |
2425 |
int docLogicalRight = root->style()->isHorizontalWritingMode() ? root->docRight() : root->docBottom(); |
|
Lines 2430-2435
void FrameView::forceLayoutForPagination(const FloatSize& pageSize, float maximu
a/Source/WebCore/page/FrameView.cpp_sec2
|
| 2430 |
IntRect overflow(clippedLogicalLeft, docLogicalTop, flooredPageLogicalWidth, docLogicalHeight); |
2429 |
IntRect overflow(clippedLogicalLeft, docLogicalTop, flooredPageLogicalWidth, docLogicalHeight); |
| 2431 |
if (!root->style()->isHorizontalWritingMode()) |
2430 |
if (!root->style()->isHorizontalWritingMode()) |
| 2432 |
overflow = overflow.transposedRect(); |
2431 |
overflow = overflow.transposedRect(); |
|
|
2432 |
root->clearLayoutOverflow(); |
| 2433 |
root->addLayoutOverflow(overflow); // This is how we clip in case we overflow again. |
2433 |
root->addLayoutOverflow(overflow); // This is how we clip in case we overflow again. |
| 2434 |
} |
2434 |
} |
| 2435 |
} |
2435 |
} |