Bug 713417 - Make the nsGkAtoms::range property transferable. r=smaug
authorMats Palmgren <matspal@gmail.com>
Mon, 26 Dec 2011 14:29:25 +0100
changeset 83964 b9e5451b1cee6157fb2c57e11ade2a28cdf939bf
parent 83963 59e82ed828c7c62f915933c14d68871a6a698322
child 83965 c22595601b71932b0f7f4f3ef9eeddbe58b0017b
push id647
push usermpalmgren@mozilla.com
push dateWed, 28 Dec 2011 11:44:00 +0000
treeherdermozilla-aurora@06335a118a5a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs713417
milestone11.0a2
Bug 713417 - Make the nsGkAtoms::range property transferable. r=smaug
content/base/src/nsRange.cpp
--- a/content/base/src/nsRange.cpp
+++ b/content/base/src/nsRange.cpp
@@ -385,17 +385,17 @@ nsIRange::RegisterCommonAncestor(nsINode
 
   MarkDescendants(aNode);
 
   RangeHashTable* ranges =
     static_cast<RangeHashTable*>(aNode->GetProperty(nsGkAtoms::range));
   if (!ranges) {
     ranges = new RangeHashTable;
     ranges->Init();
-    aNode->SetProperty(nsGkAtoms::range, ranges, RangeHashTableDtor);
+    aNode->SetProperty(nsGkAtoms::range, ranges, RangeHashTableDtor, true);
   }
   ranges->PutEntry(this);
   aNode->SetCommonAncestorForRangeInSelection();
 }
 
 void
 nsIRange::UnregisterCommonAncestor(nsINode* aNode)
 {