| 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 89b23b078658cced2b4731d5f485539a9a6f9bb3..42b7af7bf6add36aea59881e9f0178dfd099f56d 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -1545,6 +1545,18 @@ bool LayoutBox::invalidatePaintOfLayerRectsForImage(WrappedImagePtr image, const
|
| return false;
|
| }
|
|
|
| +void LayoutBox::frameRectChanged()
|
| +{
|
| + if (node() && node()->isElementNode()) {
|
| + Element& element = toElement(*node());
|
| + element.sizeMayHaveChanged();
|
| + }
|
| + // The frame rect may change because of layout of other objects.
|
| + // Should check this object for paint invalidation.
|
| + if (!needsLayout())
|
| + setMayNeedPaintInvalidation();
|
| +}
|
| +
|
| bool LayoutBox::intersectsVisibleViewport()
|
| {
|
| LayoutRect rect = visualOverflowRect();
|
|
|