OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/dom/DOMMatrix.h" | 5 #include "core/dom/DOMMatrix.h" |
6 #include "core/dom/DOMMatrixInit.h" | 6 #include "core/dom/DOMMatrixInit.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 namespace { | 9 namespace { |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other, | 147 DOMMatrix* DOMMatrixReadOnly::multiply(DOMMatrixInit& other, |
148 ExceptionState& exceptionState) { | 148 ExceptionState& exceptionState) { |
149 return DOMMatrix::create(this)->multiplySelf(other, exceptionState); | 149 return DOMMatrix::create(this)->multiplySelf(other, exceptionState); |
150 } | 150 } |
151 | 151 |
152 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz) { | 152 DOMMatrix* DOMMatrixReadOnly::translate(double tx, double ty, double tz) { |
153 return DOMMatrix::create(this)->translateSelf(tx, ty, tz); | 153 return DOMMatrix::create(this)->translateSelf(tx, ty, tz); |
154 } | 154 } |
155 | 155 |
156 DOMMatrix* DOMMatrixReadOnly::scale(double scale, double ox, double oy) { | 156 DOMMatrix* DOMMatrixReadOnly::scale(double sx) { |
157 return DOMMatrix::create(this)->scaleSelf(scale, ox, oy); | 157 return scale(sx, sx); |
| 158 } |
| 159 |
| 160 DOMMatrix* DOMMatrixReadOnly::scale(double sx, |
| 161 double sy, |
| 162 double sz, |
| 163 double ox, |
| 164 double oy, |
| 165 double oz) { |
| 166 return DOMMatrix::create(this)->scaleSelf(sx, sy, sz, ox, oy, oz); |
158 } | 167 } |
159 | 168 |
160 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, | 169 DOMMatrix* DOMMatrixReadOnly::scale3d(double scale, |
161 double ox, | 170 double ox, |
162 double oy, | 171 double oy, |
163 double oz) { | 172 double oz) { |
164 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); | 173 return DOMMatrix::create(this)->scale3dSelf(scale, ox, oy, oz); |
165 } | 174 } |
166 | 175 |
167 DOMMatrix* DOMMatrixReadOnly::scaleNonUniform(double sx, | |
168 double sy, | |
169 double sz, | |
170 double ox, | |
171 double oy, | |
172 double oz) { | |
173 return DOMMatrix::create(this)->scaleNonUniformSelf(sx, sy, sz, ox, oy, oz); | |
174 } | |
175 | |
176 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) { | 176 DOMMatrix* DOMMatrixReadOnly::skewX(double sx) { |
177 return DOMMatrix::create(this)->skewXSelf(sx); | 177 return DOMMatrix::create(this)->skewXSelf(sx); |
178 } | 178 } |
179 | 179 |
180 DOMMatrix* DOMMatrixReadOnly::skewY(double sy) { | 180 DOMMatrix* DOMMatrixReadOnly::skewY(double sy) { |
181 return DOMMatrix::create(this)->skewYSelf(sy); | 181 return DOMMatrix::create(this)->skewYSelf(sy); |
182 } | 182 } |
183 | 183 |
184 DOMMatrix* DOMMatrixReadOnly::flipX() { | 184 DOMMatrix* DOMMatrixReadOnly::flipX() { |
185 DOMMatrix* flipX = DOMMatrix::create(this); | 185 DOMMatrix* flipX = DOMMatrix::create(this); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", " | 238 << m24() << ", " << m31() << ", " << m32() << ", " << m33() << ", " |
239 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", " | 239 << m34() << ", " << m41() << ", " << m42() << ", " << m43() << ", " |
240 << m44(); | 240 << m44(); |
241 } | 241 } |
242 stream << ")"; | 242 stream << ")"; |
243 | 243 |
244 return String(stream.str().c_str()); | 244 return String(stream.str().c_str()); |
245 } | 245 } |
246 | 246 |
247 } // namespace blink | 247 } // namespace blink |
OLD | NEW |