Index: Source/core/html/shadow/ClearButtonElement.cpp |
diff --git a/Source/core/html/shadow/ClearButtonElement.cpp b/Source/core/html/shadow/ClearButtonElement.cpp |
index c5623784d3dfb07872686586621ed6f0f32cb873..8d3cf044e9dcaa0f5f2032b4b29b54ddf61148e0 100644 |
--- a/Source/core/html/shadow/ClearButtonElement.cpp |
+++ b/Source/core/html/shadow/ClearButtonElement.cpp |
@@ -70,7 +70,7 @@ void ClearButtonElement::defaultEventHandler(Event* event) |
} |
if (event->type() == EventTypeNames::click) { |
- if (renderer() && renderer()->visibleToHitTesting()) { |
+ if (layoutObject() && layoutObject()->visibleToHitTesting()) { |
m_clearButtonOwner->focusAndSelectClearButtonOwner(); |
m_clearButtonOwner->clearValue(); |
event->setDefaultHandled(); |