Bug 1209351 (part 3) - Optimize nsTHashTable::RemoveEntry() usage in gfx/. r=jrmuizel.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 24 Sep 2015 19:07:22 -0700
changeset 265978 469b3a7acb0d24065c12eb6d39be5628461eabfe
parent 265977 e645ae59fceccf993129ecb80c1cc81f0ffa0c8e
child 265979 43f1095ea9cd19b5a6e9bcb1071bcb04f7bd661b
push id29476
push usercbook@mozilla.com
push dateMon, 05 Oct 2015 10:02:13 +0000
treeherdermozilla-central@45f01961ecd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel
bugs1209351
milestone44.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 1209351 (part 3) - Optimize nsTHashTable::RemoveEntry() usage in gfx/. r=jrmuizel.
gfx/thebes/gfxFont.cpp
--- a/gfx/thebes/gfxFont.cpp
+++ b/gfx/thebes/gfxFont.cpp
@@ -283,17 +283,17 @@ gfxFontCache::NotifyExpired(gfxFont *aFo
 
 void
 gfxFontCache::DestroyFont(gfxFont *aFont)
 {
     Key key(aFont->GetFontEntry(), aFont->GetStyle(),
             aFont->GetUnicodeRangeMap());
     HashEntry *entry = mFonts.GetEntry(key);
     if (entry && entry->mFont == aFont) {
-        mFonts.RemoveEntry(key);
+        mFonts.RemoveEntry(entry);
     }
     NS_ASSERTION(aFont->GetRefCount() == 0,
                  "Destroying with non-zero ref count!");
     delete aFont;
 }
 
 /*static*/
 void