| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * 2010 Dirk Schulze <krit@webkit.org> | 3 * 2010 Dirk Schulze <krit@webkit.org> |
| 4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "platform/transforms/AffineTransform.h" | 28 #include "platform/transforms/AffineTransform.h" |
| 29 | 29 |
| 30 #include "platform/geometry/FloatQuad.h" | 30 #include "platform/geometry/FloatQuad.h" |
| 31 #include "platform/geometry/FloatRect.h" | 31 #include "platform/geometry/FloatRect.h" |
| 32 #include "platform/geometry/IntRect.h" | 32 #include "platform/geometry/IntRect.h" |
| 33 #include "wtf/MathExtras.h" | 33 #include "platform/wtf/MathExtras.h" |
| 34 #include "wtf/text/WTFString.h" | 34 #include "platform/wtf/text/WTFString.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 AffineTransform::AffineTransform() { | 38 AffineTransform::AffineTransform() { |
| 39 const Transform identity = IDENTITY_TRANSFORM; | 39 const Transform identity = IDENTITY_TRANSFORM; |
| 40 setMatrix(identity); | 40 setMatrix(identity); |
| 41 } | 41 } |
| 42 | 42 |
| 43 AffineTransform::AffineTransform(double a, | 43 AffineTransform::AffineTransform(double a, |
| 44 double b, | 44 double b, |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return String::format( | 396 return String::format( |
| 397 "translation(%lg,%lg), scale(%lg,%lg), angle(%lgdeg), " | 397 "translation(%lg,%lg), scale(%lg,%lg), angle(%lgdeg), " |
| 398 "remainder(%lg,%lg,%lg,%lg)", | 398 "remainder(%lg,%lg,%lg,%lg)", |
| 399 decomposition.translateX, decomposition.translateY, decomposition.scaleX, | 399 decomposition.translateX, decomposition.translateY, decomposition.scaleX, |
| 400 decomposition.scaleY, rad2deg(decomposition.angle), | 400 decomposition.scaleY, rad2deg(decomposition.angle), |
| 401 decomposition.remainderA, decomposition.remainderB, | 401 decomposition.remainderA, decomposition.remainderB, |
| 402 decomposition.remainderC, decomposition.remainderD); | 402 decomposition.remainderC, decomposition.remainderD); |
| 403 } | 403 } |
| 404 | 404 |
| 405 } // namespace blink | 405 } // namespace blink |
| OLD | NEW |