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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTableSectionElement.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/HTMLTableSectionElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTableSectionElement.cpp b/third_party/WebKit/Source/core/html/HTMLTableSectionElement.cpp
index 89198c3e369b4cd1705ad9782a621e171c93a76a..c3b7310e307988118806ee16d35128ca670fa326 100644
--- a/third_party/WebKit/Source/core/html/HTMLTableSectionElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTableSectionElement.cpp
@@ -53,16 +53,16 @@ const StylePropertySet* HTMLTableSectionElement::additionalPresentationAttribute
// these functions are rather slow, since we need to get the row at
// the index... but they aren't used during usual HTML parsing anyway
-PassRefPtrWillBeRawPtr<HTMLElement> HTMLTableSectionElement::insertRow(int index, ExceptionState& exceptionState)
+RawPtr<HTMLElement> HTMLTableSectionElement::insertRow(int index, ExceptionState& exceptionState)
{
- RefPtrWillBeRawPtr<HTMLCollection> children = rows();
+ RawPtr<HTMLCollection> children = rows();
int numRows = children ? static_cast<int>(children->length()) : 0;
if (index < -1 || index > numRows) {
exceptionState.throwDOMException(IndexSizeError, "The provided index (" + String::number(index) + " is outside the range [-1, " + String::number(numRows) + "].");
return nullptr;
}
- RefPtrWillBeRawPtr<HTMLTableRowElement> row = HTMLTableRowElement::create(document());
+ RawPtr<HTMLTableRowElement> row = HTMLTableRowElement::create(document());
if (numRows == index || index == -1)
appendChild(row, exceptionState);
else
@@ -72,7 +72,7 @@ PassRefPtrWillBeRawPtr<HTMLElement> HTMLTableSectionElement::insertRow(int index
void HTMLTableSectionElement::deleteRow(int index, ExceptionState& exceptionState)
{
- RefPtrWillBeRawPtr<HTMLCollection> children = rows();
+ RawPtr<HTMLCollection> children = rows();
int numRows = children ? (int)children->length() : 0;
if (index == -1) {
if (!numRows)
@@ -80,14 +80,14 @@ void HTMLTableSectionElement::deleteRow(int index, ExceptionState& exceptionStat
index = numRows - 1;
}
if (index >= 0 && index < numRows) {
- RefPtrWillBeRawPtr<Element> row = children->item(index);
+ RawPtr<Element> row = children->item(index);
HTMLElement::removeChild(row.get(), exceptionState);
} else {
exceptionState.throwDOMException(IndexSizeError, "The provided index (" + String::number(index) + " is outside the range [-1, " + String::number(numRows) + "].");
}
}
-PassRefPtrWillBeRawPtr<HTMLCollection> HTMLTableSectionElement::rows()
+RawPtr<HTMLCollection> HTMLTableSectionElement::rows()
{
return ensureCachedCollection<HTMLCollection>(TSectionRows);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTableSectionElement.h ('k') | third_party/WebKit/Source/core/html/HTMLTagCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698