API change to nsIDeviceContext
git-svn-id: svn://10.0.0.236/trunk@8643 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -247,7 +247,7 @@ nsPresContext::GetMetricsFor(const nsFont& aFont)
|
||||
nsIFontMetrics* metrics;
|
||||
|
||||
mDeviceContext->GetMetricsFor(aFont, metrics);
|
||||
return NS_OK;
|
||||
return metrics;
|
||||
}
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ nsPresContext::GetMetricsFor(const nsFont& aFont)
|
||||
nsIFontMetrics* metrics;
|
||||
|
||||
mDeviceContext->GetMetricsFor(aFont, metrics);
|
||||
return NS_OK;
|
||||
return metrics;
|
||||
}
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user