git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16532
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+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.
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);