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 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "core/CSSPropertyNames.h" | 25 #include "core/CSSPropertyNames.h" |
26 #include "core/CSSValueKeywords.h" | 26 #include "core/CSSValueKeywords.h" |
27 #include "core/HTMLNames.h" | 27 #include "core/HTMLNames.h" |
28 #include "core/css/CSSColorValue.h" | 28 #include "core/css/CSSColorValue.h" |
29 #include "core/css/StylePropertySet.h" | 29 #include "core/css/StylePropertySet.h" |
30 #include "core/html/HTMLOptGroupElement.h" | 30 #include "core/html/HTMLOptGroupElement.h" |
31 #include "core/html/HTMLSelectElement.h" | 31 #include "core/html/HTMLSelectElement.h" |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
| 35 using namespace cssvalue; |
35 using namespace HTMLNames; | 36 using namespace HTMLNames; |
36 | 37 |
37 inline HTMLHRElement::HTMLHRElement(Document& document) | 38 inline HTMLHRElement::HTMLHRElement(Document& document) |
38 : HTMLElement(hrTag, document) {} | 39 : HTMLElement(hrTag, document) {} |
39 | 40 |
40 DEFINE_NODE_FACTORY(HTMLHRElement) | 41 DEFINE_NODE_FACTORY(HTMLHRElement) |
41 | 42 |
42 bool HTMLHRElement::isPresentationAttribute(const QualifiedName& name) const { | 43 bool HTMLHRElement::isPresentationAttribute(const QualifiedName& name) const { |
43 if (name == alignAttr || name == widthAttr || name == colorAttr || | 44 if (name == alignAttr || name == widthAttr || name == colorAttr || |
44 name == noshadeAttr || name == sizeAttr) | 45 name == noshadeAttr || name == sizeAttr) |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 toHTMLSelectElement(insertionPoint)->hrInsertedOrRemoved(*this); | 137 toHTMLSelectElement(insertionPoint)->hrInsertedOrRemoved(*this); |
137 } else if (isHTMLOptGroupElement(*insertionPoint)) { | 138 } else if (isHTMLOptGroupElement(*insertionPoint)) { |
138 Node* parent = insertionPoint->parentNode(); | 139 Node* parent = insertionPoint->parentNode(); |
139 if (isHTMLSelectElement(parent)) | 140 if (isHTMLSelectElement(parent)) |
140 toHTMLSelectElement(parent)->hrInsertedOrRemoved(*this); | 141 toHTMLSelectElement(parent)->hrInsertedOrRemoved(*this); |
141 } | 142 } |
142 HTMLElement::removedFrom(insertionPoint); | 143 HTMLElement::removedFrom(insertionPoint); |
143 } | 144 } |
144 | 145 |
145 } // namespace blink | 146 } // namespace blink |
OLD | NEW |