diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
commit | ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 (patch) | |
tree | b34b0daceb7c8e7fdde4b4ec43650ab7caadb0a9 /Source/WebCore/html/HTMLButtonElement.cpp | |
parent | 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (diff) | |
download | qtwebkit-ad0d549d4cc13433f77c1ac8f0ab379c83d93f28.tar.gz |
Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790)
Diffstat (limited to 'Source/WebCore/html/HTMLButtonElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLButtonElement.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/WebCore/html/HTMLButtonElement.cpp b/Source/WebCore/html/HTMLButtonElement.cpp index 1468248b9..a79641a31 100644 --- a/Source/WebCore/html/HTMLButtonElement.cpp +++ b/Source/WebCore/html/HTMLButtonElement.cpp @@ -79,6 +79,17 @@ const AtomicString& HTMLButtonElement::formControlType() const return emptyAtom; } +bool HTMLButtonElement::isPresentationAttribute(Attribute* attr) const +{ + if (attr->name() == alignAttr) { + // Don't map 'align' attribute. This matches what Firefox and IE do, but not Opera. + // See http://bugs.webkit.org/show_bug.cgi?id=12071 + return false; + } + + return HTMLFormControlElement::isPresentationAttribute(attr); +} + void HTMLButtonElement::parseAttribute(Attribute* attr) { if (attr->name() == typeAttr) { @@ -89,9 +100,6 @@ void HTMLButtonElement::parseAttribute(Attribute* attr) else m_type = SUBMIT; setNeedsWillValidateCheck(); - } else if (attr->name() == alignAttr) { - // Don't map 'align' attribute. This matches what Firefox and IE do, but not Opera. - // See http://bugs.webkit.org/show_bug.cgi?id=12071 } else HTMLFormControlElement::parseAttribute(attr); } |