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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698