Index: Source/core/layout/LayoutBox.cpp |
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp |
index 18f1df9511b843b893c025c52bc90f1cacd0006c..128d138499b2a7d2ed5ef479b1850c56916bea52 100644 |
--- a/Source/core/layout/LayoutBox.cpp |
+++ b/Source/core/layout/LayoutBox.cpp |
@@ -1394,7 +1394,7 @@ PaintInvalidationReason LayoutBox::invalidatePaintIfNeeded(PaintInvalidationStat |
} |
// This is for the next invalidatePaintIfNeeded so must be at the end. |
- savePreviousBoxSizesIfNeeded(newPaintInvalidationContainer); |
+ savePreviousBoxSizesIfNeeded(); |
return reason; |
} |
@@ -4572,13 +4572,13 @@ void LayoutBox::setPageLogicalOffset(LayoutUnit offset) |
ensureRareData().m_pageLogicalOffset = offset; |
} |
-bool LayoutBox::needToSavePreviousBoxSizes(const LayoutBoxModelObject& paintInvalidationContainer) |
+bool LayoutBox::needToSavePreviousBoxSizes() |
{ |
// If m_rareData is already created, always save. |
if (m_rareData) |
return true; |
- LayoutSize paintInvalidationSize = previousPaintInvalidationRectIncludingCompositedScrolling(paintInvalidationContainer).size(); |
+ LayoutSize paintInvalidationSize = previousPaintInvalidationRectSize(); |
// Don't save old box sizes if the paint rect is empty because we'll |
// full invalidate once the paint rect becomes non-empty. |
if (paintInvalidationSize.isEmpty()) |
@@ -4602,9 +4602,9 @@ bool LayoutBox::needToSavePreviousBoxSizes(const LayoutBoxModelObject& paintInva |
return false; |
} |
-void LayoutBox::savePreviousBoxSizesIfNeeded(const LayoutBoxModelObject& paintInvalidationContainer) |
+void LayoutBox::savePreviousBoxSizesIfNeeded() |
{ |
- if (!needToSavePreviousBoxSizes(paintInvalidationContainer)) |
+ if (!needToSavePreviousBoxSizes()) |
return; |
LayoutBoxRareData& rareData = ensureRareData(); |