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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/TransformValue.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 TransformValue_h 5 #ifndef TransformValue_h
6 #define TransformValue_h 6 #define TransformValue_h
7 7
8 #include "bindings/core/v8/Iterable.h" 8 #include "bindings/core/v8/Iterable.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
(...skipping 13 matching lines...) Expand all
24 return new TransformValue(); 24 return new TransformValue();
25 } 25 }
26 26
27 static TransformValue* create(const HeapVector<Member<TransformComponent>>& transformComponents) 27 static TransformValue* create(const HeapVector<Member<TransformComponent>>& transformComponents)
28 { 28 {
29 return new TransformValue(transformComponents); 29 return new TransformValue(transformComponents);
30 } 30 }
31 31
32 bool is2D() const; 32 bool is2D() const;
33 33
34 RawPtr<CSSValue> toCSSValue() const override; 34 CSSValue* toCSSValue() const override;
35 35
36 StyleValueType type() const override { return TransformValueType; } 36 StyleValueType type() const override { return TransformValueType; }
37 37
38 TransformComponent* componentAtIndex(int index) { return m_transformComponen ts.at(index); } 38 TransformComponent* componentAtIndex(int index) { return m_transformComponen ts.at(index); }
39 39
40 size_t size() { return m_transformComponents.size(); } 40 size_t size() { return m_transformComponents.size(); }
41 41
42 DEFINE_INLINE_VIRTUAL_TRACE() 42 DEFINE_INLINE_VIRTUAL_TRACE()
43 { 43 {
44 visitor->trace(m_transformComponents); 44 visitor->trace(m_transformComponents);
45 StyleValue::trace(visitor); 45 StyleValue::trace(visitor);
46 } 46 }
47 47
48 private: 48 private:
49 TransformValue() {} 49 TransformValue() {}
50 TransformValue(const HeapVector<Member<TransformComponent>>& transformCompon ents) : StyleValue(), 50 TransformValue(const HeapVector<Member<TransformComponent>>& transformCompon ents) : StyleValue(),
51 m_transformComponents(transformComponents) {} 51 m_transformComponents(transformComponents) {}
52 52
53 HeapVector<Member<TransformComponent>> m_transformComponents; 53 HeapVector<Member<TransformComponent>> m_transformComponents;
54 54
55 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 55 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
56 }; 56 };
57 57
58 } // namespace blink 58 } // namespace blink
59 59
60 #endif 60 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698