mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #1585 - Replace node.rootNode with node.getRootNode()
This removes the (default disabled) node.rootNode readonly attribute and replaces it with a node.getRootNode() function per WhatWG spec discussion. Based on work by John Dai <jdai@mozilla.com>
This commit is contained in:
parent
7359f90456
commit
7900742344
9 changed files with 128 additions and 89 deletions
|
|
@ -84,6 +84,7 @@ template<typename> class Sequence;
|
|||
class Text;
|
||||
class TextOrElementOrDocument;
|
||||
struct DOMPointInit;
|
||||
struct GetRootNodeOptions;
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
|
|
@ -982,10 +983,11 @@ public:
|
|||
*/
|
||||
nsINode* SubtreeRoot() const;
|
||||
|
||||
nsINode* RootNode() const
|
||||
{
|
||||
return SubtreeRoot();
|
||||
}
|
||||
/*
|
||||
* Get context object's shadow-including root if options's composed is true,
|
||||
* and context object's root otherwise.
|
||||
*/
|
||||
nsINode* GetRootNode(const mozilla::dom::GetRootNodeOptions& aOptions);
|
||||
|
||||
/**
|
||||
* See nsIDOMEventTarget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue