diff options
author | Andras Becsi <andras.becsi@digia.com> | 2013-12-11 21:33:03 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2013-12-13 12:34:07 +0100 |
commit | f2a33ff9cbc6d19943f1c7fbddd1f23d23975577 (patch) | |
tree | 0586a32aa390ade8557dfd6b4897f43a07449578 /chromium/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp | |
parent | 5362912cdb5eea702b68ebe23702468d17c3017a (diff) |
Update Chromium to branch 1650 (31.0.1650.63)
Change-Id: I57d8c832eaec1eb2364e0a8e7352a6dd354db99f
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp b/chromium/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp index 590e6775ab1..df2d0be160e 100644 --- a/chromium/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp +++ b/chromium/third_party/WebKit/Source/core/html/HTMLKeygenElement.cpp @@ -42,7 +42,7 @@ namespace WebCore { using namespace HTMLNames; -HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form) +HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Document& document, HTMLFormElement* form) : HTMLFormControlElementWithState(tagName, document, form) { ASSERT(hasTagName(keygenTag)); @@ -62,11 +62,11 @@ void HTMLKeygenElement::didAddUserAgentShadowRoot(ShadowRoot* root) select->setPart(keygenSelectPseudoId); for (size_t i = 0; i < keys.size(); ++i) { RefPtr<HTMLOptionElement> option = HTMLOptionElement::create(document()); - option->appendChild(Text::create(document(), keys[i]), ASSERT_NO_EXCEPTION); - select->appendChild(option, ASSERT_NO_EXCEPTION); + option->appendChild(Text::create(document(), keys[i])); + select->appendChild(option); } - root->appendChild(select, ASSERT_NO_EXCEPTION); + root->appendChild(select); } void HTMLKeygenElement::parseAttribute(const QualifiedName& name, const AtomicString& value) @@ -84,7 +84,7 @@ bool HTMLKeygenElement::appendFormData(FormDataList& encoding, bool) const AtomicString& keyType = fastGetAttribute(keytypeAttr); if (!keyType.isNull() && !equalIgnoringCase(keyType, "rsa")) return false; - String value = signedPublicKeyAndChallengeString(shadowSelect()->selectedIndex(), fastGetAttribute(challengeAttr), document()->baseURL()); + String value = signedPublicKeyAndChallengeString(shadowSelect()->selectedIndex(), fastGetAttribute(challengeAttr), document().baseURL()); if (value.isNull()) return false; encoding.appendData(name(), value.utf8()); @@ -108,4 +108,9 @@ HTMLSelectElement* HTMLKeygenElement::shadowSelect() const return root ? toHTMLSelectElement(root->firstChild()) : 0; } +bool HTMLKeygenElement::isInteractiveContent() const +{ + return true; +} + } // namespace |