| 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, 2008, 2010, 2011 Apple Inc. All rights | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 Apple Inc. All rights |
| 8 * reserved. | 8 * reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 if (newFoot) | 115 if (newFoot) |
| 116 appendChild(newFoot, exceptionState); | 116 appendChild(newFoot, exceptionState); |
| 117 } | 117 } |
| 118 | 118 |
| 119 HTMLTableSectionElement* HTMLTableElement::createTHead() { | 119 HTMLTableSectionElement* HTMLTableElement::createTHead() { |
| 120 if (HTMLTableSectionElement* existingHead = tHead()) | 120 if (HTMLTableSectionElement* existingHead = tHead()) |
| 121 return existingHead; | 121 return existingHead; |
| 122 HTMLTableSectionElement* head = | 122 HTMLTableSectionElement* head = |
| 123 HTMLTableSectionElement::create(theadTag, document()); | 123 HTMLTableSectionElement::create(theadTag, document()); |
| 124 setTHead(head, IGNORE_EXCEPTION); | 124 setTHead(head, IGNORE_EXCEPTION_FOR_TESTING); |
| 125 return head; | 125 return head; |
| 126 } | 126 } |
| 127 | 127 |
| 128 void HTMLTableElement::deleteTHead() { | 128 void HTMLTableElement::deleteTHead() { |
| 129 removeChild(tHead(), IGNORE_EXCEPTION); | 129 removeChild(tHead(), IGNORE_EXCEPTION_FOR_TESTING); |
| 130 } | 130 } |
| 131 | 131 |
| 132 HTMLTableSectionElement* HTMLTableElement::createTFoot() { | 132 HTMLTableSectionElement* HTMLTableElement::createTFoot() { |
| 133 if (HTMLTableSectionElement* existingFoot = tFoot()) | 133 if (HTMLTableSectionElement* existingFoot = tFoot()) |
| 134 return existingFoot; | 134 return existingFoot; |
| 135 HTMLTableSectionElement* foot = | 135 HTMLTableSectionElement* foot = |
| 136 HTMLTableSectionElement::create(tfootTag, document()); | 136 HTMLTableSectionElement::create(tfootTag, document()); |
| 137 setTFoot(foot, IGNORE_EXCEPTION); | 137 setTFoot(foot, IGNORE_EXCEPTION_FOR_TESTING); |
| 138 return foot; | 138 return foot; |
| 139 } | 139 } |
| 140 | 140 |
| 141 void HTMLTableElement::deleteTFoot() { | 141 void HTMLTableElement::deleteTFoot() { |
| 142 removeChild(tFoot(), IGNORE_EXCEPTION); | 142 removeChild(tFoot(), IGNORE_EXCEPTION_FOR_TESTING); |
| 143 } | 143 } |
| 144 | 144 |
| 145 HTMLTableSectionElement* HTMLTableElement::createTBody() { | 145 HTMLTableSectionElement* HTMLTableElement::createTBody() { |
| 146 HTMLTableSectionElement* body = | 146 HTMLTableSectionElement* body = |
| 147 HTMLTableSectionElement::create(tbodyTag, document()); | 147 HTMLTableSectionElement::create(tbodyTag, document()); |
| 148 Node* referenceElement = lastBody() ? lastBody()->nextSibling() : 0; | 148 Node* referenceElement = lastBody() ? lastBody()->nextSibling() : 0; |
| 149 | 149 |
| 150 insertBefore(body, referenceElement); | 150 insertBefore(body, referenceElement); |
| 151 return body; | 151 return body; |
| 152 } | 152 } |
| 153 | 153 |
| 154 HTMLTableCaptionElement* HTMLTableElement::createCaption() { | 154 HTMLTableCaptionElement* HTMLTableElement::createCaption() { |
| 155 if (HTMLTableCaptionElement* existingCaption = caption()) | 155 if (HTMLTableCaptionElement* existingCaption = caption()) |
| 156 return existingCaption; | 156 return existingCaption; |
| 157 HTMLTableCaptionElement* caption = | 157 HTMLTableCaptionElement* caption = |
| 158 HTMLTableCaptionElement::create(document()); | 158 HTMLTableCaptionElement::create(document()); |
| 159 setCaption(caption, IGNORE_EXCEPTION); | 159 setCaption(caption, IGNORE_EXCEPTION_FOR_TESTING); |
| 160 return caption; | 160 return caption; |
| 161 } | 161 } |
| 162 | 162 |
| 163 void HTMLTableElement::deleteCaption() { | 163 void HTMLTableElement::deleteCaption() { |
| 164 removeChild(caption(), IGNORE_EXCEPTION); | 164 removeChild(caption(), IGNORE_EXCEPTION_FOR_TESTING); |
| 165 } | 165 } |
| 166 | 166 |
| 167 HTMLTableSectionElement* HTMLTableElement::lastBody() const { | 167 HTMLTableSectionElement* HTMLTableElement::lastBody() const { |
| 168 return toHTMLTableSectionElement( | 168 return toHTMLTableSectionElement( |
| 169 Traversal<HTMLElement>::lastChild(*this, HasHTMLTagName(tbodyTag))); | 169 Traversal<HTMLElement>::lastChild(*this, HasHTMLTagName(tbodyTag))); |
| 170 } | 170 } |
| 171 | 171 |
| 172 HTMLTableRowElement* HTMLTableElement::insertRow( | 172 HTMLTableRowElement* HTMLTableElement::insertRow( |
| 173 int index, | 173 int index, |
| 174 ExceptionState& exceptionState) { | 174 ExceptionState& exceptionState) { |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 const AtomicString& HTMLTableElement::summary() const { | 606 const AtomicString& HTMLTableElement::summary() const { |
| 607 return getAttribute(summaryAttr); | 607 return getAttribute(summaryAttr); |
| 608 } | 608 } |
| 609 | 609 |
| 610 DEFINE_TRACE(HTMLTableElement) { | 610 DEFINE_TRACE(HTMLTableElement) { |
| 611 visitor->trace(m_sharedCellStyle); | 611 visitor->trace(m_sharedCellStyle); |
| 612 HTMLElement::trace(visitor); | 612 HTMLElement::trace(visitor); |
| 613 } | 613 } |
| 614 | 614 |
| 615 } // namespace blink | 615 } // namespace blink |
| OLD | NEW |