Index: ui/gfx/render_text.cc |
diff --git a/ui/gfx/render_text.cc b/ui/gfx/render_text.cc |
index d3c6bea6ffe682b03d68e8e071f991769e5edaa8..5c822e878e469b988a252da3dbc64099640973c3 100644 |
--- a/ui/gfx/render_text.cc |
+++ b/ui/gfx/render_text.cc |
@@ -357,9 +357,7 @@ void RenderText::SetFont(const Font& font) { |
} |
void RenderText::SetFontSize(int size) { |
- font_list_ = font_list_.DeriveFontListWithSize(size); |
- cached_bounds_and_offset_valid_ = false; |
- ResetLayout(); |
+ SetFontList(font_list_.DeriveFontListWithSize(size)); |
} |
void RenderText::SetCursorEnabled(bool cursor_enabled) { |