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 |