Fixed call to GetFontCache
git-svn-id: svn://10.0.0.236/trunk@8674 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -833,7 +833,8 @@ void nsWindow::SetFont(const nsFont &aFont)
|
||||
if (mContext == nsnull) {
|
||||
return;
|
||||
}
|
||||
nsIFontCache* fontCache = mContext->GetFontCache();
|
||||
nsIFontCache* fontCache;
|
||||
mContext->GetFontCache(fontCache);
|
||||
if (fontCache != nsnull) {
|
||||
nsIFontMetrics* metrics = fontCache->GetMetricsFor(aFont);
|
||||
if (metrics != nsnull) {
|
||||
|
||||
Reference in New Issue
Block a user