| Index: third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp b/third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp
|
| index 9bbcd09f0d91b2a9076b331ea1235d9735dbf25c..87ffe7ced998e94de25c07af8a7338c0d023b073 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp
|
| @@ -66,7 +66,7 @@ int HTMLTableRowElement::rowIndex() const
|
| if (!(maybeTable && isHTMLTableElement(maybeTable)))
|
| return -1;
|
|
|
| - RefPtrWillBeRawPtr<HTMLTableRowsCollection> rows =
|
| + RawPtr<HTMLTableRowsCollection> rows =
|
| toHTMLTableElement(maybeTable)->rows();
|
| HTMLTableRowElement* candidate = rows->item(0);
|
| for (int i = 0; candidate; i++, candidate = rows->item(i)) {
|
| @@ -90,16 +90,16 @@ int HTMLTableRowElement::sectionRowIndex() const
|
| return rIndex;
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<HTMLElement> HTMLTableRowElement::insertCell(int index, ExceptionState& exceptionState)
|
| +RawPtr<HTMLElement> HTMLTableRowElement::insertCell(int index, ExceptionState& exceptionState)
|
| {
|
| - RefPtrWillBeRawPtr<HTMLCollection> children = cells();
|
| + RawPtr<HTMLCollection> children = cells();
|
| int numCells = children ? children->length() : 0;
|
| if (index < -1 || index > numCells) {
|
| exceptionState.throwDOMException(IndexSizeError, "The value provided (" + String::number(index) + ") is outside the range [-1, " + String::number(numCells) + "].");
|
| return nullptr;
|
| }
|
|
|
| - RefPtrWillBeRawPtr<HTMLTableCellElement> cell = HTMLTableCellElement::create(tdTag, document());
|
| + RawPtr<HTMLTableCellElement> cell = HTMLTableCellElement::create(tdTag, document());
|
| if (numCells == index || index == -1)
|
| appendChild(cell, exceptionState);
|
| else
|
| @@ -109,19 +109,19 @@ PassRefPtrWillBeRawPtr<HTMLElement> HTMLTableRowElement::insertCell(int index, E
|
|
|
| void HTMLTableRowElement::deleteCell(int index, ExceptionState& exceptionState)
|
| {
|
| - RefPtrWillBeRawPtr<HTMLCollection> children = cells();
|
| + RawPtr<HTMLCollection> children = cells();
|
| int numCells = children ? children->length() : 0;
|
| if (index == -1)
|
| index = numCells-1;
|
| if (index >= 0 && index < numCells) {
|
| - RefPtrWillBeRawPtr<Element> cell = children->item(index);
|
| + RawPtr<Element> cell = children->item(index);
|
| HTMLElement::removeChild(cell.get(), exceptionState);
|
| } else {
|
| exceptionState.throwDOMException(IndexSizeError, "The value provided (" + String::number(index) + ") is outside the range [0, " + String::number(numCells) + ").");
|
| }
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<HTMLCollection> HTMLTableRowElement::cells()
|
| +RawPtr<HTMLCollection> HTMLTableRowElement::cells()
|
| {
|
| return ensureCachedCollection<HTMLCollection>(TRCells);
|
| }
|
|
|