| 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 <limits.h> | 5 #include <limits.h> |
| 6 #include <stddef.h> | 6 #include <stddef.h> |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "cc/paint/paint_canvas.h" |
| 11 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 12 #include "ui/gfx/geometry/insets.h" | 13 #include "ui/gfx/geometry/insets.h" |
| 13 #include "ui/gfx/render_text.h" | 14 #include "ui/gfx/render_text.h" |
| 14 #include "ui/gfx/skia_util.h" | 15 #include "ui/gfx/skia_util.h" |
| 15 #include "ui/gfx/text_elider.h" | 16 #include "ui/gfx/text_elider.h" |
| 16 #include "ui/gfx/text_utils.h" | 17 #include "ui/gfx/text_utils.h" |
| 17 | 18 |
| 18 namespace gfx { | 19 namespace gfx { |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 UpdateRenderText(rect, text, font_list, flags, color, render_text.get()); | 268 UpdateRenderText(rect, text, font_list, flags, color, render_text.get()); |
| 268 render_text->SetElideBehavior(FADE_TAIL); | 269 render_text->SetElideBehavior(FADE_TAIL); |
| 269 | 270 |
| 270 canvas_->save(); | 271 canvas_->save(); |
| 271 ClipRect(display_rect); | 272 ClipRect(display_rect); |
| 272 render_text->Draw(this); | 273 render_text->Draw(this); |
| 273 canvas_->restore(); | 274 canvas_->restore(); |
| 274 } | 275 } |
| 275 | 276 |
| 276 } // namespace gfx | 277 } // namespace gfx |
| OLD | NEW |