| 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 1ba7d67924f3bbf8c97a2b8277f6702940aad4cc..240735ce105c2b28c2680ce9bd5549b19fb329e9 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| @@ -465,16 +465,10 @@ void PaintPropertyTreeBuilder::updateLocalBorderBoxContext(
|
| if (auto* properties = object.getMutableForPainting().paintProperties())
|
| properties->clearLocalBorderBoxProperties();
|
| } else {
|
| - std::unique_ptr<ObjectPaintProperties::PropertyTreeStateWithOffset>
|
| - borderBoxContext =
|
| - wrapUnique(new ObjectPaintProperties::PropertyTreeStateWithOffset(
|
| - context.current.paintOffset,
|
| - PropertyTreeState(context.current.transform,
|
| - context.current.clip, context.currentEffect,
|
| - context.current.scroll)));
|
| - object.getMutableForPainting()
|
| - .ensurePaintProperties()
|
| - .setLocalBorderBoxProperties(std::move(borderBoxContext));
|
| + auto& properties = object.getMutableForPainting().ensurePaintProperties();
|
| + properties.updateLocalBorderBoxProperties(
|
| + context.current.paintOffset, context.current.transform,
|
| + context.current.clip, context.currentEffect, context.current.scroll);
|
| }
|
| }
|
|
|
|
|