Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index 0f73e71f2bfdf2ea81033d14418d0ec145e8998f..2c8b2cad147c1f152c21924f6271d7097535727f 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -134,8 +134,6 @@ void LayoutBox::willBeDestroyed() { |
ShapeOutsideInfo::removeInfo(*this); |
- BoxPaintInvalidator::boxWillBeDestroyed(*this); |
- |
LayoutBoxModelObject::willBeDestroyed(); |
} |
@@ -5721,4 +5719,11 @@ bool LayoutBox::shouldClipOverflow() const { |
return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); |
} |
+void LayoutBox::savePreviousOtherBoxGeometries() { |
+ auto& rareData = ensureRareData(); |
+ rareData.m_hasPreviousOtherBoxGeometries = true; |
+ rareData.m_previousContentBoxSize = contentBoxRect().size(); |
+ rareData.m_previousLayoutOverflowRect = layoutOverflowRect(); |
+} |
+ |
} // namespace blink |