Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 0c7de850b769eb49cf8a368830833c299c369f3f..0cdb70e933bc3dd6cd30bb15d1ad4a06ac627614 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -1043,11 +1043,12 @@ Error SVGSrc::draw(SkCanvas* canvas) const { |
return SkStringPrintf("Unable to open file: %s", fPath.c_str()); |
} |
- sk_sp<SkSVGDOM> dom = SkSVGDOM::MakeFromStream(stream, kSVGSize); |
+ sk_sp<SkSVGDOM> dom = SkSVGDOM::MakeFromStream(stream); |
if (!dom) { |
return SkStringPrintf("Unable to parse file: %s", fPath.c_str()); |
} |
+ dom->setContainerSize(kSVGSize); |
dom->render(canvas); |
return ""; |