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: |