summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGFont.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-02-17 09:06:39 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-17 09:06:39 -0800
commit7aed021d3442e74aedc738192c55d8978b2d9643 (patch)
tree7801e8554b642ef58b280135c847003f833bb70e /WebCore/svg/SVGFont.cpp
parent990373e4c55ba4f0312b5ab7974388d717d1907c (diff)
parentf7f6d6409be37f76dc308902285d24806dc87ef2 (diff)
downloadexternal_webkit-7aed021d3442e74aedc738192c55d8978b2d9643.zip
external_webkit-7aed021d3442e74aedc738192c55d8978b2d9643.tar.gz
external_webkit-7aed021d3442e74aedc738192c55d8978b2d9643.tar.bz2
Merge "Merge WebKit at Chromium 9.0.597.106: Initial merge by Git"
Diffstat (limited to 'WebCore/svg/SVGFont.cpp')
-rw-r--r--WebCore/svg/SVGFont.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/svg/SVGFont.cpp b/WebCore/svg/SVGFont.cpp
index 898c259..25dbbe3 100644
--- a/WebCore/svg/SVGFont.cpp
+++ b/WebCore/svg/SVGFont.cpp
@@ -241,7 +241,7 @@ struct SVGTextRunWalker {
{
ASSERT(0 <= from && from <= to && to - from <= run.length());
- const String text = Font::normalizeSpaces(String(run.data(from), run.length()));
+ const String text = Font::normalizeSpaces(String(run.data(from), to - from));
Vector<SVGGlyphIdentifier::ArabicForm> chars(charactersWithArabicForm(text, run.rtl()));
SVGGlyphIdentifier identifier;