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

Unified Diff: Source/core/html/shadow/PasswordGeneratorButtonElement.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/shadow/PasswordGeneratorButtonElement.cpp
diff --git a/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp b/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
index dfe3d7213fe42a5bcceb755e57a6802c98676d7a..33d442835d56a70e983ecbfb2cabb7185ac6ca25 100644
--- a/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
+++ b/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
@@ -52,7 +52,7 @@ using namespace HTMLNames;
// FIXME: This class is only used in Chromium and has no layout tests.
-PasswordGeneratorButtonElement::PasswordGeneratorButtonElement(Document* document)
+PasswordGeneratorButtonElement::PasswordGeneratorButtonElement(Document& document)
: HTMLDivElement(HTMLNames::divTag, document)
, m_isInHoverState(false)
{
@@ -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);
}
« no previous file with comments | « Source/core/html/shadow/PasswordGeneratorButtonElement.h ('k') | Source/core/html/shadow/PickerIndicatorElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698