Index: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h |
diff --git a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h |
index c8591f00251b68fda3c7421cd0913aebb143a813..9f160ecb46bb09414e699cf597f800cab96914a8 100644 |
--- a/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h |
+++ b/third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h |
@@ -78,6 +78,7 @@ public: |
ShadowRoot* youngerShadowRoot() const { return prev(); } |
ShadowRoot* olderShadowRootForBindings() const; |
+ // TODO(hayato): Rename this to more less-confusing name. This is likely to be misued because isOpen() includes V0 too. |
bool isOpen() const { return type() == ShadowRootType::V0 || type() == ShadowRootType::Open; } |
bool isV1() const { return type() == ShadowRootType::Open || type() == ShadowRootType::Closed; } |