| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 case BUTTON: { | 69 case BUTTON: { |
| 70 DEFINE_STATIC_LOCAL(const AtomicString, button, ("button")); | 70 DEFINE_STATIC_LOCAL(const AtomicString, button, ("button")); |
| 71 return button; | 71 return button; |
| 72 } | 72 } |
| 73 case RESET: { | 73 case RESET: { |
| 74 DEFINE_STATIC_LOCAL(const AtomicString, reset, ("reset")); | 74 DEFINE_STATIC_LOCAL(const AtomicString, reset, ("reset")); |
| 75 return reset; | 75 return reset; |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 | 78 |
| 79 ASSERT_NOT_REACHED(); | 79 NOTREACHED(); |
| 80 return emptyAtom; | 80 return emptyAtom; |
| 81 } | 81 } |
| 82 | 82 |
| 83 bool HTMLButtonElement::isPresentationAttribute(const QualifiedName& name) const | 83 bool HTMLButtonElement::isPresentationAttribute(const QualifiedName& name) const |
| 84 { | 84 { |
| 85 if (name == alignAttr) { | 85 if (name == alignAttr) { |
| 86 // Don't map 'align' attribute. This matches what Firefox and IE do, bu
t not Opera. | 86 // Don't map 'align' attribute. This matches what Firefox and IE do, bu
t not Opera. |
| 87 // See http://bugs.webkit.org/show_bug.cgi?id=12071 | 87 // See http://bugs.webkit.org/show_bug.cgi?id=12071 |
| 88 return false; | 88 return false; |
| 89 } | 89 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 | 223 |
| 224 Node::InsertionNotificationRequest HTMLButtonElement::insertedInto(ContainerNode
* insertionPoint) | 224 Node::InsertionNotificationRequest HTMLButtonElement::insertedInto(ContainerNode
* insertionPoint) |
| 225 { | 225 { |
| 226 InsertionNotificationRequest request = HTMLFormControlElement::insertedInto(
insertionPoint); | 226 InsertionNotificationRequest request = HTMLFormControlElement::insertedInto(
insertionPoint); |
| 227 logAddElementIfIsolatedWorldAndInDocument("button", typeAttr, formmethodAttr
, formactionAttr); | 227 logAddElementIfIsolatedWorldAndInDocument("button", typeAttr, formmethodAttr
, formactionAttr); |
| 228 return request; | 228 return request; |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace blink | 231 } // namespace blink |
| OLD | NEW |