I'm trying to understand the font-related code in WebCore/platform/graphics.

FontCache::createFontPlatformData() takes two arguments: a FontDescription
and an AtomicString specifying the family.  Since FontDescription already
has family specified in it, why does createFontPlatformData() take the
AtomicString family argument?  What do the two respective family
specifications in the FontDescription and the AtomicString mean for
createFontPlatformData?  Isn't this some kind of redundancy?  I have the
same question about FontCache::getCachedFontPlatformData().

Furthermore, FontCache::createFontPlatformData() calls
FontPlatformData::FontPlatformData(FontDescription, AtomicString), so I have
the same question about FontPlatformData::FontPlatformData().

Josh
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to