Back out fee79a593fd3 and 2c8930343985 (bug 825341) for having probably needed-clobber
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user