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 #include "core/css/cssom/CSSTransformValue.h" | 5 #include "core/css/cssom/CSSTransformValue.h" |
6 | 6 |
7 #include "core/css/CSSValueList.h" | 7 #include "core/css/CSSValueList.h" |
8 #include "core/css/cssom/CSSTransformComponent.h" | 8 #include "core/css/cssom/CSSTransformComponent.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
| 11 namespace cssom { |
11 | 12 |
12 namespace { | 13 namespace { |
13 | 14 |
14 class TransformValueIterationSource final : public ValueIterable<CSSTransformCom
ponent*>::IterationSource { | 15 class TransformValueIterationSource final : public ValueIterable<CSSTransformCom
ponent*>::IterationSource { |
15 public: | 16 public: |
16 explicit TransformValueIterationSource(CSSTransformValue* transformValue) | 17 explicit TransformValueIterationSource(CSSTransformValue* transformValue) |
17 : m_transformValue(transformValue) | 18 : m_transformValue(transformValue) |
18 { | 19 { |
19 } | 20 } |
20 | 21 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 73 |
73 const CSSValue* CSSTransformValue::toCSSValue() const | 74 const CSSValue* CSSTransformValue::toCSSValue() const |
74 { | 75 { |
75 CSSValueList* transformCSSValue = CSSValueList::createSpaceSeparated(); | 76 CSSValueList* transformCSSValue = CSSValueList::createSpaceSeparated(); |
76 for (size_t i = 0; i < m_transformComponents.size(); i++) { | 77 for (size_t i = 0; i < m_transformComponents.size(); i++) { |
77 transformCSSValue->append(*m_transformComponents[i]->toCSSValue()); | 78 transformCSSValue->append(*m_transformComponents[i]->toCSSValue()); |
78 } | 79 } |
79 return transformCSSValue; | 80 return transformCSSValue; |
80 } | 81 } |
81 | 82 |
| 83 } // namespace cssom |
82 } // namespace blink | 84 } // namespace blink |
| 85 |
OLD | NEW |