Index: Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
diff --git a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
index 53012221e5fe50d9097a4483c9de37b0e98824a2..8d8ab29e409a099df5f8649f11c6d7da1cdfc230 100644 |
--- a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
+++ b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
@@ -45,7 +45,7 @@ BaseChooserOnlyDateAndTimeInputType::~BaseChooserOnlyDateAndTimeInputType() |
void BaseChooserOnlyDateAndTimeInputType::handleDOMActivateEvent(Event*) |
{ |
- if (element().isDisabledOrReadOnly() || !element().renderer() || !UserGestureIndicator::processingUserGesture() || element().hasOpenShadowRoot()) |
+ if (element().isDisabledOrReadOnly() || !element().layoutObject() || !UserGestureIndicator::processingUserGesture() || element().hasOpenShadowRoot()) |
return; |
if (m_dateTimeChooser) |