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

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

Issue 2831683003: Refactor to centralize code which decides whether ObjectPaintProperties are needed. (Closed)
Patch Set: none Created 3 years, 8 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.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.

Powered by Google App Engine
This is Rietveld 408576698