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

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

Issue 270213007: HTMLTableElement.insertRow()'s argument default value should be -1 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | « Source/core/html/HTMLTableElement.h ('k') | Source/core/html/HTMLTableElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableElement.cpp
diff --git a/Source/core/html/HTMLTableElement.cpp b/Source/core/html/HTMLTableElement.cpp
index cfb58fe075600b0a35a8713f50f638fb055ff86f..843895448f98339f6493e816aefa76147177bb95 100644
--- a/Source/core/html/HTMLTableElement.cpp
+++ b/Source/core/html/HTMLTableElement.cpp
@@ -181,6 +181,12 @@ HTMLTableSectionElement* HTMLTableElement::lastBody() const
return 0;
}
+PassRefPtrWillBeRawPtr<HTMLElement> HTMLTableElement::insertRow(ExceptionState& exceptionState)
+{
+ // The default 'index' argument value is -1.
+ return insertRow(-1, exceptionState);
+}
+
PassRefPtrWillBeRawPtr<HTMLElement> HTMLTableElement::insertRow(int index, ExceptionState& exceptionState)
{
if (index < -1) {
« no previous file with comments | « Source/core/html/HTMLTableElement.h ('k') | Source/core/html/HTMLTableElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698