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

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

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 #include "core/css/cssom/TransformValue.h" 5 #include "core/css/cssom/TransformValue.h"
6 6
7 #include "core/css/CSSValueList.h" 7 #include "core/css/CSSValueList.h"
8 #include "core/css/cssom/TransformComponent.h" 8 #include "core/css/cssom/TransformComponent.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool TransformValue::is2D() const 47 bool TransformValue::is2D() const
48 { 48 {
49 for (size_t i = 0; i < m_transformComponents.size(); i++) { 49 for (size_t i = 0; i < m_transformComponents.size(); i++) {
50 if (!m_transformComponents[i]->is2DComponent()) { 50 if (!m_transformComponents[i]->is2DComponent()) {
51 return false; 51 return false;
52 } 52 }
53 } 53 }
54 return true; 54 return true;
55 } 55 }
56 56
57 RawPtr<CSSValue> TransformValue::toCSSValue() const 57 CSSValue* TransformValue::toCSSValue() const
58 { 58 {
59 RawPtr<CSSValueList> transformCSSValue = CSSValueList::createSpaceSeparated( ); 59 CSSValueList* transformCSSValue = CSSValueList::createSpaceSeparated();
60 for (size_t i = 0; i < m_transformComponents.size(); i++) { 60 for (size_t i = 0; i < m_transformComponents.size(); i++) {
61 transformCSSValue->append(m_transformComponents[i]->toCSSValue()); 61 transformCSSValue->append(m_transformComponents[i]->toCSSValue());
62 } 62 }
63 return transformCSSValue; 63 return transformCSSValue;
64 } 64 }
65 65
66 } // namespace blink 66 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698