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

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

Issue 2387003002: [GeometryInterface] remove scaleNonUniform* method. (Closed)
Patch Set: rebase origin 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 DOMMatrix_h 5 #ifndef DOMMatrix_h
6 #define DOMMatrix_h 6 #define DOMMatrix_h
7 7
8 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 8 #include "bindings/core/v8/ExceptionStatePlaceholder.h"
9 #include "core/dom/DOMMatrixInit.h" 9 #include "core/dom/DOMMatrixInit.h"
10 #include "core/dom/DOMMatrixReadOnly.h" 10 #include "core/dom/DOMMatrixReadOnly.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 setIs2D(!value); 74 setIs2D(!value);
75 } 75 }
76 void setM44(double value) { 76 void setM44(double value) {
77 m_matrix->setM44(value); 77 m_matrix->setM44(value);
78 setIs2D(value != 1); 78 setIs2D(value != 1);
79 } 79 }
80 80
81 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); 81 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&);
82 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); 82 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&);
83 DOMMatrix* translateSelf(double tx, double ty, double tz = 0); 83 DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
84 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0); 84 DOMMatrix* scaleSelf(double sx = 1);
85 DOMMatrix* scaleSelf(double sx,
86 double sy,
87 double sz = 1,
88 double ox = 0,
89 double oy = 0,
90 double oz = 0);
85 DOMMatrix* scale3dSelf(double scale, 91 DOMMatrix* scale3dSelf(double scale,
86 double ox = 0, 92 double ox = 0,
87 double oy = 0, 93 double oy = 0,
88 double oz = 0); 94 double oz = 0);
89 DOMMatrix* scaleNonUniformSelf(double sx,
90 double sy = 1,
91 double sz = 1,
92 double ox = 0,
93 double oy = 0,
94 double oz = 0);
95 DOMMatrix* rotateAxisAngleSelf(double x = 0, 95 DOMMatrix* rotateAxisAngleSelf(double x = 0,
96 double y = 0, 96 double y = 0,
97 double z = 0, 97 double z = 0,
98 double angle = 0); 98 double angle = 0);
99 DOMMatrix* skewXSelf(double sx = 0); 99 DOMMatrix* skewXSelf(double sx = 0);
100 DOMMatrix* skewYSelf(double sy = 0); 100 DOMMatrix* skewYSelf(double sy = 0);
101 DOMMatrix* invertSelf(); 101 DOMMatrix* invertSelf();
102 102
103 private: 103 private:
104 DOMMatrix(const TransformationMatrix&, bool is2D = true); 104 DOMMatrix(const TransformationMatrix&, bool is2D = true);
105 template <typename T> 105 template <typename T>
106 DOMMatrix(T sequence, int size); 106 DOMMatrix(T sequence, int size);
107 107
108 void setIs2D(bool value); 108 void setIs2D(bool value);
109 }; 109 };
110 110
111 } // namespace blink 111 } // namespace blink
112 112
113 #endif 113 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698