Index: Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp |
diff --git a/Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp b/Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp |
index ae80ddb25381d9e05bc13a454f1ac3cd98c01a31..53392385482854f5973577138c6af2fc4aeef496 100644 |
--- a/Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp |
+++ b/Source/core/html/BaseChooserOnlyDateAndTimeInputType.cpp |
@@ -49,19 +49,19 @@ void BaseChooserOnlyDateAndTimeInputType::handleDOMActivateEvent(Event*) |
if (m_dateTimeChooser) |
return; |
- if (!element()->document()->page()) |
+ if (!element()->document().page()) |
return; |
DateTimeChooserParameters 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()); |
updateAppearance(); |