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

Unified Diff: Source/core/css/CSSMatrix.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/css/CSSGroupingRule.cpp ('k') | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSMatrix.cpp
diff --git a/Source/core/css/CSSMatrix.cpp b/Source/core/css/CSSMatrix.cpp
index e365da2710cd191f9683f3125c26396e2970f81b..49777fff7cb4b3a3d17d778ff57e8cfa2ae44c9b 100644
--- a/Source/core/css/CSSMatrix.cpp
+++ b/Source/core/css/CSSMatrix.cpp
@@ -69,7 +69,7 @@ void CSSMatrix::setMatrixValue(const String& string, ExceptionCode& ec)
TransformOperations operations;
if (!TransformBuilder::createTransformOperations(value.get(), 0, 0, operations)) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return;
}
@@ -78,15 +78,16 @@ void CSSMatrix::setMatrixValue(const String& string, ExceptionCode& ec)
TransformationMatrix t;
for (unsigned i = 0; i < operations.operations().size(); ++i) {
if (operations.operations()[i].get()->apply(t, IntSize(0, 0))) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return;
}
}
// set the matrix
m_matrix = t;
- } else // There is something there but parsing failed.
- ec = SYNTAX_ERR;
+ } else { // There is something there but parsing failed.
+ ec = SyntaxError;
+ }
}
// Perform a concatenation of the matrices (this * secondMatrix)
« no previous file with comments | « Source/core/css/CSSGroupingRule.cpp ('k') | Source/core/css/CSSPrimitiveValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698