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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. | 93 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. |
94 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. | 94 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. |
95 bool m_frameAttr; // Implies a thin border width if no border is s
et and then a certain set of solid/hidden borders based off the value. | 95 bool m_frameAttr; // Implies a thin border width if no border is s
et and then a certain set of solid/hidden borders based off the value. |
96 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor
der model, and all borders on the table becoming set to hidden (if frame/border | 96 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor
der model, and all borders on the table becoming set to hidden (if frame/border |
97 // are present, to none otherwise). | 97 // are present, to none otherwise). |
98 | 98 |
99 unsigned short m_padding; | 99 unsigned short m_padding; |
100 RefPtr<StylePropertySet> m_sharedCellStyle; | 100 RefPtr<StylePropertySet> m_sharedCellStyle; |
101 }; | 101 }; |
102 | 102 |
| 103 inline bool isHTMLTableElement(const Node* node) |
| 104 { |
| 105 return node->hasTagName(HTMLNames::tableTag); |
| 106 } |
| 107 |
| 108 inline bool isHTMLTableElement(const Element* element) |
| 109 { |
| 110 return element->hasTagName(HTMLNames::tableTag); |
| 111 } |
| 112 |
| 113 inline HTMLTableElement* toHTMLTableElement(Node* node) |
| 114 { |
| 115 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLTableElement(node)); |
| 116 return static_cast<HTMLTableElement*>(node); |
| 117 } |
| 118 |
103 } //namespace | 119 } //namespace |
104 | 120 |
105 #endif | 121 #endif |
OLD | NEW |