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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 PositionValue_h 5 #ifndef PositionValue_h
6 #define PositionValue_h 6 #define PositionValue_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/cssom/LengthValue.h" 10 #include "core/css/cssom/LengthValue.h"
11 #include "core/css/cssom/StyleValue.h" 11 #include "core/css/cssom/StyleValue.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class CORE_EXPORT PositionValue final : public StyleValue { 15 class CORE_EXPORT PositionValue final : public StyleValue {
16 WTF_MAKE_NONCOPYABLE(PositionValue); 16 WTF_MAKE_NONCOPYABLE(PositionValue);
17 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
18 public: 18 public:
19 static PositionValue* create(const LengthValue* x, const LengthValue* y) 19 static PositionValue* create(const LengthValue* x, const LengthValue* y)
20 { 20 {
21 return new PositionValue(x, y); 21 return new PositionValue(x, y);
22 } 22 }
23 23
24 // Bindings require a non const return value. 24 // Bindings require a non const return value.
25 LengthValue* x() const { return const_cast<LengthValue*>(m_x.get()); } 25 LengthValue* x() const { return const_cast<LengthValue*>(m_x.get()); }
26 LengthValue* y() const { return const_cast<LengthValue*>(m_y.get()); } 26 LengthValue* y() const { return const_cast<LengthValue*>(m_y.get()); }
27 27
28 StyleValueType type() const override { return PositionValueType; } 28 StyleValueType type() const override { return PositionValueType; }
29 29
30 PassRefPtrWillBeRawPtr<CSSValue> toCSSValue() const override; 30 RawPtr<CSSValue> toCSSValue() const override;
31 31
32 DEFINE_INLINE_VIRTUAL_TRACE() 32 DEFINE_INLINE_VIRTUAL_TRACE()
33 { 33 {
34 visitor->trace(m_x); 34 visitor->trace(m_x);
35 visitor->trace(m_y); 35 visitor->trace(m_y);
36 StyleValue::trace(visitor); 36 StyleValue::trace(visitor);
37 } 37 }
38 38
39 protected: 39 protected:
40 PositionValue(const LengthValue* x, const LengthValue* y) : m_x(x), 40 PositionValue(const LengthValue* x, const LengthValue* y) : m_x(x),
41 m_y(y) {} 41 m_y(y) {}
42 42
43 Member<const LengthValue> m_x; 43 Member<const LengthValue> m_x;
44 Member<const LengthValue> m_y; 44 Member<const LengthValue> m_y;
45 45
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif 50 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698