Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h

Issue 1530643003: Support slot element's fallback content feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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; }

Powered by Google App Engine
This is Rietveld 408576698