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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 | 168 |
169 const AtomicString& HTMLTableCellElement::headers() const { | 169 const AtomicString& HTMLTableCellElement::headers() const { |
170 return fastGetAttribute(headersAttr); | 170 return fastGetAttribute(headersAttr); |
171 } | 171 } |
172 | 172 |
173 void HTMLTableCellElement::setRowSpan(unsigned n) { | 173 void HTMLTableCellElement::setRowSpan(unsigned n) { |
174 setUnsignedIntegralAttribute(rowspanAttr, n); | 174 setUnsignedIntegralAttribute(rowspanAttr, n); |
175 } | 175 } |
176 | 176 |
177 const AtomicString& HTMLTableCellElement::scope() const { | |
178 const AtomicString& scopeValue = fastGetAttribute(scopeAttr); | |
179 if (equalIgnoringASCIICase(scopeValue, "row")) { | |
180 DEFINE_STATIC_LOCAL(const AtomicString, row, ("row")); | |
181 return row; | |
182 } | |
183 if (equalIgnoringASCIICase(scopeValue, "col")) { | |
184 DEFINE_STATIC_LOCAL(const AtomicString, col, ("col")); | |
185 return col; | |
186 } | |
187 if (equalIgnoringASCIICase(scopeValue, "rowgroup")) { | |
188 DEFINE_STATIC_LOCAL(const AtomicString, rowgroup, ("rowgroup")); | |
189 return rowgroup; | |
190 } | |
191 if (equalIgnoringASCIICase(scopeValue, "colgroup")) { | |
192 DEFINE_STATIC_LOCAL(const AtomicString, colgroup, ("colgroup")); | |
193 return colgroup; | |
194 } | |
195 return emptyAtom; | |
196 } | |
197 | |
198 void HTMLTableCellElement::setScope(const AtomicString& value) { | |
199 setAttribute(scopeAttr, value); | |
200 } | |
201 | |
202 } // namespace blink | 177 } // namespace blink |
OLD | NEW |