nsSelection_cpp-RangeData-fixup
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 141 52d0962c5ed54343d40b33029489225eec95495b
permissions -rw-r--r--
State as of now

diff --git a/layout/generic/nsSelection.cpp b/layout/generic/nsSelection.cpp
--- a/layout/generic/nsSelection.cpp
+++ b/layout/generic/nsSelection.cpp
@@ -175,12 +175,14 @@ struct CachedOffsetForFrame {
   PRPackedBool mCanCacheFrameOffset;    // cached frame offset is valid?
 };
 
+// XXXbsmedberg: mark this class NS_MANAGED
 struct RangeData
 {
   RangeData(nsIDOMRange* aRange, PRInt32 aEndIndex) :
     mRange(aRange), mEndIndex(aEndIndex) {}
 
-  nsCOMPtr<nsIDOMRange> mRange;
+  // XXX need write barriers! :-(
+  nsIDOMRange* mRange;
   PRInt32 mEndIndex; // index into mRangeEndings of this item
 };