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) |