mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
Bustage fix followup: release old font metrics
This commit is contained in:
parent
c643fb8c61
commit
81a267fe8e
@ -771,6 +771,7 @@ NS_IMETHODIMP nsChildView::SetFont(const nsFont &aFont)
|
||||
#ifdef MOZ_CAIRO_GFX
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
#else
|
||||
mFontMetrics = nsnull;
|
||||
if (mContext)
|
||||
mContext->GetMetricsFor(aFont, *getter_AddRefs(mFontMetrics));
|
||||
return NS_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user