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

Unified Diff: Source/core/html/HTMLDialogElement.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/frame/Location.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLDialogElement.cpp
diff --git a/Source/core/html/HTMLDialogElement.cpp b/Source/core/html/HTMLDialogElement.cpp
index 82496b15abe91cb6fbcc2408c55bf128bd190be7..4113b3089ce79479a4e814c4931b770b4f84674e 100644
--- a/Source/core/html/HTMLDialogElement.cpp
+++ b/Source/core/html/HTMLDialogElement.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "core/html/HTMLDialogElement.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/accessibility/AXObjectCache.h"
#include "core/dom/ExceptionCode.h"
@@ -88,7 +87,7 @@ PassRefPtr<HTMLDialogElement> HTMLDialogElement::create(Document& document)
void HTMLDialogElement::close(const String& returnValue, ExceptionState& exceptionState)
{
if (!fastHasAttribute(openAttr)) {
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("close", "HTMLDialogElement", "The element does not have an 'open' attribute, and therefore cannot be closed."));
+ exceptionState.throwDOMException(InvalidStateError, "The element does not have an 'open' attribute, and therefore cannot be closed.");
return;
}
closeDialog(returnValue);
@@ -130,11 +129,11 @@ void HTMLDialogElement::show()
void HTMLDialogElement::showModal(ExceptionState& exceptionState)
{
if (fastHasAttribute(openAttr)) {
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("showModal", "HTMLDialogElement", "The element already has an 'open' attribute, and therefore cannot be opened modally."));
+ exceptionState.throwDOMException(InvalidStateError, "The element already has an 'open' attribute, and therefore cannot be opened modally.");
return;
}
if (!inDocument()) {
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("showModal", "HTMLDialogElement", "The element is not in a Document."));
+ exceptionState.throwDOMException(InvalidStateError, "The element is not in a Document.");
return;
}
« no previous file with comments | « Source/core/frame/Location.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698