Index: Source/core/html/shadow/PasswordGeneratorButtonElement.cpp |
diff --git a/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp b/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp |
index bcc124fa10f9d353432d2842c5d08a69ac0db3e0..dfe3d7213fe42a5bcceb755e57a6802c98676d7a 100644 |
--- a/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp |
+++ b/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp |
@@ -89,13 +89,13 @@ void PasswordGeneratorButtonElement::decorate(HTMLInputElement* input) |
getDecorationRootAndDecoratedRoot(input, decorationRoot, existingRoot); |
ASSERT(decorationRoot); |
ASSERT(existingRoot); |
- RefPtr<HTMLDivElement> box = HTMLDivElement::create(input->document()); |
+ RefPtr<HTMLDivElement> box = HTMLDivElement::create(&input->document()); |
decorationRoot->appendChild(box); |
box->setInlineStyleProperty(CSSPropertyDisplay, CSSValueFlex); |
box->setInlineStyleProperty(CSSPropertyAlignItems, CSSValueCenter); |
ASSERT(existingRoot->childNodeCount() == 1); |
toHTMLElement(existingRoot->firstChild())->setInlineStyleProperty(CSSPropertyFlexGrow, 1.0, CSSPrimitiveValue::CSS_NUMBER); |
- box->appendChild(HTMLShadowElement::create(HTMLNames::shadowTag, input->document())); |
+ box->appendChild(HTMLShadowElement::create(HTMLNames::shadowTag, &input->document())); |
setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone); |
box->appendChild(this); |
} |
@@ -171,7 +171,7 @@ void PasswordGeneratorButtonElement::defaultEventHandler(Event* event) |
RefPtr<PasswordGeneratorButtonElement> protector(this); |
if (event->type() == eventNames().clickEvent) { |
- if (Page* page = document()->page()) |
+ if (Page* page = document().page()) |
page->chrome().client().openPasswordGenerator(input.get()); |
event->setDefaultHandled(); |
} |