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

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

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 of N] (Closed)
Patch Set: Created 4 years 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/ComputedStylePropertyMap.h" 5 #include "core/css/cssom/ComputedStylePropertyMap.h"
6 6
7 #include "core/css/CSSComputedStyleDeclaration.h" 7 #include "core/css/CSSComputedStyleDeclaration.h"
8 #include "core/css/cssom/StyleValueFactory.h" 8 #include "core/css/cssom/StyleValueFactory.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 14 matching lines...) Expand all
25 customPropertyName); 25 customPropertyName);
26 if (!cssValue) 26 if (!cssValue)
27 return CSSStyleValueVector(); 27 return CSSStyleValueVector();
28 return StyleValueFactory::cssValueToStyleValueVector(CSSPropertyInvalid, 28 return StyleValueFactory::cssValueToStyleValueVector(CSSPropertyInvalid,
29 *cssValue); 29 *cssValue);
30 } 30 }
31 31
32 Vector<String> ComputedStylePropertyMap::getProperties() { 32 Vector<String> ComputedStylePropertyMap::getProperties() {
33 Vector<String> result; 33 Vector<String> result;
34 for (unsigned i = 0; i < m_computedStyleDeclaration->length(); i++) { 34 for (unsigned i = 0; i < m_computedStyleDeclaration->length(); i++) {
35 result.append(m_computedStyleDeclaration->item(i)); 35 result.push_back(m_computedStyleDeclaration->item(i));
36 } 36 }
37 return result; 37 return result;
38 } 38 }
39 39
40 } // namespace blink 40 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698