OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/css/CSSToLengthConversionData.h" | 33 #include "core/css/CSSToLengthConversionData.h" |
34 #include "core/css/StylePropertySet.h" | 34 #include "core/css/StylePropertySet.h" |
35 #include "core/css/resolver/TransformBuilder.h" | 35 #include "core/css/resolver/TransformBuilder.h" |
36 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
37 #include "core/rendering/style/RenderStyle.h" | 37 #include "core/rendering/style/RenderStyle.h" |
38 #include "core/rendering/style/StyleInheritedData.h" | 38 #include "core/rendering/style/StyleInheritedData.h" |
39 #include "wtf/MathExtras.h" | 39 #include "wtf/MathExtras.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 DEFINE_GC_INFO(CSSMatrix); | |
44 | |
45 CSSMatrix::CSSMatrix(const TransformationMatrix& m) | 43 CSSMatrix::CSSMatrix(const TransformationMatrix& m) |
46 : m_matrix(m) | 44 : m_matrix(m) |
47 { | 45 { |
48 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
49 } | 47 } |
50 | 48 |
51 CSSMatrix::CSSMatrix(const String& s, ExceptionState& exceptionState) | 49 CSSMatrix::CSSMatrix(const String& s, ExceptionState& exceptionState) |
52 { | 50 { |
53 ScriptWrappable::init(this); | 51 ScriptWrappable::init(this); |
54 setMatrixValue(s, exceptionState); | 52 setMatrixValue(s, exceptionState); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 if (m_matrix.isAffine()) | 182 if (m_matrix.isAffine()) |
185 return String::format("matrix(%f, %f, %f, %f, %f, %f)", m_matrix.a(), m_
matrix.b(), m_matrix.c(), m_matrix.d(), m_matrix.e(), m_matrix.f()); | 183 return String::format("matrix(%f, %f, %f, %f, %f, %f)", m_matrix.a(), m_
matrix.b(), m_matrix.c(), m_matrix.d(), m_matrix.e(), m_matrix.f()); |
186 return String::format("matrix3d(%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f,
%f, %f, %f, %f, %f)", | 184 return String::format("matrix3d(%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f,
%f, %f, %f, %f, %f)", |
187 m_matrix.m11(), m_matrix.m12(), m_matrix.m13(), m_matrix.m14(), | 185 m_matrix.m11(), m_matrix.m12(), m_matrix.m13(), m_matrix.m14(), |
188 m_matrix.m21(), m_matrix.m22(), m_matrix.m23(), m_matrix.m24(), | 186 m_matrix.m21(), m_matrix.m22(), m_matrix.m23(), m_matrix.m24(), |
189 m_matrix.m31(), m_matrix.m32(), m_matrix.m33(), m_matrix.m34(), | 187 m_matrix.m31(), m_matrix.m32(), m_matrix.m33(), m_matrix.m34(), |
190 m_matrix.m41(), m_matrix.m42(), m_matrix.m43(), m_matrix.m44()); | 188 m_matrix.m41(), m_matrix.m42(), m_matrix.m43(), m_matrix.m44()); |
191 } | 189 } |
192 | 190 |
193 } // namespace WebCore | 191 } // namespace WebCore |
OLD | NEW |