Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(980)

Unified Diff: Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp

Issue 27746003: Have InputType factories take an HTMLInputElement reference in parameter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()
« no previous file with comments | « Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.h ('k') | Source/core/html/forms/BaseClickableWithKeyInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698