| Index: Source/core/css/CSSMatrix.cpp
|
| diff --git a/Source/core/css/CSSMatrix.cpp b/Source/core/css/CSSMatrix.cpp
|
| index 08a8391a6932cb7872efc35f8dd062f8a70a7398..4926df976294a745bd672128ce0387571edd532f 100644
|
| --- a/Source/core/css/CSSMatrix.cpp
|
| +++ b/Source/core/css/CSSMatrix.cpp
|
| @@ -30,9 +30,12 @@
|
| #include "CSSValueKeywords.h"
|
| #include "bindings/v8/ExceptionState.h"
|
| #include "core/css/CSSParser.h"
|
| +#include "core/css/CSSToLengthConversionData.h"
|
| #include "core/css/StylePropertySet.h"
|
| #include "core/css/resolver/TransformBuilder.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/rendering/style/RenderStyle.h"
|
| +#include "core/rendering/style/StyleInheritedData.h"
|
| #include "wtf/MathExtras.h"
|
|
|
| namespace WebCore {
|
| @@ -64,8 +67,9 @@ void CSSMatrix::setMatrixValue(const String& string, ExceptionState& exceptionSt
|
| if (!value || (value->isPrimitiveValue() && (toCSSPrimitiveValue(value.get()))->getValueID() == CSSValueNone))
|
| return;
|
|
|
| + DEFINE_STATIC_REF(RenderStyle, defaultStyle, RenderStyle::createDefaultStyle());
|
| TransformOperations operations;
|
| - if (!TransformBuilder::createTransformOperations(value.get(), 0, 0, operations)) {
|
| + if (!TransformBuilder::createTransformOperations(value.get(), CSSToLengthConversionData(defaultStyle, defaultStyle), operations)) {
|
| exceptionState.throwUninformativeAndGenericDOMException(SyntaxError);
|
| return;
|
| }
|
|
|