mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #2135 - Bug 1393806/Part 1: Change nsNodeUtils cloning/adopting stuff to use an ErrorResult for errors
This will allow us to propagate out more informative errors in some cases.
This commit is contained in:
parent
b72ddcf657
commit
e65a864a3e
6 changed files with 100 additions and 103 deletions
|
|
@ -3084,9 +3084,7 @@ nsINode::WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
|
|||
already_AddRefed<nsINode>
|
||||
nsINode::CloneNode(bool aDeep, ErrorResult& aError)
|
||||
{
|
||||
nsCOMPtr<nsINode> result;
|
||||
aError = nsNodeUtils::CloneNodeImpl(this, aDeep, getter_AddRefs(result));
|
||||
return result.forget();
|
||||
return nsNodeUtils::CloneNodeImpl(this, aDeep, aError);
|
||||
}
|
||||
|
||||
nsDOMAttributeMap*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue