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

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

Issue 2367663002: [WIP] Attempt to move everything cssom into a cssom namespace (Closed)
Patch Set: Created 4 years, 2 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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698