Bug 1596800 - Add two chromeonly attributes to replace getBindingParent. r=smaug
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 18 Nov 2019 19:06:50 +0000
changeset 502469 5a76ddcb1ac13213e905126cf8e5136ee3b7f6f1
parent 502468 c1d9e657897e5e7ef32227d8a0c8c7dfc9d13de6
child 502470 85408aaba4a32de2ecf495093f24643e93154292
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1596800
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1596800 - Add two chromeonly attributes to replace getBindingParent. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D53336
dom/webidl/Node.webidl
--- a/dom/webidl/Node.webidl
+++ b/dom/webidl/Node.webidl
@@ -106,16 +106,20 @@ interface Node : EventTarget {
   [ChromeOnly]
   readonly attribute Principal nodePrincipal;
   [ChromeOnly]
   readonly attribute URI? baseURIObject;
   [ChromeOnly]
   DOMString generateXPath();
   [ChromeOnly, Pure, BinaryName="flattenedTreeParentNodeNonInline"]
   readonly attribute Node? flattenedTreeParentNode;
+  [ChromeOnly, Pure, BinaryName="containingShadow"]
+  readonly attribute ShadowRoot? containingShadowRoot;
+  [ChromeOnly, Pure, BinaryName="isInNativeAnonymousSubtree"]
+  readonly attribute boolean isNativeAnonymous;
 
   // Mozilla devtools-specific stuff
   /**
    * If this element is a flex item (or has one or more anonymous box ancestors
    * that chain up to an anonymous flex item), then this method returns the
    * flex container that the flex item participates in. Otherwise, this method
    * returns null.
    */