Index: Source/core/rendering/RootInlineBox.cpp |
diff --git a/Source/core/rendering/RootInlineBox.cpp b/Source/core/rendering/RootInlineBox.cpp |
index 3bcc6fd62bd62739c7a7072201df1d01d85148fe..5b0a8fde96c9de57f6bdd3874e087c44abdcd503 100644 |
--- a/Source/core/rendering/RootInlineBox.cpp |
+++ b/Source/core/rendering/RootInlineBox.cpp |
@@ -249,7 +249,8 @@ LayoutUnit RootInlineBox::alignBoxesInBlockDirection(LayoutUnit heightOfBlock, G |
maxHeight = max<LayoutUnit>(0, maxHeight); // FIXME: Is this really necessary? |
setLineTopBottomPositions(lineTop, lineBottom, heightOfBlock, heightOfBlock + maxHeight); |
- setPaginatedLineWidth(block().availableLogicalWidthForContent()); |
+ if (block().view()->layoutState()->isPaginated()) |
+ setPaginatedLineWidth(block().availableLogicalWidthForContent()); |
LayoutUnit annotationsAdjustment = beforeAnnotationsAdjustment(); |
if (annotationsAdjustment) { |