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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrix.cpp

Issue 2260423002: Implement skew* funtion in DomMatrix & DOMMatrixReadOnly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix a typo Created 4 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 #include "core/dom/DOMMatrix.h" 5 #include "core/dom/DOMMatrix.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 DOMMatrix* DOMMatrix::create() 9 DOMMatrix* DOMMatrix::create()
10 { 10 {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 m_matrix->scaleNonUniform(sx, sy); 99 m_matrix->scaleNonUniform(sx, sy);
100 else 100 else
101 m_matrix->scale3d(sx, sy, sz); 101 m_matrix->scale3d(sx, sy, sz);
102 102
103 if (hasTranslation) 103 if (hasTranslation)
104 translateSelf(-ox, -oy, -oz); 104 translateSelf(-ox, -oy, -oz);
105 105
106 return this; 106 return this;
107 } 107 }
108 108
109 DOMMatrix* DOMMatrix::skewXSelf(double sx)
110 {
111 m_matrix->skewX(sx);
112 return this;
113 }
114
115 DOMMatrix* DOMMatrix::skewYSelf(double sy)
116 {
117 m_matrix->skewY(sy);
118 return this;
119 }
120
109 } // namespace blink 121 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMMatrix.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrix.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698