| 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
|
|
|