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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/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();
« no previous file with comments | « Source/core/html/BaseButtonInputType.cpp ('k') | Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698