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 b2de1e362e42e9f920416ac90784ba2b85107034..ed8fbdf554cf772335cb0ce3606ee482438e9846 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -1562,6 +1562,18 @@ ResourcePriority LayoutBox::computeResourcePriority() const |
return ResourcePriority(isVisible ? ResourcePriority::Visible : ResourcePriority::NotVisible, screenArea); |
} |
+void LayoutBox::frameRectChanged() |
+{ |
+ if (node() && node()->isElementNode()) { |
+ Element& element = toElement(*node()); |
+ element.setNeedsResizeObserverUpdate(); |
+ } |
+ // The frame rect may change because of layout of other objects. |
+ // Should check this object for paint invalidation. |
+ if (!needsLayout()) |
+ setMayNeedPaintInvalidation(); |
+} |
+ |
bool LayoutBox::intersectsVisibleViewport() const |
{ |
LayoutRect rect = visualOverflowRect(); |