Bug 634616 - Fix build bustage when --disable-ipc. r=romaxa a=NPOTB
authorMounir Lamouri <mounir.lamouri@gmail.com>
Thu, 17 Feb 2011 11:50:35 +0100
changeset 62732 f817115c1cc9
parent 62731 dc1e5032ed96
child 62733 753b5de51ba1
push id18848
push usermlamouri@mozilla.com
push dateThu, 17 Feb 2011 10:53:00 +0000
treeherdermozilla-central@f817115c1cc9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersromaxa, NPOTB
bugs634616
milestone2.0b12pre
first release with
nightly win64
f817115c1cc9 / 4.0b12pre / 20110217030211 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
Bug 634616 - Fix build bustage when --disable-ipc. r=romaxa a=NPOTB
content/base/src/nsDocument.cpp
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -8211,20 +8211,22 @@ PLDHashOperator UnlockEnumerator(imgIReq
   aKey->UnlockImage();
   return PL_DHASH_NEXT;
 }
 
 
 nsresult
 nsDocument::SetImageLockingState(PRBool aLocked)
 {
+#ifdef MOZ_IPC
   if (XRE_GetProcessType() == GeckoProcessType_Content &&
       !nsContentUtils::GetBoolPref("content.image.allow_locking", PR_TRUE)) {
     return NS_OK;
   }
+#endif // MOZ_IPC
 
   // If there's no change, there's nothing to do.
   if (mLockingImages == aLocked)
     return NS_OK;
 
   // Otherwise, iterate over our images and perform the appropriate action.
   mImageTracker.EnumerateRead(aLocked ? LockEnumerator
                                       : UnlockEnumerator,