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

Unified Diff: Source/core/html/PasswordInputType.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
« no previous file with comments | « Source/core/html/LinkResource.cpp ('k') | Source/core/html/RadioInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/PasswordInputType.cpp
diff --git a/Source/core/html/PasswordInputType.cpp b/Source/core/html/PasswordInputType.cpp
index 834eb3a2f73939d6983c23474d2698bfaf54ced4..717b62a56d1105750d3248c3dc5768bc6058ff00 100644
--- a/Source/core/html/PasswordInputType.cpp
+++ b/Source/core/html/PasswordInputType.cpp
@@ -55,7 +55,7 @@ HTMLElement* PasswordInputType::passwordGeneratorButtonElement() const
bool PasswordInputType::isPasswordGenerationEnabled() const
{
- if (Page* page = element()->document()->page())
+ if (Page* page = element()->document().page())
return page->chrome().client().isPasswordGenerationEnabled();
return false;
}
@@ -69,7 +69,7 @@ void PasswordInputType::createShadowSubtree()
{
BaseTextInputType::createShadowSubtree();
if (isPasswordGenerationEnabled()) {
- m_generatorButton = PasswordGeneratorButtonElement::create(element()->document());
+ m_generatorButton = PasswordGeneratorButtonElement::create(&element()->document());
m_generatorButton->decorate(element());
}
}
@@ -132,14 +132,14 @@ bool PasswordInputType::isPasswordField() const
void PasswordInputType::enableSecureTextInput()
{
- if (element()->document()->frame())
- element()->document()->setUseSecureKeyboardEntryWhenActive(true);
+ if (element()->document().frame())
+ element()->document().setUseSecureKeyboardEntryWhenActive(true);
}
void PasswordInputType::disableSecureTextInput()
{
- if (element()->document()->frame())
- element()->document()->setUseSecureKeyboardEntryWhenActive(false);
+ if (element()->document().frame())
+ element()->document().setUseSecureKeyboardEntryWhenActive(false);
}
} // namespace WebCore
« no previous file with comments | « Source/core/html/LinkResource.cpp ('k') | Source/core/html/RadioInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698