| 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 189ed69fcb9275e61213562f6403c7a4c839e53d..28a99e7876580e3e60fc89ee0f05c83b6b5398ab 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLTableRowElement.cpp
|
| @@ -110,8 +110,11 @@ void HTMLTableRowElement::deleteCell(int index,
|
| ExceptionState& exceptionState) {
|
| HTMLCollection* children = cells();
|
| int numCells = children ? children->length() : 0;
|
| - if (index == -1)
|
| + if (index == -1) {
|
| + if (numCells == 0)
|
| + return;
|
| index = numCells - 1;
|
| + }
|
| if (index >= 0 && index < numCells) {
|
| Element* cell = children->item(index);
|
| HTMLElement::removeChild(cell, exceptionState);
|
|
|