diff options
author | Moonchild <moonchild@palemoon.org> | 2020-06-10 01:19:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-06-10 01:19:37 +0000 |
commit | 8797b20746cd80c51cc56225f70ddea6c6b94f9d (patch) | |
tree | 5517d461c0c43f2927708c2c251fbba8e37dd757 /dom/base/nsINode.h | |
parent | 47db6b4b5e8ca41c93964e964238fe85bdd7e23b (diff) | |
download | UXP-8797b20746cd80c51cc56225f70ddea6c6b94f9d.tar UXP-8797b20746cd80c51cc56225f70ddea6c6b94f9d.tar.gz UXP-8797b20746cd80c51cc56225f70ddea6c6b94f9d.tar.lz UXP-8797b20746cd80c51cc56225f70ddea6c6b94f9d.tar.xz UXP-8797b20746cd80c51cc56225f70ddea6c6b94f9d.zip |
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>
Diffstat (limited to 'dom/base/nsINode.h')
-rw-r--r-- | dom/base/nsINode.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dom/base/nsINode.h b/dom/base/nsINode.h index 7fb535701..5ae3a1da9 100644 --- a/dom/base/nsINode.h +++ b/dom/base/nsINode.h @@ -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 |