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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 131 bool HTMLTableCellElement::hasLegalLinkAttribute(const QualifiedName& name) cons
t |
132 { | 132 { |
133 return (hasLocalName(tdTag) && name == backgroundAttr) || HTMLTablePartEleme
nt::hasLegalLinkAttribute(name); | 133 return (hasLocalName(tdTag) && name == backgroundAttr) || HTMLTablePartEleme
nt::hasLegalLinkAttribute(name); |
134 } | 134 } |
135 | 135 |
| 136 const QualifiedName& HTMLTableCellElement::subResourceAttributeName() const |
| 137 { |
| 138 return hasLocalName(tdTag) ? backgroundAttr : HTMLTablePartElement::subResou
rceAttributeName(); |
| 139 } |
| 140 |
136 const AtomicString& HTMLTableCellElement::abbr() const | 141 const AtomicString& HTMLTableCellElement::abbr() const |
137 { | 142 { |
138 return fastGetAttribute(abbrAttr); | 143 return fastGetAttribute(abbrAttr); |
139 } | 144 } |
140 | 145 |
141 const AtomicString& HTMLTableCellElement::axis() const | 146 const AtomicString& HTMLTableCellElement::axis() const |
142 { | 147 { |
143 return fastGetAttribute(axisAttr); | 148 return fastGetAttribute(axisAttr); |
144 } | 149 } |
145 | 150 |
(...skipping 27 matching lines...) Expand all Loading... |
173 | 178 |
174 RenderTableCell* tableCellRenderer = toRenderTableCell(cellRenderer); | 179 RenderTableCell* tableCellRenderer = toRenderTableCell(cellRenderer); |
175 RenderTableCell* cellAboveRenderer = tableCellRenderer->table()->cellAbove(t
ableCellRenderer); | 180 RenderTableCell* cellAboveRenderer = tableCellRenderer->table()->cellAbove(t
ableCellRenderer); |
176 if (!cellAboveRenderer) | 181 if (!cellAboveRenderer) |
177 return 0; | 182 return 0; |
178 | 183 |
179 return toHTMLTableCellElement(cellAboveRenderer->node()); | 184 return toHTMLTableCellElement(cellAboveRenderer->node()); |
180 } | 185 } |
181 | 186 |
182 } // namespace WebCore | 187 } // namespace WebCore |
OLD | NEW |