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

Unified Diff: Source/core/inspector/InspectorStyleSheet.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
Index: Source/core/inspector/InspectorStyleSheet.cpp
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp
index e007d3e9ca2bb92e0b4721312970ade8d8f1b9f6..df9f7fb709842e370ee939b450e77cf1ecbdc042 100644
--- a/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/Source/core/inspector/InspectorStyleSheet.cpp
@@ -573,13 +573,13 @@ bool InspectorStyle::setPropertyText(unsigned index, const String& propertyText,
// At least one property + the bogus property added just above should be present.
if (propertyCount < 2) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return false;
}
// Check for the proper propertyText termination (the parser could at least restore to the PROPERTY_NAME state).
if (propertyData.at(propertyCount - 1).name != bogusPropertyName) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return false;
}
}
@@ -1087,7 +1087,7 @@ CSSStyleRule* InspectorStyleSheet::addRule(const String& selector, ExceptionCode
if (!checkPageStyleSheet(ec))
return 0;
if (!checkStyleRuleSelector(m_pageStyleSheet->ownerDocument(), selector)) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return 0;
}
@@ -1113,7 +1113,7 @@ CSSStyleRule* InspectorStyleSheet::addRule(const String& selector, ExceptionCode
// What we just added has to be a CSSStyleRule - we cannot handle other types of rules yet.
// If it is not a style rule, pretend we never touched the stylesheet.
m_pageStyleSheet->deleteRule(lastRuleIndex, ASSERT_NO_EXCEPTION);
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return 0;
}
@@ -1341,7 +1341,7 @@ bool InspectorStyleSheet::setStyleText(const InspectorCSSId& id, const String& t
if (success)
fireStyleSheetChanged();
else
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return success;
}
« no previous file with comments | « Source/core/inspector/InspectorDOMStorageAgent.cpp ('k') | Source/core/loader/appcache/DOMApplicationCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698