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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrix.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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void setM33(double value) { m_matrix->setM33(value); setIs2D(value != 1); } 42 void setM33(double value) { m_matrix->setM33(value); setIs2D(value != 1); }
43 void setM34(double value) { m_matrix->setM34(value); setIs2D(!value); } 43 void setM34(double value) { m_matrix->setM34(value); setIs2D(!value); }
44 void setM41(double value) { m_matrix->setM41(value); } 44 void setM41(double value) { m_matrix->setM41(value); }
45 void setM42(double value) { m_matrix->setM42(value); } 45 void setM42(double value) { m_matrix->setM42(value); }
46 void setM43(double value) { m_matrix->setM43(value); setIs2D(!value); } 46 void setM43(double value) { m_matrix->setM43(value); setIs2D(!value); }
47 void setM44(double value) { m_matrix->setM44(value); setIs2D(value != 1); } 47 void setM44(double value) { m_matrix->setM44(value); setIs2D(value != 1); }
48 48
49 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); 49 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&);
50 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); 50 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&);
51 DOMMatrix* translateSelf(double tx, double ty, double tz = 0); 51 DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
52 DOMMatrix* scaleSelf(double scale, double ox = 0, double oy = 0); 52 DOMMatrix* scaleSelf(double sx = 1);
53 DOMMatrix* scaleSelf(double sx, double sy, double sz = 1,
54 double ox = 0, double oy = 0, double oz = 0);
53 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0); 55 DOMMatrix* scale3dSelf(double scale, double ox = 0, double oy = 0, double oz = 0);
54 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1,
55 double ox = 0, double oy = 0, double oz = 0);
56 DOMMatrix* skewXSelf(double sx = 0); 56 DOMMatrix* skewXSelf(double sx = 0);
57 DOMMatrix* skewYSelf(double sy = 0); 57 DOMMatrix* skewYSelf(double sy = 0);
58 DOMMatrix* invertSelf(); 58 DOMMatrix* invertSelf();
59 59
60 private: 60 private:
61 DOMMatrix(const TransformationMatrix&, bool is2D = true); 61 DOMMatrix(const TransformationMatrix&, bool is2D = true);
62 template <typename T> 62 template <typename T>
63 DOMMatrix(T sequence, int size); 63 DOMMatrix(T sequence, int size);
64 64
65 DOMMatrix* scaleNonUniformSelf(double sx, double sy = 1, double sz = 1,
66 double ox = 0, double oy = 0, double oz = 0);
67
65 void setIs2D(bool value); 68 void setIs2D(bool value);
66 }; 69 };
67 70
68 } // namespace blink 71 } // namespace blink
69 72
70 #endif 73 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698