Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
index c072dd7e98f81b7dcb667d55bb7b713eb8255f97..2606ed290d7b01c02ab5273b775b1bf1b676287a 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp |
@@ -160,7 +160,7 @@ bool LayoutSVGResourceClipper::asPath(const AffineTransform& animatedLocalTransf |
} |
PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(AffineTransform& contentTransformation, const FloatRect& targetBoundingBox, |
- GraphicsContext* context) |
+ GraphicsContext& context) |
{ |
ASSERT(frame()); |
@@ -179,7 +179,7 @@ PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin |
// userSpaceOnUse units (http://crbug.com/294900). |
FloatRect bounds = strokeBoundingBox(); |
- SkPictureBuilder pictureBuilder(bounds, nullptr, context); |
+ SkPictureBuilder pictureBuilder(bounds, nullptr, &context); |
for (SVGElement* childElement = Traversal<SVGElement>::firstChild(*element()); childElement; childElement = Traversal<SVGElement>::nextSibling(*childElement)) { |
LayoutObject* layoutObject = childElement->layoutObject(); |
@@ -213,7 +213,7 @@ PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture(Affin |
// - masker/filter not applied when laying out the children |
// - fill is set to the initial fill paint server (solid, black) |
// - stroke is set to the initial stroke paint server (none) |
- PaintInfo info(&pictureBuilder.context(), LayoutRect::infiniteIntRect(), PaintPhaseForeground, GlobalPaintNormalPhase, PaintLayerPaintingRenderingClipPathAsMask); |
+ PaintInfo info(pictureBuilder.context(), LayoutRect::infiniteIntRect(), PaintPhaseForeground, GlobalPaintNormalPhase, PaintLayerPaintingRenderingClipPathAsMask); |
layoutObject->paint(info, IntPoint()); |
} |