Chromium Code Reviews| Index: Source/core/html/HTMLTableSectionElement.cpp |
| diff --git a/Source/core/html/HTMLTableSectionElement.cpp b/Source/core/html/HTMLTableSectionElement.cpp |
| index 30af275fb286ad5abe094adbc35317c2e21e542d..35644d2699128298400ed55c2444bbda185caefd 100644 |
| --- a/Source/core/html/HTMLTableSectionElement.cpp |
| +++ b/Source/core/html/HTMLTableSectionElement.cpp |
| @@ -76,7 +76,7 @@ PassRefPtr<HTMLElement> HTMLTableSectionElement::insertRow(int index, ExceptionS |
| if (numRows == index || index == -1) { |
| appendChild(row, exceptionState); |
| } else { |
| - Node* n = index ? children->item(index) : firstChild(); |
| + Element* n = children->item(index); |
|
tkent
2014/05/07 01:18:23
nit: We can remove the local variable |n| and fold
Inactive
2014/05/07 01:37:13
Done.
|
| insertBefore(row, n, exceptionState); |
| } |
| return row.release(); |