Back out fee79a593fd3 and 2c8930343985 (bug 825341) for having probably needed-clobber

This commit is contained in:
Phil Ringnalda
2013-03-11 20:10:18 -07:00
parent b6c41e0216
commit 0b10e72f72
40 changed files with 456 additions and 956 deletions

View File

@@ -2914,7 +2914,7 @@ PresShell::GoToAnchor(const nsAString& aAnchorName, bool aScroll)
// Even if select anchor pref is false, we must still move the
// caret there. That way tabbing will start from the new
// location
nsRefPtr<nsIDOMRange> jumpToRange = new nsRange(mDocument);
nsRefPtr<nsIDOMRange> jumpToRange = new nsRange();
while (content && content->GetFirstChild()) {
content = content->GetFirstChild();
}
@@ -4816,7 +4816,7 @@ PresShell::RenderNode(nsIDOMNode* aNode,
if (!node->IsInDoc())
return nullptr;
nsRefPtr<nsRange> range = new nsRange(node);
nsRefPtr<nsRange> range = new nsRange();
if (NS_FAILED(range->SelectNode(aNode)))
return nullptr;