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

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

Issue 2204503002: ResizeObserver pt6: integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR fixes fixed 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 78d02a87c11a1c59fab1f61efe381b2dd8aebd62..9878944fc5e52697d3852c18c5e1ace7853a6752 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3436,6 +3436,10 @@ void LayoutObject::setShouldDoFullPaintInvalidation(PaintInvalidationReason reas
void LayoutObject::setMayNeedPaintInvalidation()
{
+ if (node() && node()->isElementNode()) {
+ Element& element = toElement(*node());
+ element.sizeMayHaveChanged();
esprehn 2016/08/03 18:06:51 this doesn't seem like the right place to hook for
atotic1 2016/08/04 23:59:40 Removed. Size changes are now monitored in LayoutB
+ }
if (mayNeedPaintInvalidation())
return;
m_bitfields.setMayNeedPaintInvalidation(true);

Powered by Google App Engine
This is Rietveld 408576698