Chromium Code Reviews| 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 return fastGetAttribute(headersAttr); | 167 return fastGetAttribute(headersAttr); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void HTMLTableCellElement::setRowSpan(unsigned n) | 170 void HTMLTableCellElement::setRowSpan(unsigned n) |
| 171 { | 171 { |
| 172 setUnsignedIntegralAttribute(rowspanAttr, n); | 172 setUnsignedIntegralAttribute(rowspanAttr, n); |
| 173 } | 173 } |
| 174 | 174 |
| 175 const AtomicString& HTMLTableCellElement::scope() const | 175 const AtomicString& HTMLTableCellElement::scope() const |
| 176 { | 176 { |
| 177 return fastGetAttribute(scopeAttr); | 177 const AtomicString& scopeValue = fastGetAttribute(scopeAttr); |
| 178 if (equalIgnoringCase(scopeValue, "row")) { | |
|
tkent
2016/09/28 00:23:08
equalIgnoringCase should be equalIgnoringASCIICase
rwlbuis
2016/09/28 13:43:12
Done :)
| |
| 179 DEFINE_STATIC_LOCAL(const AtomicString, row, ("row")); | |
| 180 return row; | |
| 181 } | |
| 182 if (equalIgnoringCase(scopeValue, "col")) { | |
| 183 DEFINE_STATIC_LOCAL(const AtomicString, col, ("col")); | |
| 184 return col; | |
| 185 } | |
| 186 if (equalIgnoringCase(scopeValue, "rowgroup")) { | |
| 187 DEFINE_STATIC_LOCAL(const AtomicString, rowgroup, ("rowgroup")); | |
| 188 return rowgroup; | |
| 189 } | |
| 190 if (equalIgnoringCase(scopeValue, "colgroup")) { | |
| 191 DEFINE_STATIC_LOCAL(const AtomicString, colgroup, ("colgroup")); | |
| 192 return colgroup; | |
| 193 } | |
| 194 return emptyAtom; | |
| 195 } | |
| 196 | |
| 197 void HTMLTableCellElement::setScope(const AtomicString& value) | |
| 198 { | |
| 199 setAttribute(scopeAttr, value); | |
| 178 } | 200 } |
| 179 | 201 |
| 180 } // namespace blink | 202 } // namespace blink |
| OLD | NEW |