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

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

Issue 2907973002: [css-typed-om] add toMatrix() method in CSSTransformValue.idl (Closed)
Patch Set: add toMatrix() Created 3 years, 6 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/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h" 9 #include "bindings/core/v8/StringOrUnrestrictedDoubleSequence.h"
10 #include "core/dom/ArrayBufferViewHelpers.h" 10 #include "core/dom/ArrayBufferViewHelpers.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void setM43(double value) { 79 void setM43(double value) {
80 matrix_->SetM43(value); 80 matrix_->SetM43(value);
81 SetIs2D(!value); 81 SetIs2D(!value);
82 } 82 }
83 void setM44(double value) { 83 void setM44(double value) {
84 matrix_->SetM44(value); 84 matrix_->SetM44(value);
85 SetIs2D(value != 1); 85 SetIs2D(value != 1);
86 } 86 }
87 87
88 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&); 88 DOMMatrix* multiplySelf(DOMMatrixInit&, ExceptionState&);
89 DOMMatrix* multiplySelf(DOMMatrix* other_matrix);
89 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&); 90 DOMMatrix* preMultiplySelf(DOMMatrixInit&, ExceptionState&);
90 DOMMatrix* translateSelf(double tx = 0, double ty = 0, double tz = 0); 91 DOMMatrix* translateSelf(double tx = 0, double ty = 0, double tz = 0);
91 DOMMatrix* scaleSelf(double sx = 1); 92 DOMMatrix* scaleSelf(double sx = 1);
92 DOMMatrix* scaleSelf(double sx, 93 DOMMatrix* scaleSelf(double sx,
93 double sy, 94 double sy,
94 double sz = 1, 95 double sz = 1,
95 double ox = 0, 96 double ox = 0,
96 double oy = 0, 97 double oy = 0,
97 double oz = 0); 98 double oz = 0);
98 DOMMatrix* scale3dSelf(double scale = 1, 99 DOMMatrix* scale3dSelf(double scale = 1,
(...skipping 19 matching lines...) Expand all
118 template <typename T> 119 template <typename T>
119 DOMMatrix(T sequence, int size); 120 DOMMatrix(T sequence, int size);
120 121
121 void SetIs2D(bool value); 122 void SetIs2D(bool value);
122 void SetNAN(); 123 void SetNAN();
123 }; 124 };
124 125
125 } // namespace blink 126 } // namespace blink
126 127
127 #endif 128 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698