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

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

Issue 2204503002: ResizeObserver pt6: integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test for moving dom inside eventloop Created 4 years, 4 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 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();

Powered by Google App Engine
This is Rietveld 408576698