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

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

Issue 2741833005: Make PrePaintTreeWalkContext::treeBuilderContext a unique_ptr (Closed)
Patch Set: Created 3 years, 9 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 348b3b97a63bdd04add3dd3e34c13f17bb192690..acc863efbb333203a64786c8178ca436024d73c9 100644
--- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
@@ -26,9 +26,8 @@
namespace blink {
-PaintPropertyTreeBuilderContext
-PaintPropertyTreeBuilder::setupInitialContext() {
- PaintPropertyTreeBuilderContext context;
+void PaintPropertyTreeBuilder::setupInitialContext(
+ PaintPropertyTreeBuilderContext& context) {
context.current.clip = context.absolutePosition.clip =
context.fixedPosition.clip = ClipPaintPropertyNode::root();
context.currentEffect = EffectPaintPropertyNode::root();
@@ -37,7 +36,6 @@ PaintPropertyTreeBuilder::setupInitialContext() {
context.fixedPosition.transform = TransformPaintPropertyNode::root();
context.current.scroll = context.absolutePosition.scroll =
context.fixedPosition.scroll = ScrollPaintPropertyNode::root();
- return context;
}
// True if a new property was created, false if an existing one was updated.

Powered by Google App Engine
This is Rietveld 408576698