Index: Source/core/html/HTMLTableElement.cpp |
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp |
index e86b339c884eb6af3902077ea8a73ac872a1c3ad..0fba3c47fe25cfb4cc86bead61045962f8aa1bb8 100644 |
--- a/Source/core/html/HTMLTableElement.cpp |
+++ b/Source/core/html/HTMLTableElement.cpp |
@@ -195,10 +195,10 @@ PassRefPtr<HTMLElement> HTMLTableElement::insertRow(int index, ExceptionState& e |
RefPtr<HTMLTableRowElement> lastRow = nullptr; |
RefPtr<HTMLTableRowElement> row = nullptr; |
if (index == -1) |
- lastRow = HTMLTableRowsCollection::lastRow(this); |
+ lastRow = HTMLTableRowsCollection::lastRow(*this); |
else { |
for (int i = 0; i <= index; ++i) { |
- row = HTMLTableRowsCollection::rowAfter(this, lastRow.get()); |
+ row = HTMLTableRowsCollection::rowAfter(*this, lastRow.get()); |
if (!row) { |
if (i != index) { |
exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is greater than the number of rows in the table (" + String::number(i) + ")."); |
@@ -239,10 +239,10 @@ void HTMLTableElement::deleteRow(int index, ExceptionState& exceptionState) |
HTMLTableRowElement* row = 0; |
int i = 0; |
if (index == -1) |
- row = HTMLTableRowsCollection::lastRow(this); |
+ row = HTMLTableRowsCollection::lastRow(*this); |
else { |
for (i = 0; i <= index; ++i) { |
- row = HTMLTableRowsCollection::rowAfter(this, row); |
+ row = HTMLTableRowsCollection::rowAfter(*this, row); |
if (!row) |
break; |
} |