Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h

Issue 2387003002: [GeometryInterface] remove scaleNonUniform* method. (Closed)
Patch Set: add test. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef DOMMatrixReadOnly_h 5 #ifndef DOMMatrixReadOnly_h
6 #define DOMMatrixReadOnly_h 6 #define DOMMatrixReadOnly_h
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "core/dom/DOMTypedArray.h" 10 #include "core/dom/DOMTypedArray.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 double m41() const { return m_matrix->m41(); } 48 double m41() const { return m_matrix->m41(); }
49 double m42() const { return m_matrix->m42(); } 49 double m42() const { return m_matrix->m42(); }
50 double m43() const { return m_matrix->m43(); } 50 double m43() const { return m_matrix->m43(); }
51 double m44() const { return m_matrix->m44(); } 51 double m44() const { return m_matrix->m44(); }
52 52
53 bool is2D() const; 53 bool is2D() const;
54 bool isIdentity() const; 54 bool isIdentity() const;
55 55
56 DOMMatrix* multiply(DOMMatrixInit&, ExceptionState&); 56 DOMMatrix* multiply(DOMMatrixInit&, ExceptionState&);
57 DOMMatrix* translate(double tx, double ty, double tz = 0); 57 DOMMatrix* translate(double tx, double ty, double tz = 0);
58 DOMMatrix* scale(double scale, double ox = 0, double oy = 0); 58 DOMMatrix* scale(double sx = 1);
59 DOMMatrix* scale(double sx, double sy, double sz = 1,
60 double ox = 0, double oy = 0, double oz = 0);
59 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0 ); 61 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0 );
60 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1,
61 double ox = 0, double oy = 0, double oz = 0);
62 DOMMatrix* skewX(double sx); 62 DOMMatrix* skewX(double sx);
63 DOMMatrix* skewY(double sy); 63 DOMMatrix* skewY(double sy);
64 DOMMatrix* flipX(); 64 DOMMatrix* flipX();
65 DOMMatrix* flipY(); 65 DOMMatrix* flipY();
66 DOMMatrix* inverse(); 66 DOMMatrix* inverse();
67 67
68 DOMFloat32Array* toFloat32Array() const; 68 DOMFloat32Array* toFloat32Array() const;
69 DOMFloat64Array* toFloat64Array() const; 69 DOMFloat64Array* toFloat64Array() const;
70 70
71 const String toString() const; 71 const String toString() const;
(...skipping 30 matching lines...) Expand all
102 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_p tr 102 // supports 16-byte alignment but Oilpan doesn't. So we use an std::unique_p tr
103 // to allocate TransformationMatrix on PartitionAlloc. 103 // to allocate TransformationMatrix on PartitionAlloc.
104 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. 104 // TODO(oilpan): Oilpan should support 16-byte aligned allocations.
105 std::unique_ptr<TransformationMatrix> m_matrix; 105 std::unique_ptr<TransformationMatrix> m_matrix;
106 bool m_is2D; 106 bool m_is2D;
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif 111 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698