bug 717175 - clear word cache earlier when expiring fonts. r=jdaggett
authorJonathan Kew <jfkthame@gmail.com>
Mon, 20 Feb 2012 08:54:58 +0000
changeset 87224 3588de29a03f649140ade4a58d84a382f38b0d9a
parent 87223 985031d212189a59b7ae8db38a85f650155a6eb7
child 87225 4ad3d672bf460cac00b2c30b9d94b0444a6c43df
push id22103
push userbmo@edmorley.co.uk
push dateTue, 21 Feb 2012 12:01:45 +0000
treeherdermozilla-central@4038ffaa5d82 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett
bugs717175
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 717175 - clear word cache earlier when expiring fonts. r=jdaggett
gfx/thebes/gfxFont.cpp
--- a/gfx/thebes/gfxFont.cpp
+++ b/gfx/thebes/gfxFont.cpp
@@ -1112,16 +1112,17 @@ gfxFontCache::NotifyReleased(gfxFont *aF
     // we already had a font. These fonts are added to the expiration tracker
     // anyway, even though Lookup can't resurrect them. Eventually they will
     // expire and be deleted.
 }
 
 void
 gfxFontCache::NotifyExpired(gfxFont *aFont)
 {
+    aFont->ClearCachedWords();
     RemoveObject(aFont);
     DestroyFont(aFont);
 }
 
 void
 gfxFontCache::DestroyFont(gfxFont *aFont)
 {
     Key key(aFont->GetFontEntry(), aFont->GetStyle());