diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/inspector/inIDeepTreeWalker.idl | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/inspector/inIDeepTreeWalker.idl')
-rw-r--r-- | layout/inspector/inIDeepTreeWalker.idl | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/layout/inspector/inIDeepTreeWalker.idl b/layout/inspector/inIDeepTreeWalker.idl new file mode 100644 index 000000000..389f3c86e --- /dev/null +++ b/layout/inspector/inIDeepTreeWalker.idl @@ -0,0 +1,47 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include "nsISupports.idl" + +interface nsIDOMNode; +interface nsIDOMNodeFilter; + +// Note: the iterator does not handle DOM mutations gracefully. So if +// the underlying DOM we are iterating over is changed, the behavior +// of the walker is undefined. (With the current implementation we +// cache the siblings of the current node and this list is not updated +// when a mutation occurs). + +[scriptable, uuid(6657e8eb-b646-48e7-993e-cfa6e96415b4)] +interface inIDeepTreeWalker : nsISupports +{ + attribute boolean showAnonymousContent; + attribute boolean showSubDocuments; + + // By default the walker skips document nodes from the iteration, + // by setting this flag to true this behavior can be altered. + attribute boolean showDocumentsAsNodes; + + void init(in nsIDOMNode aRoot, in unsigned long aWhatToShow); + + // Methods and attributes from nsIDOMTreeWalker, which is not scriptable. + // Note: normally parentNode cannot go further up on the tree once it reached + // the root, but setting currentNode does not have this limitation. If currentNode + // is set to a node that does not have the root as its ancestor the walk can be + // continued from there, and once we reach a node that is 'under' the root, the + // limitation for the parentNode will work again. + readonly attribute nsIDOMNode root; + readonly attribute unsigned long whatToShow; + readonly attribute nsIDOMNodeFilter filter; + attribute nsIDOMNode currentNode; + + nsIDOMNode parentNode(); + nsIDOMNode firstChild(); + nsIDOMNode lastChild(); + nsIDOMNode previousSibling(); + nsIDOMNode nextSibling(); + nsIDOMNode previousNode(); + nsIDOMNode nextNode(); +}; + |