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

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

Issue 2427963004: Update table.deleteRow(-1) to latest spec (Closed)
Patch Set: Retry now new imported tests are there Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/remove-row-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLTableElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTableElement.cpp b/third_party/WebKit/Source/core/html/HTMLTableElement.cpp
index 6f608f4bb99e79502b2d532a1ed7e522b4ed3398..23cfa78d85d8d39b1c60229ae08aadf51b00091a 100644
--- a/third_party/WebKit/Source/core/html/HTMLTableElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTableElement.cpp
@@ -234,6 +234,8 @@ void HTMLTableElement::deleteRow(int index, ExceptionState& exceptionState) {
int i = 0;
if (index == -1) {
row = HTMLTableRowsCollection::lastRow(*this);
+ if (!row)
+ return;
} else {
for (i = 0; i <= index; ++i) {
row = HTMLTableRowsCollection::rowAfter(*this, row);
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/html/semantics/tabular-data/the-table-element/remove-row-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698