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

Unified Diff: Source/core/testing/InternalSettings.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/svg/properties/SVGTransformListPropertyTearOff.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/InternalSettings.cpp
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp
index 4704e0856aa9f2d73a3280e863c089e142bb0eed..ac1225ed98669213c5e6e75cb596fcd625f66651 100644
--- a/Source/core/testing/InternalSettings.cpp
+++ b/Source/core/testing/InternalSettings.cpp
@@ -37,19 +37,19 @@
#define InternalSettingsGuardForSettingsReturn(returnValue) \
if (!settings()) { \
- ec = INVALID_ACCESS_ERR; \
+ ec = InvalidAccessError; \
return returnValue; \
}
#define InternalSettingsGuardForSettings() \
if (!settings()) { \
- ec = INVALID_ACCESS_ERR; \
+ ec = InvalidAccessError; \
return; \
}
#define InternalSettingsGuardForPage() \
if (!page()) { \
- ec = INVALID_ACCESS_ERR; \
+ ec = InvalidAccessError; \
return; \
}
@@ -289,7 +289,7 @@ void InternalSettings::setEditingBehavior(const String& editingBehavior, Excepti
else if (equalIgnoringCase(editingBehavior, "android"))
settings()->setEditingBehaviorType(EditingAndroidBehavior);
else
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
}
void InternalSettings::setDialogElementEnabled(bool enabled)
« no previous file with comments | « Source/core/svg/properties/SVGTransformListPropertyTearOff.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698