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, 2010 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2010 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 if (HTMLTableElement* table = findParentTable()) | 121 if (HTMLTableElement* table = findParentTable()) |
122 return table->additionalCellStyle(); | 122 return table->additionalCellStyle(); |
123 return 0; | 123 return 0; |
124 } | 124 } |
125 | 125 |
126 bool HTMLTableCellElement::isURLAttribute(const Attribute& attribute) const | 126 bool HTMLTableCellElement::isURLAttribute(const Attribute& attribute) const |
127 { | 127 { |
128 return attribute.name() == backgroundAttr || HTMLTablePartElement::isURLAttr
ibute(attribute); | 128 return attribute.name() == backgroundAttr || HTMLTablePartElement::isURLAttr
ibute(attribute); |
129 } | 129 } |
130 | 130 |
| 131 bool HTMLTableCellElement::hasLegalLinkAttribute(const QualifiedName& name) cons
t |
| 132 { |
| 133 return (hasLocalName(tdTag) && name == backgroundAttr) || HTMLTablePartEleme
nt::hasLegalLinkAttribute(name); |
| 134 } |
| 135 |
131 const AtomicString& HTMLTableCellElement::abbr() const | 136 const AtomicString& HTMLTableCellElement::abbr() const |
132 { | 137 { |
133 return fastGetAttribute(abbrAttr); | 138 return fastGetAttribute(abbrAttr); |
134 } | 139 } |
135 | 140 |
136 const AtomicString& HTMLTableCellElement::axis() const | 141 const AtomicString& HTMLTableCellElement::axis() const |
137 { | 142 { |
138 return fastGetAttribute(axisAttr); | 143 return fastGetAttribute(axisAttr); |
139 } | 144 } |
140 | 145 |
(...skipping 27 matching lines...) Expand all Loading... |
168 | 173 |
169 RenderTableCell* tableCellRenderer = toRenderTableCell(cellRenderer); | 174 RenderTableCell* tableCellRenderer = toRenderTableCell(cellRenderer); |
170 RenderTableCell* cellAboveRenderer = tableCellRenderer->table()->cellAbove(t
ableCellRenderer); | 175 RenderTableCell* cellAboveRenderer = tableCellRenderer->table()->cellAbove(t
ableCellRenderer); |
171 if (!cellAboveRenderer) | 176 if (!cellAboveRenderer) |
172 return 0; | 177 return 0; |
173 | 178 |
174 return toHTMLTableCellElement(cellAboveRenderer->node()); | 179 return toHTMLTableCellElement(cellAboveRenderer->node()); |
175 } | 180 } |
176 | 181 |
177 } // namespace WebCore | 182 } // namespace WebCore |
OLD | NEW |