Index: Source/core/html/HTMLSummaryElement.cpp |
diff --git a/Source/core/html/HTMLSummaryElement.cpp b/Source/core/html/HTMLSummaryElement.cpp |
index b2fd72a3aea801e2b9dc6205fef5bf66617d9ca1..b3c0093772e327beff27852babcfa7b3969cef6b 100644 |
--- a/Source/core/html/HTMLSummaryElement.cpp |
+++ b/Source/core/html/HTMLSummaryElement.cpp |
@@ -100,7 +100,7 @@ bool HTMLSummaryElement::supportsFocus() const |
void HTMLSummaryElement::defaultEventHandler(Event* event) |
{ |
- if (isMainSummary() && renderer()) { |
+ if (isMainSummary() && layoutObject()) { |
if (event->type() == EventTypeNames::DOMActivate && !isClickableControl(event->target()->toNode())) { |
if (HTMLDetailsElement* details = detailsElement()) |
details->toggleOpen(); |
@@ -140,7 +140,7 @@ void HTMLSummaryElement::defaultEventHandler(Event* event) |
bool HTMLSummaryElement::willRespondToMouseClickEvents() |
{ |
- if (isMainSummary() && renderer()) |
+ if (isMainSummary() && layoutObject()) |
return true; |
return HTMLElement::willRespondToMouseClickEvents(); |