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

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

Issue 22880029: Make AttachBehavior a required argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/shadow/DateTimeFieldElement.cpp ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9b05122b4ce0cdf526c60552e6d2e3772f375791 100644
--- a/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
+++ b/Source/core/html/shadow/PasswordGeneratorButtonElement.cpp
@@ -90,14 +90,14 @@ void PasswordGeneratorButtonElement::decorate(HTMLInputElement* input)
ASSERT(decorationRoot);
ASSERT(existingRoot);
RefPtr<HTMLDivElement> box = HTMLDivElement::create(input->document());
- decorationRoot->appendChild(box);
+ decorationRoot->appendChild(box, ASSERT_NO_EXCEPTION, DeprecatedAttachNow);
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()), ASSERT_NO_EXCEPTION, DeprecatedAttachNow);
setInlineStyleProperty(CSSPropertyDisplay, CSSValueNone);
- box->appendChild(this);
+ box->appendChild(this, ASSERT_NO_EXCEPTION, DeprecatedAttachNow);
}
inline HTMLInputElement* PasswordGeneratorButtonElement::hostInput()
« no previous file with comments | « Source/core/html/shadow/DateTimeFieldElement.cpp ('k') | Source/core/html/track/TextTrackCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698