OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 inline bool isHTMLTableElement(const Node* node) | 104 inline bool isHTMLTableElement(const Node* node) |
105 { | 105 { |
106 return node->hasTagName(HTMLNames::tableTag); | 106 return node->hasTagName(HTMLNames::tableTag); |
107 } | 107 } |
108 | 108 |
109 inline bool isHTMLTableElement(const Element* element) | 109 inline bool isHTMLTableElement(const Element* element) |
110 { | 110 { |
111 return element->hasTagName(HTMLNames::tableTag); | 111 return element->hasTagName(HTMLNames::tableTag); |
112 } | 112 } |
113 | 113 |
114 inline HTMLTableElement* toHTMLTableElement(Node* node) | 114 DEFINE_NODE_TYPE_CASTS(HTMLTableElement, hasTagName(HTMLNames::tableTag)); |
115 { | |
116 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTableElement(node)); | |
117 return static_cast<HTMLTableElement*>(node); | |
118 } | |
119 | 115 |
120 } //namespace | 116 } //namespace |
121 | 117 |
122 #endif | 118 #endif |
OLD | NEW |