Index: trunk/src/ui/gfx/render_text.cc |
=================================================================== |
--- trunk/src/ui/gfx/render_text.cc (revision 211668) |
+++ trunk/src/ui/gfx/render_text.cc (working copy) |
@@ -357,7 +357,9 @@ |
} |
void RenderText::SetFontSize(int size) { |
- SetFontList(font_list_.DeriveFontListWithSize(size)); |
+ font_list_ = font_list_.DeriveFontListWithSize(size); |
+ cached_bounds_and_offset_valid_ = false; |
+ ResetLayout(); |
} |
void RenderText::SetCursorEnabled(bool cursor_enabled) { |