| Index: ui/gfx/render_text_mac.cc
|
| diff --git a/ui/gfx/render_text_mac.cc b/ui/gfx/render_text_mac.cc
|
| index 9ee069f1a60a63089c44b9b15dc59cc532c0f541..75d7f4262094083fe133964bea5c01b1694164b1 100644
|
| --- a/ui/gfx/render_text_mac.cc
|
| +++ b/ui/gfx/render_text_mac.cc
|
| @@ -232,13 +232,12 @@ void RenderTextMac::ComputeRuns() {
|
| CFArrayRef ct_runs = CTLineGetGlyphRuns(line_);
|
| const CFIndex ct_runs_count = CFArrayGetCount(ct_runs);
|
|
|
| - Point offset(GetTextOrigin());
|
| - // Skia will draw glyphs with respect to the baseline.
|
| - offset.Offset(0, common_baseline_);
|
| + gfx::Vector2d text_offset = GetTextOffset();
|
|
|
| - const SkScalar x = SkIntToScalar(offset.x());
|
| - const SkScalar y = SkIntToScalar(offset.y());
|
| - SkPoint run_origin = SkPoint::Make(offset.x(), offset.y());
|
| + // Skia will draw glyphs with respect to the baseline.
|
| + const SkScalar x = SkIntToScalar(text_offset.x());
|
| + const SkScalar y = SkIntToScalar(text_offset.y() + common_baseline_);
|
| + SkPoint run_origin = SkPoint::Make(x, y);
|
|
|
| const CFRange empty_cf_range = CFRangeMake(0, 0);
|
| for (CFIndex i = 0; i < ct_runs_count; ++i) {
|
|
|