| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const Node *n = firstChild(); | 99 const Node *n = firstChild(); |
| 100 while (n) { | 100 while (n) { |
| 101 if (n->hasTagName(trTag)) | 101 if (n->hasTagName(trTag)) |
| 102 rows++; | 102 rows++; |
| 103 n = n->nextSibling(); | 103 n = n->nextSibling(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 return rows; | 106 return rows; |
| 107 } | 107 } |
| 108 | 108 |
| 109 String HTMLTableSectionElement::align() const | 109 const AtomicString& HTMLTableSectionElement::align() const |
| 110 { | 110 { |
| 111 return getAttribute(alignAttr); | 111 return getAttribute(alignAttr); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void HTMLTableSectionElement::setAlign(const String &value) | 114 void HTMLTableSectionElement::setAlign(const AtomicString& value) |
| 115 { | 115 { |
| 116 setAttribute(alignAttr, value); | 116 setAttribute(alignAttr, value); |
| 117 } | 117 } |
| 118 | 118 |
| 119 String HTMLTableSectionElement::ch() const | 119 const AtomicString& HTMLTableSectionElement::ch() const |
| 120 { | 120 { |
| 121 return getAttribute(charAttr); | 121 return getAttribute(charAttr); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void HTMLTableSectionElement::setCh(const String &value) | 124 void HTMLTableSectionElement::setCh(const AtomicString& value) |
| 125 { | 125 { |
| 126 setAttribute(charAttr, value); | 126 setAttribute(charAttr, value); |
| 127 } | 127 } |
| 128 | 128 |
| 129 String HTMLTableSectionElement::chOff() const | 129 const AtomicString& HTMLTableSectionElement::chOff() const |
| 130 { | 130 { |
| 131 return getAttribute(charoffAttr); | 131 return getAttribute(charoffAttr); |
| 132 } | 132 } |
| 133 | 133 |
| 134 void HTMLTableSectionElement::setChOff(const String &value) | 134 void HTMLTableSectionElement::setChOff(const AtomicString& value) |
| 135 { | 135 { |
| 136 setAttribute(charoffAttr, value); | 136 setAttribute(charoffAttr, value); |
| 137 } | 137 } |
| 138 | 138 |
| 139 String HTMLTableSectionElement::vAlign() const | 139 const AtomicString& HTMLTableSectionElement::vAlign() const |
| 140 { | 140 { |
| 141 return getAttribute(valignAttr); | 141 return getAttribute(valignAttr); |
| 142 } | 142 } |
| 143 | 143 |
| 144 void HTMLTableSectionElement::setVAlign(const String &value) | 144 void HTMLTableSectionElement::setVAlign(const AtomicString& value) |
| 145 { | 145 { |
| 146 setAttribute(valignAttr, value); | 146 setAttribute(valignAttr, value); |
| 147 } | 147 } |
| 148 | 148 |
| 149 PassRefPtr<HTMLCollection> HTMLTableSectionElement::rows() | 149 PassRefPtr<HTMLCollection> HTMLTableSectionElement::rows() |
| 150 { | 150 { |
| 151 return ensureCachedHTMLCollection(TSectionRows); | 151 return ensureCachedHTMLCollection(TSectionRows); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } | 154 } |
| OLD | NEW |