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 CSSPerspective_h | 5 #ifndef CSSPerspective_h |
6 #define CSSPerspective_h | 6 #define CSSPerspective_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/css/cssom/CSSLengthValue.h" | 9 #include "core/css/cssom/CSSLengthValue.h" |
10 #include "core/css/cssom/CSSTransformComponent.h" | 10 #include "core/css/cssom/CSSTransformComponent.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
| 13 namespace cssom { |
13 | 14 |
14 class ExceptionState; | 15 class ExceptionState; |
15 | 16 |
16 class CORE_EXPORT CSSPerspective : public CSSTransformComponent { | 17 class CORE_EXPORT CSSPerspective : public CSSTransformComponent { |
17 WTF_MAKE_NONCOPYABLE(CSSPerspective); | 18 WTF_MAKE_NONCOPYABLE(CSSPerspective); |
18 DEFINE_WRAPPERTYPEINFO(); | 19 DEFINE_WRAPPERTYPEINFO(); |
19 public: | 20 public: |
20 static CSSPerspective* create(const CSSLengthValue*, ExceptionState&); | 21 static CSSPerspective* create(const CSSLengthValue*, ExceptionState&); |
21 static CSSPerspective* fromCSSValue(const CSSFunctionValue& value) { return
nullptr; } | 22 static CSSPerspective* fromCSSValue(const CSSFunctionValue& value) { return
nullptr; } |
22 | 23 |
(...skipping 12 matching lines...) Expand all Loading... |
35 visitor->trace(m_length); | 36 visitor->trace(m_length); |
36 CSSTransformComponent::trace(visitor); | 37 CSSTransformComponent::trace(visitor); |
37 } | 38 } |
38 | 39 |
39 private: | 40 private: |
40 CSSPerspective(const CSSLengthValue* length) : m_length(length) {} | 41 CSSPerspective(const CSSLengthValue* length) : m_length(length) {} |
41 | 42 |
42 Member<const CSSLengthValue> m_length; | 43 Member<const CSSLengthValue> m_length; |
43 }; | 44 }; |
44 | 45 |
| 46 } // namespace cssom |
45 } // namespace blink | 47 } // namespace blink |
46 | 48 |
| 49 |
47 #endif | 50 #endif |
OLD | NEW |