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

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

Issue 2707073002: Move PreviousBoxGeometries from BoxPaintInvalidator into LayoutBox::m_rareData (Closed)
Patch Set: - 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..a811845a856a079bf95d7ae47d63a062fccab26f 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,12 @@ bool LayoutBox::shouldClipOverflow() const {
return hasOverflowClip() || styleRef().containsPaint() || hasControlClip();
}
+void LayoutBox::MutableForPainting::
+ savePreviousContentBoxSizeAndLayoutOverflowRect() {
+ auto& rareData = layoutBox().ensureRareData();
+ rareData.m_hasPreviousContentBoxSizeAndLayoutOverflowRect = true;
+ rareData.m_previousContentBoxSize = layoutBox().contentBoxRect().size();
+ rareData.m_previousLayoutOverflowRect = layoutBox().layoutOverflowRect();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698