Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2707073002: Move PreviousBoxGeometries from BoxPaintInvalidator into LayoutBox::m_rareData (Closed)
Patch Set: uninline savePreviousOtherBoxGeometries() Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698