зеркало из https://github.com/mozilla/pjs.git
Bustage fix followup: release old font metrics
This commit is contained in:
Родитель
4dbd940d2e
Коммит
7a014b8ec3
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче