Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: trunk/src/ui/gfx/render_text.cc

Issue 19270002: This caused failures in ui_unittests FontListTest.Fonts_GetHeight_GetBaseline (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/ui/gfx/font_list_unittest.cc ('k') | trunk/src/ui/gfx/render_text_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « trunk/src/ui/gfx/font_list_unittest.cc ('k') | trunk/src/ui/gfx/render_text_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698