| Index: third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp b/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
|
| index d5c5792c93ace75af5799e522b9a165e5e7c41c4..f789441a0d49868408bc04fe356d7dc52bb14581 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp
|
| @@ -98,7 +98,7 @@ bool HTMLSummaryElement::supportsFocus() const {
|
| }
|
|
|
| void HTMLSummaryElement::defaultEventHandler(Event* event) {
|
| - if (isMainSummary() && layoutObject()) {
|
| + if (isMainSummary()) {
|
| if (event->type() == EventTypeNames::DOMActivate &&
|
| !isClickableControl(event->target()->toNode())) {
|
| if (HTMLDetailsElement* details = detailsElement())
|
| @@ -140,10 +140,7 @@ void HTMLSummaryElement::defaultEventHandler(Event* event) {
|
| }
|
|
|
| bool HTMLSummaryElement::willRespondToMouseClickEvents() {
|
| - if (isMainSummary() && layoutObject())
|
| - return true;
|
| -
|
| - return HTMLElement::willRespondToMouseClickEvents();
|
| + return isMainSummary() || HTMLElement::willRespondToMouseClickEvents();
|
| }
|
|
|
| } // namespace blink
|
|
|