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

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

Issue 485523002: Implement *multiply*() methods in DOMMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: pdr's comment Created 6 years, 4 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
« no previous file with comments | « Source/core/dom/DOMMatrix.idl ('k') | Source/core/dom/DOMMatrixReadOnly.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/transforms/TransformationMatrix.h" 10 #include "platform/transforms/TransformationMatrix.h"
(...skipping 26 matching lines...) Expand all
37 double m33() const { return m_matrix.m33(); } 37 double m33() const { return m_matrix.m33(); }
38 double m34() const { return m_matrix.m34(); } 38 double m34() const { return m_matrix.m34(); }
39 double m41() const { return m_matrix.m41(); } 39 double m41() const { return m_matrix.m41(); }
40 double m42() const { return m_matrix.m42(); } 40 double m42() const { return m_matrix.m42(); }
41 double m43() const { return m_matrix.m43(); } 41 double m43() const { return m_matrix.m43(); }
42 double m44() const { return m_matrix.m44(); } 42 double m44() const { return m_matrix.m44(); }
43 43
44 bool is2D() const; 44 bool is2D() const;
45 bool isIdentity() const; 45 bool isIdentity() const;
46 46
47 DOMMatrix* multiply(DOMMatrix*);
47 DOMMatrix* translate(double tx, double ty, double tz = 0); 48 DOMMatrix* translate(double tx, double ty, double tz = 0);
48 DOMMatrix* scale(double scale, double ox = 0, double oy = 0); 49 DOMMatrix* scale(double scale, double ox = 0, double oy = 0);
49 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0 ); 50 DOMMatrix* scale3d(double scale, double ox = 0, double oy = 0, double oz = 0 );
50 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1, 51 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1,
51 double ox = 0, double oy = 0, double oz = 0); 52 double ox = 0, double oy = 0, double oz = 0);
52 53
53 PassRefPtr<Float32Array> toFloat32Array() const; 54 PassRefPtr<Float32Array> toFloat32Array() const;
54 PassRefPtr<Float64Array> toFloat64Array() const; 55 PassRefPtr<Float64Array> toFloat64Array() const;
55 56
56 const TransformationMatrix& matrix() const { return m_matrix; } 57 const TransformationMatrix& matrix() const { return m_matrix; }
57 58
58 void trace(Visitor*) { } 59 void trace(Visitor*) { }
59 60
60 protected: 61 protected:
61 TransformationMatrix m_matrix; 62 TransformationMatrix m_matrix;
62 bool m_is2D; 63 bool m_is2D;
63 }; 64 };
64 65
65 } // namespace blink 66 } // namespace blink
66 67
67 #endif 68 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DOMMatrix.idl ('k') | Source/core/dom/DOMMatrixReadOnly.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698