Index: third_party/WebKit/Source/core/layout/LayoutObject.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h |
index 7c67bccfcfddb5897510a8405fe2363e75676dea..f103221d9ee157e9aa5600bc9bbb91daed94a53b 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h |
@@ -1817,6 +1817,10 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver, |
return paint_data->PaintProperties(); |
return nullptr; |
} |
+ void ClearPaintProperties() { |
+ if (auto* paint_data = layout_object_.GetRarePaintData()) |
+ paint_data->ClearPaintProperties(); |
+ } |
// The following non-const functions for local border box properties should |
// only be called from PaintPropertyTreeBuilder. |