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

Unified Diff: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp

Issue 2292273003: Define contentsProperties on ObjectPaintProperties, for use in paint invalidation. (Closed)
Patch Set: none Created 4 years, 4 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.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
index f57b66166d4eb51fe2e352176ad8449a072603d3..c00d8a442080932b5f5d2c66ca95cb658f79583d 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -486,6 +486,13 @@ void PaintPropertyTreeBuilder::buildTreeNodesForChildren(const LayoutObject& obj
updatePerspective(object, context);
updateSvgLocalToBorderBoxTransform(object, context);
updateScrollTranslation(object, context);
+
+ if (object.objectPaintProperties()) {
+ std::unique_ptr<PropertyTreeState> contentsProperties =
+ wrapUnique(new PropertyTreeState(context.current.transform, context.current.clip, context.currentEffect));
+ object.getMutableForPainting().objectPaintProperties()->setContentsProperties(std::move(contentsProperties));
+ }
+
updateOutOfFlowContext(object, context);
}

Powered by Google App Engine
This is Rietveld 408576698