OLD | NEW |
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 |
11 namespace blink { | 11 namespace blink { |
| 12 namespace cssom { |
12 | 13 |
13 class ExceptionState; | 14 class ExceptionState; |
14 | 15 |
15 class CORE_EXPORT CSSTranslation final : public CSSTransformComponent { | 16 class CORE_EXPORT CSSTranslation final : public CSSTransformComponent { |
16 WTF_MAKE_NONCOPYABLE(CSSTranslation); | 17 WTF_MAKE_NONCOPYABLE(CSSTranslation); |
17 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
18 public: | 19 public: |
19 static CSSTranslation* create(CSSLengthValue* x, CSSLengthValue* y, Exceptio
nState&) | 20 static CSSTranslation* create(CSSLengthValue* x, CSSLengthValue* y, Exceptio
nState&) |
20 { | 21 { |
21 return new CSSTranslation(x, y, nullptr); | 22 return new CSSTranslation(x, y, nullptr); |
(...skipping 29 matching lines...) Expand all Loading... |
51 , m_z(z) | 52 , m_z(z) |
52 { } | 53 { } |
53 | 54 |
54 bool is2D() const { return !m_z; } | 55 bool is2D() const { return !m_z; } |
55 | 56 |
56 Member<CSSLengthValue> m_x; | 57 Member<CSSLengthValue> m_x; |
57 Member<CSSLengthValue> m_y; | 58 Member<CSSLengthValue> m_y; |
58 Member<CSSLengthValue> m_z; | 59 Member<CSSLengthValue> m_z; |
59 }; | 60 }; |
60 | 61 |
| 62 } // namespace cssom |
61 } // namespace blink | 63 } // namespace blink |
62 | 64 |
| 65 |
63 #endif | 66 #endif |
OLD | NEW |