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

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

Issue 2292353003: Cherry-pick r415013 to M53. (Closed)
Patch Set: 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 f5ec2568603739e526c7d83230bbf582cc4d9fb3..0220e60fc347c185e1c9f3a0503096ef4a01c671 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1232,7 +1232,7 @@ bool LayoutObject::compositedScrollsWithRespectTo(const LayoutBoxModelObject& pa
return paintInvalidationContainer.usesCompositedScrolling() && this != &paintInvalidationContainer;
}
-void LayoutObject::invalidatePaintRectangle(const LayoutRect& dirtyRect) const
+void LayoutObject::invalidatePaintRectangle(const LayoutRect& dirtyRect, DisplayItemClient* displayItemClient) const
{
RELEASE_ASSERT(isRooted());
@@ -1255,7 +1255,10 @@ void LayoutObject::invalidatePaintRectangle(const LayoutRect& dirtyRect) const
invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRectOnBacking, PaintInvalidationRectangle);
slowSetPaintingLayerNeedsRepaint();
- invalidateDisplayItemClients(PaintInvalidationRectangle);
+ if (displayItemClient)
+ invalidateDisplayItemClient(*displayItemClient, PaintInvalidationRectangle);
+ else
+ invalidateDisplayItemClients(PaintInvalidationRectangle);
}
void LayoutObject::invalidateTreeIfNeeded(const PaintInvalidationState& paintInvalidationState)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698