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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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.cpp ('k') | Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTableRowElement.cpp
diff --git a/Source/core/html/HTMLTableRowElement.cpp b/Source/core/html/HTMLTableRowElement.cpp
index 5b4e06818914c19135ad02f01aa0d1eeb7bad079..b643924cf72afbcd35159b8969174d9d04d76ba3 100644
--- a/Source/core/html/HTMLTableRowElement.cpp
+++ b/Source/core/html/HTMLTableRowElement.cpp
@@ -26,7 +26,6 @@
#include "core/html/HTMLTableRowElement.h"
#include "HTMLNames.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/html/HTMLCollection.h"
@@ -118,7 +117,7 @@ PassRefPtr<HTMLElement> HTMLTableRowElement::insertCell(int index, ExceptionStat
RefPtr<HTMLCollection> children = cells();
int numCells = children ? children->length() : 0;
if (index < -1 || index > numCells) {
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("insertCell", "HTMLTableRowElement", "The value provided (" + String::number(index) + ") is outside the range [-1, " + String::number(numCells) + "]."));
+ exceptionState.throwDOMException(IndexSizeError, "The value provided (" + String::number(index) + ") is outside the range [-1, " + String::number(numCells) + "].");
return 0;
}
@@ -146,7 +145,7 @@ void HTMLTableRowElement::deleteCell(int index, ExceptionState& exceptionState)
RefPtr<Node> cell = children->item(index);
HTMLElement::removeChild(cell.get(), exceptionState);
} else {
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::failedToExecute("deleteCell", "HTMLTableRowElement", "The value provided (" + String::number(index) + ") is outside the range [0, " + String::number(numCells) + ")."));
+ exceptionState.throwDOMException(IndexSizeError, "The value provided (" + String::number(index) + ") is outside the range [0, " + String::number(numCells) + ").");
}
}
« no previous file with comments | « Source/core/html/HTMLTableElement.cpp ('k') | Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698