Index: ui/gfx/render_text_harfbuzz.cc |
diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc |
index e4469a6fdfa2500f117317a0b22e84bfac6deb4c..cd03d6809c34a52c5e63fcec79618e3209885f79 100644 |
--- a/ui/gfx/render_text_harfbuzz.cc |
+++ b/ui/gfx/render_text_harfbuzz.cc |
@@ -960,8 +960,9 @@ void RenderTextHarfBuzz::DrawVisualText(Canvas* canvas) { |
background_is_transparent()); |
Range glyphs_range = run.CharRangeToGlyphRange(segment.char_range); |
scoped_ptr<SkPoint[]> positions(new SkPoint[glyphs_range.length()]); |
- SkScalar offset_x = |
- preceding_segment_widths - run.positions[glyphs_range.start()].x(); |
+ SkScalar offset_x = preceding_segment_widths - |
msw
2015/02/14 04:22:34
Hmm, I wonder if this is actually correct, or if r
Jun Mukai
2015/02/17 21:24:21
Thanks, you are right. My intension was:
- if a se
|
+ run.positions[glyphs_range.start()].x() + |
+ run.positions[0].x(); |
for (size_t j = 0; j < glyphs_range.length(); ++j) { |
positions[j] = run.positions[(glyphs_range.is_reversed()) ? |
(glyphs_range.start() - j) : |