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

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

Issue 507593002: Implement flip*() methods in DOMMatrixReaOnly. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 DOMMatrix* translate(double tx, double ty, double tz = 0); 48 DOMMatrix* translate(double tx, double ty, double tz = 0);
49 DOMMatrix* scale(double scale, double ox = 0, double oy = 0); 49 DOMMatrix* scale(double scale, double ox = 0, double oy = 0);
50 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 );
51 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1, 51 DOMMatrix* scaleNonUniform(double sx, double sy = 1, double sz = 1,
52 double ox = 0, double oy = 0, double oz = 0); 52 double ox = 0, double oy = 0, double oz = 0);
53 DOMMatrix* rotate(double angle, double ox = 0, double oy = 0); 53 DOMMatrix* rotate(double angle, double ox = 0, double oy = 0);
54 DOMMatrix* rotateFromVector(double x, double y); 54 DOMMatrix* rotateFromVector(double x, double y);
55 DOMMatrix* rotateAxisAngle(double x, double y, double z, double angle); 55 DOMMatrix* rotateAxisAngle(double x, double y, double z, double angle);
56 DOMMatrix* skewX(double sx); 56 DOMMatrix* skewX(double sx);
57 DOMMatrix* skewY(double sy); 57 DOMMatrix* skewY(double sy);
58 DOMMatrix* flipX();
59 DOMMatrix* flipY();
58 60
59 PassRefPtr<Float32Array> toFloat32Array() const; 61 PassRefPtr<Float32Array> toFloat32Array() const;
60 PassRefPtr<Float64Array> toFloat64Array() const; 62 PassRefPtr<Float64Array> toFloat64Array() const;
61 63
62 const TransformationMatrix& matrix() const { return m_matrix; } 64 const TransformationMatrix& matrix() const { return m_matrix; }
63 65
64 void trace(Visitor*) { } 66 void trace(Visitor*) { }
65 67
66 protected: 68 protected:
67 TransformationMatrix m_matrix; 69 TransformationMatrix m_matrix;
68 bool m_is2D; 70 bool m_is2D;
69 }; 71 };
70 72
71 } // namespace blink 73 } // namespace blink
72 74
73 #endif 75 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/geometry-interfaces-dom-matrix-flip.html ('k') | Source/core/dom/DOMMatrixReadOnly.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698