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

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: Restore missing code that was blown away by rebase 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 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();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698