Index: Source/core/rendering/RenderBox.cpp |
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp |
index 63da47dd6c38ae0151e61c9aaa53724cb3e6ac3a..8292722fda66f6da61d6cdf4a0854a6ab4003daf 100644 |
--- a/Source/core/rendering/RenderBox.cpp |
+++ b/Source/core/rendering/RenderBox.cpp |
@@ -4143,6 +4143,15 @@ bool RenderBox::avoidsFloats() const |
return isReplaced() || hasOverflowClip() || isHR() || isLegend() || isWritingModeRoot() || isFlexItemIncludingDeprecated(); |
} |
+void RenderBox::markForPaginationRelayoutIfNeeded(SubtreeLayoutScope& layoutScope) |
+{ |
+ ASSERT(!needsLayout()); |
+ // If fragmentation height has changed, we need to lay out. No need to enter the renderer if it |
+ // is childless, though. |
+ if (view()->layoutState()->pageLogicalHeightChanged() && firstChild()) |
+ layoutScope.setChildNeedsLayout(this); |
+} |
+ |
void RenderBox::addVisualEffectOverflow() |
{ |
if (!style()->boxShadow() && !style()->hasBorderImageOutsets()) |