| Index: third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
|
| index 1013a7c7c20f4ca268568aee2c05d0befc3689ea..86f6a95cb5e5d698d4db0aa02b892714d60ddf7b 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
|
| @@ -25,6 +25,16 @@ SkPictureBuilder::SkPictureBuilder(const FloatRect& bounds,
|
| } else {
|
| m_paintControllerPtr = PaintController::create();
|
| m_paintController = m_paintControllerPtr.get();
|
| +
|
| + // Content painted with a new paint controller in SPv2 will have an
|
| + // independent property tree set.
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
|
| + PaintChunk::Id id(*this, DisplayItem::kSVGImage);
|
| + PropertyTreeState state(
|
| + TransformPaintPropertyNode::root(), ClipPaintPropertyNode::root(),
|
| + EffectPaintPropertyNode::root(), ScrollPaintPropertyNode::root());
|
| + m_paintController->updateCurrentPaintChunkProperties(&id, state);
|
| + }
|
| }
|
| #if DCHECK_IS_ON()
|
| m_paintController->setUsage(PaintController::ForSkPictureBuilder);
|
|
|