DescriptionClean-up: Replaces Font with FontList in TooltipManager.
This is a part of refactoring to replace all use of gfx::Font with gfx::FontList. Also this replacement solves a possible vertical alignment issue of text rendering.
See "Background & Problem" section in the following doc why this refactoring is needed.
https://docs.google.com/a/chromium.org/document/d/1D_25fp9B8b9aZJORfAjDIFq61NWvUquZ5xmKH-VcC4k/edit#heading=h.olbd4u4vk3h6
NOTE:
a) Existing Font::GetStringWidth() is now obsolete and should be replaced by gfx::GetStringWidth() in ui/gfx/text_utils.h .
b) 'const' has internal linkage so it doesn't require anonymous namespace (in ui/views/widget/tooltip_manager.cc).
BUG=265485
TEST=Run unittests.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220509
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|