| 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 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 Loading... |
| 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 |
| OLD | NEW |