Bug 1186780: ifdef DEBUG fixes on a CLOSED TREE. r=me
authorKyle Huey <khuey@kylehuey.com>
Thu, 30 Jul 2015 14:01:49 -0700
changeset 287220 e9012f07826574b0b3859ab88f765e7e19fdc587
parent 287219 43ae47ffe011363092fd4a5d64c14d8a7c9ce69e
child 287221 284e480363118933968d31946e0747d8141a00c0
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1186780
milestone42.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 1186780: ifdef DEBUG fixes on a CLOSED TREE. r=me
layout/style/ImageLoader.cpp
--- a/layout/style/ImageLoader.cpp
+++ b/layout/style/ImageLoader.cpp
@@ -199,17 +199,17 @@ ImageLoader::SetAnimationMode(uint16_t a
                aMode == imgIContainer::kLoopOnceAnimMode,
                "Wrong Animation Mode is being set!");
 
   for (auto iter = mRequestToFrameMap.ConstIter(); !iter.Done(); iter.Next()) {
     auto request = static_cast<imgIRequest*>(iter.Key());
 
 #ifdef DEBUG
     {
-      nsCOMPtr<imgIRequest> debugRequest = do_QueryInterface(key);
+      nsCOMPtr<imgIRequest> debugRequest = do_QueryInterface(request);
       NS_ASSERTION(debugRequest == request, "This is bad");
     }
 #endif
 
     nsCOMPtr<imgIContainer> container;
     request->GetImage(getter_AddRefs(container));
     if (!container) {
       continue;
@@ -223,17 +223,17 @@ ImageLoader::SetAnimationMode(uint16_t a
 void
 ImageLoader::ClearFrames(nsPresContext* aPresContext)
 {
   for (auto iter = mRequestToFrameMap.ConstIter(); !iter.Done(); iter.Next()) {
     auto request = static_cast<imgIRequest*>(iter.Key());
 
 #ifdef DEBUG
     {
-      nsCOMPtr<imgIRequest> debugRequest = do_QueryInterface(key);
+      nsCOMPtr<imgIRequest> debugRequest = do_QueryInterface(request);
       NS_ASSERTION(debugRequest == request, "This is bad");
     }
 #endif
 
     if (aPresContext) {
       nsLayoutUtils::DeregisterImageRequest(aPresContext,
 					    request,
 					    nullptr);