Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: Source/core/html/HTMLTableElement.cpp

Issue 315843004: Oilpan: Replace RefPtrs to Node and its subclasses in core/html with Oilpan transitin types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLSelectElement.cpp ('k') | Source/core/html/forms/TextFieldInputType.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLSelectElement.cpp ('k') | Source/core/html/forms/TextFieldInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698