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

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

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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 PerspectiveTransformComponent_h 5 #ifndef PerspectiveTransformComponent_h
6 #define PerspectiveTransformComponent_h 6 #define PerspectiveTransformComponent_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/cssom/LengthValue.h" 9 #include "core/css/cssom/LengthValue.h"
10 #include "core/css/cssom/TransformComponent.h" 10 #include "core/css/cssom/TransformComponent.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExceptionState; 14 class ExceptionState;
15 15
16 class CORE_EXPORT PerspectiveTransformComponent : public TransformComponent { 16 class CORE_EXPORT PerspectiveTransformComponent : public TransformComponent {
17 WTF_MAKE_NONCOPYABLE(PerspectiveTransformComponent); 17 WTF_MAKE_NONCOPYABLE(PerspectiveTransformComponent);
18 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
19 public: 19 public:
20 static PerspectiveTransformComponent* create(const LengthValue*, ExceptionSt ate&); 20 static PerspectiveTransformComponent* create(const LengthValue*, ExceptionSt ate&);
21 21
22 // Bindings require a non const return value. 22 // Bindings require a non const return value.
23 LengthValue* length() const { return const_cast<LengthValue*>(m_length.get() ); } 23 LengthValue* length() const { return const_cast<LengthValue*>(m_length.get() ); }
24 24
25 TransformComponentType type() const override { return PerspectiveType; } 25 TransformComponentType type() const override { return PerspectiveType; }
26 26
27 // TODO: Implement asMatrix for PerspectiveTransformComponent. 27 // TODO: Implement asMatrix for PerspectiveTransformComponent.
28 MatrixTransformComponent* asMatrix() const override { return nullptr; } 28 MatrixTransformComponent* asMatrix() const override { return nullptr; }
29 29
30 RawPtr<CSSFunctionValue> toCSSValue() const override; 30 CSSFunctionValue* toCSSValue() const override;
31 31
32 DEFINE_INLINE_VIRTUAL_TRACE() 32 DEFINE_INLINE_VIRTUAL_TRACE()
33 { 33 {
34 visitor->trace(m_length); 34 visitor->trace(m_length);
35 TransformComponent::trace(visitor); 35 TransformComponent::trace(visitor);
36 } 36 }
37 37
38 private: 38 private:
39 PerspectiveTransformComponent(const LengthValue* length) : m_length(length) {} 39 PerspectiveTransformComponent(const LengthValue* length) : m_length(length) {}
40 40
41 Member<const LengthValue> m_length; 41 Member<const LengthValue> m_length;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif 46 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698