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, 2008, 2010, 2011 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010, 2011 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 if (i != index) { | 207 if (i != index) { |
| 208 exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is greater than the number of rows in t he table (" + String::number(i) + ")."); | 208 exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is greater than the number of rows in t he table (" + String::number(i) + ")."); |
| 209 return nullptr; | 209 return nullptr; |
| 210 } | 210 } |
| 211 break; | 211 break; |
| 212 } | 212 } |
| 213 lastRow = row; | 213 lastRow = row; |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| 217 RefPtr<ContainerNode> parent; | 217 RefPtrWillBeRawPtr<ContainerNode> parent; |
|
haraken
2014/06/04 07:06:16
= nullptr
tkent
2014/06/04 08:03:25
I don't think it's necessary. It's very clear tha
| |
| 218 if (lastRow) | 218 if (lastRow) |
| 219 parent = row ? row->parentNode() : lastRow->parentNode(); | 219 parent = row ? row->parentNode() : lastRow->parentNode(); |
| 220 else { | 220 else { |
| 221 parent = lastBody(); | 221 parent = lastBody(); |
| 222 if (!parent) { | 222 if (!parent) { |
| 223 RefPtrWillBeRawPtr<HTMLTableSectionElement> newBody = HTMLTableSecti onElement::create(tbodyTag, document()); | 223 RefPtrWillBeRawPtr<HTMLTableSectionElement> newBody = HTMLTableSecti onElement::create(tbodyTag, document()); |
| 224 RefPtrWillBeRawPtr<HTMLTableRowElement> newRow = HTMLTableRowElement ::create(document()); | 224 RefPtrWillBeRawPtr<HTMLTableRowElement> newRow = HTMLTableRowElement ::create(document()); |
| 225 newBody->appendChild(newRow, exceptionState); | 225 newBody->appendChild(newRow, exceptionState); |
| 226 appendChild(newBody.release(), exceptionState); | 226 appendChild(newBody.release(), exceptionState); |
| 227 return newRow.release(); | 227 return newRow.release(); |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 575 return getAttribute(summaryAttr); | 575 return getAttribute(summaryAttr); |
| 576 } | 576 } |
| 577 | 577 |
| 578 void HTMLTableElement::trace(Visitor* visitor) | 578 void HTMLTableElement::trace(Visitor* visitor) |
| 579 { | 579 { |
| 580 visitor->trace(m_sharedCellStyle); | 580 visitor->trace(m_sharedCellStyle); |
| 581 HTMLElement::trace(visitor); | 581 HTMLElement::trace(visitor); |
| 582 } | 582 } |
| 583 | 583 |
| 584 } | 584 } |
| OLD | NEW |