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

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

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/HTMLCanvasElement.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 431099e99a9054d136f346f33c1f22a7a39557f3..869ec2a90255e2f1c65140ef29e2e6a1ac2f02ab 100644
--- a/Source/core/html/HTMLDialogElement.cpp
+++ b/Source/core/html/HTMLDialogElement.cpp
@@ -58,7 +58,7 @@ PassRefPtr<HTMLDialogElement> HTMLDialogElement::create(const QualifiedName& tag
void HTMLDialogElement::close(ExceptionCode& ec)
{
if (!fastHasAttribute(openAttr)) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return;
}
setBooleanAttribute(openAttr, false);
@@ -111,7 +111,7 @@ void HTMLDialogElement::show()
void HTMLDialogElement::showModal(ExceptionCode& ec)
{
if (fastHasAttribute(openAttr) || !inDocument()) {
- ec = INVALID_STATE_ERR;
+ ec = InvalidStateError;
return;
}
document()->addToTopLayer(this);
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698