Bug 1163449 - Remove OOM check when creating new nsFontFaceLoader. r=jdaggett
authorCameron McCormack <cam@mcc.id.au>
Mon, 11 May 2015 11:24:48 +1000
changeset 243322 3bae55ada55e72dac1c406ac1b0983159b3a15ba
parent 243206 ac0f231f4342d6c89d3d195da6b67edd7ba5229c
child 243323 6325283ba40bc00b0b3d0a85331880f1ef18a786
push id28738
push usercbook@mozilla.com
push dateTue, 12 May 2015 14:11:31 +0000
treeherdermozilla-central@bedce1b405a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett
bugs1163449
milestone40.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 1163449 - Remove OOM check when creating new nsFontFaceLoader. r=jdaggett
layout/style/FontFaceSet.cpp
--- a/layout/style/FontFaceSet.cpp
+++ b/layout/style/FontFaceSet.cpp
@@ -446,19 +446,16 @@ FontFaceSet::StartLoad(gfxUserFontEntry*
                                             nsIContentPolicy::TYPE_FONT,
                                             loadGroup);
 
   NS_ENSURE_SUCCESS(rv, rv);
 
   nsRefPtr<nsFontFaceLoader> fontLoader =
     new nsFontFaceLoader(aUserFontEntry, aFontFaceSrc->mURI, this, channel);
 
-  if (!fontLoader)
-    return NS_ERROR_OUT_OF_MEMORY;
-
 #ifdef PR_LOGGING
   if (LOG_ENABLED()) {
     nsAutoCString fontURI, referrerURI;
     aFontFaceSrc->mURI->GetSpec(fontURI);
     if (aFontFaceSrc->mReferrer)
       aFontFaceSrc->mReferrer->GetSpec(referrerURI);
     LOG(("userfonts (%p) download start - font uri: (%s) "
          "referrer uri: (%s)\n",