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

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

Issue 446803002: Implement translate() and translateSelf() in DOMMatrix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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 "core/dom/DOMMatrixReadOnly.h" 8 #include "core/dom/DOMMatrixReadOnly.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 20 matching lines...) Expand all
31 void setM24(double value) { m_matrix.setM24(value); setIs2D(!value); } 31 void setM24(double value) { m_matrix.setM24(value); setIs2D(!value); }
32 void setM31(double value) { m_matrix.setM31(value); setIs2D(!value); } 32 void setM31(double value) { m_matrix.setM31(value); setIs2D(!value); }
33 void setM32(double value) { m_matrix.setM32(value); setIs2D(!value); } 33 void setM32(double value) { m_matrix.setM32(value); setIs2D(!value); }
34 void setM33(double value) { m_matrix.setM33(value); setIs2D(value != 1); } 34 void setM33(double value) { m_matrix.setM33(value); setIs2D(value != 1); }
35 void setM34(double value) { m_matrix.setM34(value); setIs2D(!value); } 35 void setM34(double value) { m_matrix.setM34(value); setIs2D(!value); }
36 void setM41(double value) { m_matrix.setM41(value); } 36 void setM41(double value) { m_matrix.setM41(value); }
37 void setM42(double value) { m_matrix.setM42(value); } 37 void setM42(double value) { m_matrix.setM42(value); }
38 void setM43(double value) { m_matrix.setM43(value); setIs2D(!value); } 38 void setM43(double value) { m_matrix.setM43(value); setIs2D(!value); }
39 void setM44(double value) { m_matrix.setM44(value); setIs2D(value != 1); } 39 void setM44(double value) { m_matrix.setM44(value); setIs2D(value != 1); }
40 40
41 DOMMatrix* translateSelf(double tx, double ty, double tz = 0);
42
41 private: 43 private:
42 DOMMatrix(const TransformationMatrix&, bool is2D = true); 44 DOMMatrix(const TransformationMatrix&, bool is2D = true);
43 45
44 void setIs2D(bool value); 46 void setIs2D(bool value);
45 }; 47 };
46 48
47 } // namespace blink 49 } // namespace blink
48 50
49 #endif 51 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/geometry-interfaces-dom-matrix-translate.html ('k') | Source/core/dom/DOMMatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698