Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: experimental/svg/SkSVGDevice.cpp

Issue 896363002: add length parameter to addText, to match attr values (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove legacy addText site Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/xml/SkXMLWriter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/svg/SkSVGDevice.cpp
diff --git a/experimental/svg/SkSVGDevice.cpp b/experimental/svg/SkSVGDevice.cpp
index 91ff31364dd610b6f07532ce9ba0bc4b63b61821..a80a1c58a32e30289c5f5adba9e79289ee60687a 100644
--- a/experimental/svg/SkSVGDevice.cpp
+++ b/experimental/svg/SkSVGDevice.cpp
@@ -193,7 +193,7 @@ public:
}
void addText(const SkString& text) {
- fWriter->addText(text.c_str());
+ fWriter->addText(text.c_str(), text.size());
}
void addRectAttributes(const SkRect&);
« no previous file with comments | « no previous file | include/xml/SkXMLWriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698