Commit 68b1fa53 authored by hyatt's avatar hyatt
Browse files

Minor tweaks to RenderThemeMac's systemFont function.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a4409887
2006-09-22 Dave Hyatt <hyatt@apple.com>
Super-minor tweaks to the systemFont function on Mac.
Set the generic family to None rather than to Serif, and
don't waste time setting the computed size, since that is
set from the specified size over in CSSStyleSelector anyway.
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::systemFont):
2006-09-22 Timothy Hatcher <timothy@apple.com>
 
Reviewed by Brady.
......@@ -129,9 +129,8 @@ void RenderThemeMac::systemFont(int propId, FontDescription& fontDescription) co
if (font) {
cachedDesc->setIsAbsoluteSize(true);
cachedDesc->setGenericFamily(FontDescription::SerifFamily);
cachedDesc->setGenericFamily(FontDescription::NoFamily);
cachedDesc->firstFamily().setFamily([font familyName]);
cachedDesc->setComputedSize([font pointSize]);
cachedDesc->setSpecifiedSize([font pointSize]);
NSFontTraitMask traits = [[NSFontManager sharedFontManager] traitsOfFont:font];
cachedDesc->setBold(traits & NSBoldFontMask);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment