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

Unified Diff: third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h

Issue 2585603002: [SPInvaldation] Update subtree paint properties when a layout subtree is inserted (Closed)
Patch Set: Separate out printing change Created 4 years 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/paint/FindPropertiesNeedingUpdate.h
diff --git a/third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h b/third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h
index a6dbeef959637a390f283a11b02b792f5b4f23bd..a1578ca5d9c1e4e087a1cbe7028f8aa0fe07560a 100644
--- a/third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h
+++ b/third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h
@@ -116,7 +116,7 @@ class FindObjectPropertiesNeedingUpdateScope {
return;
// Mark the properties as needing an update to ensure they are rebuilt.
- const_cast<LayoutObject&>(m_object)
+ m_object.getMutableForPainting()
.setOnlyThisNeedsPaintPropertyUpdateForTesting();
if (const auto* properties = m_object.paintProperties())
@@ -193,7 +193,7 @@ class FindObjectPropertiesNeedingUpdateScope {
DCHECK_EQ(!!m_originalProperties, !!objectProperties);
}
// Restore original clean bit.
- const_cast<LayoutObject&>(m_object).clearNeedsPaintPropertyUpdate();
+ m_object.getMutableForPainting().clearNeedsPaintPropertyUpdateForTesting();
}
private:

Powered by Google App Engine
This is Rietveld 408576698