Index: Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
diff --git a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
index f6ff19150ce61f93554016274bfa259d9b173f07..21d39a3312da26d7f03785b02abb83a62d036d86 100644 |
--- a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
+++ b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp |
@@ -44,32 +44,32 @@ BaseChooserOnlyDateAndTimeInputType::~BaseChooserOnlyDateAndTimeInputType() |
void BaseChooserOnlyDateAndTimeInputType::handleDOMActivateEvent(Event*) |
{ |
- if (element()->isDisabledOrReadOnly() || !element()->renderer() || !UserGestureIndicator::processingUserGesture() || element()->hasAuthorShadowRoot()) |
+ if (element().isDisabledOrReadOnly() || !element().renderer() || !UserGestureIndicator::processingUserGesture() || element().hasAuthorShadowRoot()) |
return; |
if (m_dateTimeChooser) |
return; |
- if (!element()->document().page()) |
+ if (!element().document().page()) |
return; |
DateTimeChooserParameters parameters; |
- if (!element()->setupDateTimeChooserParameters(parameters)) |
+ if (!element().setupDateTimeChooserParameters(parameters)) |
return; |
- m_dateTimeChooser = element()->document().page()->chrome().openDateTimeChooser(this, parameters); |
+ m_dateTimeChooser = element().document().page()->chrome().openDateTimeChooser(this, parameters); |
} |
void BaseChooserOnlyDateAndTimeInputType::createShadowSubtree() |
{ |
DEFINE_STATIC_LOCAL(AtomicString, valueContainerPseudo, ("-webkit-date-and-time-value", AtomicString::ConstructFromLiteral)); |
- RefPtr<HTMLDivElement> valueContainer = HTMLDivElement::create(element()->document()); |
+ RefPtr<HTMLDivElement> valueContainer = HTMLDivElement::create(element().document()); |
valueContainer->setPart(valueContainerPseudo); |
- element()->userAgentShadowRoot()->appendChild(valueContainer.get()); |
+ element().userAgentShadowRoot()->appendChild(valueContainer.get()); |
updateAppearance(); |
} |
void BaseChooserOnlyDateAndTimeInputType::updateAppearance() |
{ |
- Node* node = element()->userAgentShadowRoot()->firstChild(); |
+ Node* node = element().userAgentShadowRoot()->firstChild(); |
if (!node || !node->isHTMLElement()) |
return; |
String displayValue = visibleValue(); |
@@ -94,7 +94,7 @@ void BaseChooserOnlyDateAndTimeInputType::detach() |
void BaseChooserOnlyDateAndTimeInputType::didChooseValue(const String& value) |
{ |
- element()->setValue(value, DispatchInputAndChangeEvent); |
+ element().setValue(value, DispatchInputAndChangeEvent); |
} |
void BaseChooserOnlyDateAndTimeInputType::didEndChooser() |