| Index: third_party/WebKit/Source/core/dom/Node.h
|
| diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
|
| index 25d2a8915f62645b00f44d38dd50df5b182ce47e..e493eeaf467919c2fc8e02b99bd4f10a70e8f1dc 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.h
|
| +++ b/third_party/WebKit/Source/core/dom/Node.h
|
| @@ -480,6 +480,7 @@ public:
|
| // See https://dom.spec.whatwg.org/#connected for the definition.
|
| bool isConnected() const { return getFlag(IsConnectedFlag); }
|
|
|
| + bool isInDocumentTree() const { return isConnected() && !isInShadowTree(); }
|
| bool isInShadowTree() const { return getFlag(IsInShadowTreeFlag); }
|
| bool isInTreeScope() const { return getFlag(static_cast<NodeFlags>(IsConnectedFlag | IsInShadowTreeFlag)); }
|
|
|
|
|