nsTransitionKey-sucky-hack
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 138 f20394841a97fd94c56067d26700fb3617cdc401
permissions -rw-r--r--
State as of now

diff --git a/layout/xul/base/src/tree/src/nsTreeStyleCache.h b/layout/xul/base/src/tree/src/nsTreeStyleCache.h
--- a/layout/xul/base/src/tree/src/nsTreeStyleCache.h
+++ b/layout/xul/base/src/tree/src/nsTreeStyleCache.h
@@ -68,18 +68,19 @@ public:
   }
 };
 
+// XXXbsmedberg - nsHashtable blows!
 class nsTransitionKey : public nsHashKey
 {
 public:
   PRUint32 mState;
-  nsCOMPtr<nsIAtom> mInputSymbol;
+  nsIAtom* mInputSymbol;
 
   nsTransitionKey(PRUint32 aState, nsIAtom* aSymbol) :mState(aState), mInputSymbol(aSymbol) {}
 
   PRUint32 HashCode(void) const {
     // Make a 32-bit integer that combines the low-order 16 bits of the state and the input symbol.
     PRInt32 hb = mState << 16;
-    PRInt32 lb = (NS_PTR_TO_INT32(mInputSymbol.get()) << 16) >> 16;
+    PRInt32 lb = (NS_PTR_TO_INT32(mInputSymbol) << 16) >> 16;
     return hb+lb;
   }