Index: Source/core/dom/shadow/ShadowRoot.h |
diff --git a/Source/core/dom/shadow/ShadowRoot.h b/Source/core/dom/shadow/ShadowRoot.h |
index add60a488592933e33148b90dcfb70cb7630da8a..a3f45777c0eb04da3f2b50902d37d4e0cd9729ef 100644 |
--- a/Source/core/dom/shadow/ShadowRoot.h |
+++ b/Source/core/dom/shadow/ShadowRoot.h |
@@ -70,6 +70,8 @@ public: |
using TreeScope::document; |
using TreeScope::getElementById; |
+ // TODO(kochi): crbug.com/507413 In non-Oilpan, host() may return null during queued |
+ // event handling (e.g. during execCommand()). |
Element* host() const { return toElement(parentOrShadowHostNode()); } |
ElementShadow* owner() const { return host() ? host()->shadow() : 0; } |