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

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

Issue 2099513002: [Typed OM] Rename TransformValue -> CSSTransformValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-transformcomponent
Patch Set: sync to head Created 4 years, 5 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 CSSTransformValue_h
6 #define TransformValue_h 6 #define CSSTransformValue_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"
11 #include "core/css/cssom/CSSStyleValue.h" 11 #include "core/css/cssom/CSSStyleValue.h"
12 #include "core/css/cssom/CSSTransformComponent.h" 12 #include "core/css/cssom/CSSTransformComponent.h"
13 #include "platform/heap/HeapAllocator.h" 13 #include "platform/heap/HeapAllocator.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class CORE_EXPORT TransformValue final : public CSSStyleValue, public ValueItera ble<CSSTransformComponent*> { 17 class CORE_EXPORT CSSTransformValue final : public CSSStyleValue, public ValueIt erable<CSSTransformComponent*> {
18 WTF_MAKE_NONCOPYABLE(TransformValue); 18 WTF_MAKE_NONCOPYABLE(CSSTransformValue);
19 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
20 public: 20 public:
21 static TransformValue* create() 21 static CSSTransformValue* create()
22 { 22 {
23 return new TransformValue(); 23 return new CSSTransformValue();
24 } 24 }
25 25
26 static TransformValue* create(const HeapVector<Member<CSSTransformComponent> >& transformComponents) 26 static CSSTransformValue* create(const HeapVector<Member<CSSTransformCompone nt>>& transformComponents)
27 { 27 {
28 return new TransformValue(transformComponents); 28 return new CSSTransformValue(transformComponents);
29 } 29 }
30 30
31 static TransformValue* fromCSSValue(const CSSValue&); 31 static CSSTransformValue* fromCSSValue(const CSSValue&);
32 32
33 bool is2D() const; 33 bool is2D() const;
34 34
35 CSSValue* toCSSValue() const override; 35 CSSValue* toCSSValue() const override;
36 36
37 StyleValueType type() const override { return TransformType; } 37 StyleValueType type() const override { return TransformType; }
38 38
39 CSSTransformComponent* componentAtIndex(int index) { return m_transformCompo nents.at(index); } 39 CSSTransformComponent* componentAtIndex(int index) { return m_transformCompo nents.at(index); }
40 40
41 size_t size() { return m_transformComponents.size(); } 41 size_t size() { return m_transformComponents.size(); }
42 42
43 DEFINE_INLINE_VIRTUAL_TRACE() 43 DEFINE_INLINE_VIRTUAL_TRACE()
44 { 44 {
45 visitor->trace(m_transformComponents); 45 visitor->trace(m_transformComponents);
46 CSSStyleValue::trace(visitor); 46 CSSStyleValue::trace(visitor);
47 } 47 }
48 48
49 private: 49 private:
50 TransformValue() {} 50 CSSTransformValue() {}
51 TransformValue(const HeapVector<Member<CSSTransformComponent>>& transformCom ponents) : CSSStyleValue(), 51 CSSTransformValue(const HeapVector<Member<CSSTransformComponent>>& transform Components) : CSSStyleValue(),
52 m_transformComponents(transformComponents) {} 52 m_transformComponents(transformComponents) {}
53 53
54 HeapVector<Member<CSSTransformComponent>> m_transformComponents; 54 HeapVector<Member<CSSTransformComponent>> m_transformComponents;
55 55
56 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 56 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif 61 #endif // CSSTransformValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/cssom/CSSTransformValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698