Index: Source/core/dom/ChildListMutationScope.cpp |
diff --git a/Source/core/dom/ChildListMutationScope.cpp b/Source/core/dom/ChildListMutationScope.cpp |
index 6acb5b1ba68d2bc664f551baf703a74d461aeec3..47e296e37f76837c2286393381ede3e9520f8eb1 100644 |
--- a/Source/core/dom/ChildListMutationScope.cpp |
+++ b/Source/core/dom/ChildListMutationScope.cpp |
@@ -62,14 +62,14 @@ ChildListMutationAccumulator::~ChildListMutationAccumulator() |
accumulatorMap().remove(m_target.get()); |
} |
-PassRefPtr<ChildListMutationAccumulator> ChildListMutationAccumulator::getOrCreate(Node* target) |
+PassRefPtr<ChildListMutationAccumulator> ChildListMutationAccumulator::getOrCreate(Node& target) |
{ |
- AccumulatorMap::AddResult result = accumulatorMap().add(target, 0); |
+ AccumulatorMap::AddResult result = accumulatorMap().add(&target, 0); |
RefPtr<ChildListMutationAccumulator> accumulator; |
if (!result.isNewEntry) |
accumulator = result.iterator->value; |
else { |
- accumulator = adoptRef(new ChildListMutationAccumulator(target, MutationObserverInterestGroup::createForChildListMutation(target))); |
+ accumulator = adoptRef(new ChildListMutationAccumulator(PassRefPtr<Node>(target), MutationObserverInterestGroup::createForChildListMutation(target))); |
result.iterator->value = accumulator.get(); |
} |
return accumulator.release(); |