Bug 1943179 - Add [[nodiscard]] to ContentIterator methods that return nsresult. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D235361
This commit is contained in:
@@ -3539,7 +3539,11 @@ already_AddRefed<Element> HTMLEditor::GetSelectedElement(const nsAtom* aTagName,
|
||||
}
|
||||
|
||||
PostContentIterator postOrderIter;
|
||||
postOrderIter.Init(firstRange);
|
||||
nsresult rv = postOrderIter.Init(firstRange);
|
||||
if (NS_FAILED(rv)) {
|
||||
aRv.Throw(rv);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<Element> lastElementInRange;
|
||||
for (nsINode* lastNodeInRange = nullptr; !postOrderIter.IsDone();
|
||||
|
||||
Reference in New Issue
Block a user