Bug 982533 - Enable DEBUG_SELECTION cause compile fail. r=ehsan
authorCJKu <cku@mozilla.com>
Fri, 14 Mar 2014 10:30:41 -0400
changeset 191893 a25a6bf64a5f048c0c677094478fc2ec99340911
parent 191892 cef5e324878788d2d31722b19fda612fb7b37612
child 191894 b753b98bcf5509947b2d6f63d597a9a934dd6992
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs982533
milestone30.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 982533 - Enable DEBUG_SELECTION cause compile fail. r=ehsan
layout/generic/nsSelection.cpp
--- a/layout/generic/nsSelection.cpp
+++ b/layout/generic/nsSelection.cpp
@@ -5099,18 +5099,17 @@ Selection::Extend(nsINode& aParentNode, 
 #ifdef DEBUG_SELECTION
   if (eDirNext == mDirection)
     printf("    direction = 1  LEFT TO RIGHT\n");
   else
     printf("    direction = 0  RIGHT TO LEFT\n");
 #endif
   SetDirection(dir);
 #ifdef DEBUG_SELECTION
-  nsCOMPtr<nsIContent>content;
-  content = do_QueryInterface(aParentNode);
+  nsCOMPtr<nsIContent> content = do_QueryInterface(&aParentNode);
 
   printf ("Sel. Extend to %p %s %d\n", content.get(),
           nsAtomCString(content->Tag()).get(), aOffset);
 #endif
   res = mFrameSelection->NotifySelectionListeners(GetType());
   if (NS_FAILED(res)) {
     aRv.Throw(res);
   }