summaryrefslogtreecommitdiffstats
path: root/ui/gfx/render_text_harfbuzz.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/render_text_harfbuzz.h')
-rw-r--r--ui/gfx/render_text_harfbuzz.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/gfx/render_text_harfbuzz.h b/ui/gfx/render_text_harfbuzz.h
index b028a37a..e84ca48 100644
--- a/ui/gfx/render_text_harfbuzz.h
+++ b/ui/gfx/render_text_harfbuzz.h
@@ -48,8 +48,8 @@ struct GFX_EXPORT TextRunHarfBuzz {
// Returns whether the given shaped run contains any missing glyphs.
bool HasMissingGlyphs() const;
- int width;
- int preceding_run_widths;
+ float width;
+ float preceding_run_widths;
Range range;
bool is_rtl;
UBiDiLevel level;
@@ -80,6 +80,7 @@ class GFX_EXPORT RenderTextHarfBuzz : public RenderText {
// Overridden from RenderText.
virtual Size GetStringSize() OVERRIDE;
+ virtual SizeF GetStringSizeF() OVERRIDE;
virtual SelectionModel FindCursorPosition(const Point& point) OVERRIDE;
virtual std::vector<FontSpan> GetFontSpansForTesting() OVERRIDE;
virtual Range GetGlyphBounds(size_t index) OVERRIDE;