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. |