Index: Source/core/dom/Node.h |
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h |
index 0b7532bea9cf156e1539fb5dc399c6b6cf4a6b05..55894fdf7ddd5399c88c62ca8a651a3013a6b9f7 100644 |
--- a/Source/core/dom/Node.h |
+++ b/Source/core/dom/Node.h |
@@ -295,6 +295,9 @@ public: |
bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallbacksFlag); } |
// If this node is in a shadow tree, returns its shadow host. Otherwise, returns nullptr. |
+ // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when it is in a |
+ // shadow tree but its root is detached from its host. This can happen when handling |
+ // queued asynchronous events. |
Element* shadowHost() const; |
ShadowRoot* containingShadowRoot() const; |
ShadowRoot* youngestShadowRoot() const; |