| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
|
| index fd476fab394a3f7f0ac9892136fb58601dc7f742..219848c91df26e393d0e4f5773c7ef9d4d447576 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
|
| @@ -203,23 +203,23 @@ sk_sp<PaintRecord> LayoutSVGResourcePattern::asPaintRecord(
|
| contentTransform = tileTransform;
|
|
|
| FloatRect bounds(FloatPoint(), tileBounds.size());
|
| - PaintRecordBuilder builder(bounds);
|
| -
|
| const LayoutSVGResourceContainer* patternLayoutObject =
|
| resolveContentElement();
|
| ASSERT(patternLayoutObject && !patternLayoutObject->needsLayout());
|
|
|
| SubtreeContentTransformScope contentTransformScope(contentTransform);
|
|
|
| - {
|
| - TransformRecorder transformRecorder(builder.context(), *patternLayoutObject,
|
| - tileTransform);
|
| - for (LayoutObject* child = patternLayoutObject->firstChild(); child;
|
| - child = child->nextSibling())
|
| - SVGPaintContext::paintResourceSubtree(builder.context(), child);
|
| - }
|
| -
|
| - return builder.endRecording();
|
| + PaintRecordBuilder builder(bounds);
|
| + for (LayoutObject* child = patternLayoutObject->firstChild(); child;
|
| + child = child->nextSibling())
|
| + SVGPaintContext::paintResourceSubtree(builder.context(), child);
|
| + PaintRecorder paintRecorder;
|
| + PaintCanvas* canvas = paintRecorder.beginRecording(bounds);
|
| + canvas->save();
|
| + canvas->concat(affineTransformToSkMatrix(tileTransform));
|
| + canvas->drawPicture(builder.endRecording());
|
| + canvas->restore();
|
| + return paintRecorder.finishRecordingAsPicture();
|
| }
|
|
|
| } // namespace blink
|
|
|