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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.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/paint/PaintPropertyTreeBuilder.h
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
index b86ac35b42a4954b3cf3c7ad1a5bc522444aaea4..4f668ba96563fcf89dc87343aff4f11df29817e5 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h
@@ -161,6 +161,12 @@ class PaintPropertyTreeBuilder {
ALWAYS_INLINE static void UpdateOutOfFlowContext(
const LayoutObject&,
PaintPropertyTreeBuilderContext&);
+
+ // Ensure the ObjectPaintProperties object is created if it will be needed, or
+ // cleared otherwise.
+ ALWAYS_INLINE static void UpdatePaintProperties(
+ const LayoutObject&,
+ PaintPropertyTreeBuilderContext&);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698