| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gfx/render_text_linux.h" | 5 #include "ui/gfx/render_text_pango.h" |
| 6 | 6 |
| 7 #include <pango/pangocairo.h> | 7 #include <pango/pangocairo.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/i18n/break_iterator.h" | 12 #include "base/i18n/break_iterator.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "third_party/skia/include/core/SkTypeface.h" | 14 #include "third_party/skia/include/core/SkTypeface.h" |
| 15 #include "ui/gfx/canvas.h" | 15 #include "ui/gfx/canvas.h" |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 int glyph_index) const { | 505 int glyph_index) const { |
| 506 return LayoutIndexToTextIndex(run->item->offset + | 506 return LayoutIndexToTextIndex(run->item->offset + |
| 507 run->glyphs->log_clusters[glyph_index]); | 507 run->glyphs->log_clusters[glyph_index]); |
| 508 } | 508 } |
| 509 | 509 |
| 510 RenderText* RenderText::CreateInstance() { | 510 RenderText* RenderText::CreateInstance() { |
| 511 return new RenderTextLinux; | 511 return new RenderTextLinux; |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace gfx | 514 } // namespace gfx |
| OLD | NEW |