Index: ui/gfx/render_text.h |
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h |
index 3ba9f872e7c554c01c0ab2597f5d36e318f02f6c..1a1e40094fdcec4dc598fc37d69fd98c59d1656d 100644 |
--- a/ui/gfx/render_text.h |
+++ b/ui/gfx/render_text.h |
@@ -24,6 +24,7 @@ |
#include "ui/gfx/selection_model.h" |
#include "ui/gfx/shadow_value.h" |
#include "ui/gfx/text_constants.h" |
+#include "ui/gfx/vector2d.h" |
class SkCanvas; |
class SkDrawLooper; |
@@ -294,7 +295,7 @@ class UI_EXPORT RenderText { |
protected: |
RenderText(); |
- const Point& GetUpdatedDisplayOffset(); |
+ const Vector2d& GetUpdatedDisplayOffset(); |
void set_cached_bounds_and_offset_valid(bool valid) { |
cached_bounds_and_offset_valid_ = valid; |
@@ -380,7 +381,7 @@ class UI_EXPORT RenderText { |
int GetContentWidth(); |
// Returns display offset based on current text alignment. |
- Point GetAlignmentOffset(); |
+ Vector2d GetAlignmentOffset(); |
// Returns the origin point for drawing text. Does not account for font |
// baseline, as needed by Skia. |
@@ -504,7 +505,7 @@ class UI_EXPORT RenderText { |
// The offset for the text to be drawn, relative to the display area. |
// Get this point with GetUpdatedDisplayOffset (or risk using a stale value). |
- Point display_offset_; |
+ Vector2d display_offset_; |
// The cached bounds and offset are invalidated by changes to the cursor, |
// selection, font, and other operations that adjust the visible text bounds. |