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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSTranslation.h

Issue 2711473005: Rename CSSMatrixTransformComponent -> CSSMatrixComponent (Closed)
Patch Set: Rename cssMatrixTransformComponent.html => cssMatrixComponent.html Created 3 years, 9 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 | « third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CSSTranslation_h 5 #ifndef CSSTranslation_h
6 #define CSSTranslation_h 6 #define CSSTranslation_h
7 7
8 #include "core/css/cssom/CSSLengthValue.h" 8 #include "core/css/cssom/CSSLengthValue.h"
9 #include "core/css/cssom/CSSTransformComponent.h" 9 #include "core/css/cssom/CSSTransformComponent.h"
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 CSSLengthValue* x() const { return m_x; } 34 CSSLengthValue* x() const { return m_x; }
35 CSSLengthValue* y() const { return m_y; } 35 CSSLengthValue* y() const { return m_y; }
36 CSSLengthValue* z() const { return m_z; } 36 CSSLengthValue* z() const { return m_z; }
37 37
38 TransformComponentType type() const override { 38 TransformComponentType type() const override {
39 return is2D() ? TranslationType : Translation3DType; 39 return is2D() ? TranslationType : Translation3DType;
40 } 40 }
41 41
42 // TODO: Implement asMatrix for CSSTranslation. 42 // TODO: Implement asMatrix for CSSTranslation.
43 CSSMatrixTransformComponent* asMatrix() const override { return nullptr; } 43 CSSMatrixComponent* asMatrix() const override { return nullptr; }
44 44
45 CSSFunctionValue* toCSSValue() const override; 45 CSSFunctionValue* toCSSValue() const override;
46 46
47 DEFINE_INLINE_VIRTUAL_TRACE() { 47 DEFINE_INLINE_VIRTUAL_TRACE() {
48 visitor->trace(m_x); 48 visitor->trace(m_x);
49 visitor->trace(m_y); 49 visitor->trace(m_y);
50 visitor->trace(m_z); 50 visitor->trace(m_z);
51 CSSTransformComponent::trace(visitor); 51 CSSTransformComponent::trace(visitor);
52 } 52 }
53 53
54 private: 54 private:
55 CSSTranslation(CSSLengthValue* x, CSSLengthValue* y, CSSLengthValue* z) 55 CSSTranslation(CSSLengthValue* x, CSSLengthValue* y, CSSLengthValue* z)
56 : CSSTransformComponent(), m_x(x), m_y(y), m_z(z) {} 56 : CSSTransformComponent(), m_x(x), m_y(y), m_z(z) {}
57 57
58 bool is2D() const { return !m_z; } 58 bool is2D() const { return !m_z; }
59 59
60 Member<CSSLengthValue> m_x; 60 Member<CSSLengthValue> m_x;
61 Member<CSSLengthValue> m_y; 61 Member<CSSLengthValue> m_y;
62 Member<CSSLengthValue> m_z; 62 Member<CSSLengthValue> m_z;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif 67 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698