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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * * Redistributions of source code must retain the above copyright 4 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 5 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 6 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 7 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 8 * in the documentation and/or other materials provided with the
9 * distribution. 9 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 PassRefPtr<ShadowList> StyleBuilderConverter::convertShadowList( 1025 PassRefPtr<ShadowList> StyleBuilderConverter::convertShadowList(
1026 StyleResolverState& state, 1026 StyleResolverState& state,
1027 const CSSValue& value) { 1027 const CSSValue& value) {
1028 if (value.isIdentifierValue()) { 1028 if (value.isIdentifierValue()) {
1029 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone); 1029 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone);
1030 return PassRefPtr<ShadowList>(); 1030 return PassRefPtr<ShadowList>();
1031 } 1031 }
1032 1032
1033 ShadowDataVector shadows; 1033 ShadowDataVector shadows;
1034 for (const auto& item : toCSSValueList(value)) 1034 for (const auto& item : toCSSValueList(value))
1035 shadows.append(convertShadow(state, *item)); 1035 shadows.push_back(convertShadow(state, *item));
1036 1036
1037 return ShadowList::adopt(shadows); 1037 return ShadowList::adopt(shadows);
1038 } 1038 }
1039 1039
1040 ShapeValue* StyleBuilderConverter::convertShapeValue(StyleResolverState& state, 1040 ShapeValue* StyleBuilderConverter::convertShapeValue(StyleResolverState& state,
1041 const CSSValue& value) { 1041 const CSSValue& value) {
1042 if (value.isIdentifierValue()) { 1042 if (value.isIdentifierValue()) {
1043 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone); 1043 DCHECK_EQ(toCSSIdentifierValue(value).getValueID(), CSSValueNone);
1044 return nullptr; 1044 return nullptr;
1045 } 1045 }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 // Instead of the actual zoom, use 1 to avoid potential rounding errors 1299 // Instead of the actual zoom, use 1 to avoid potential rounding errors
1300 Length length = primitiveValue.convertToLength( 1300 Length length = primitiveValue.convertToLength(
1301 state.cssToLengthConversionData().copyWithAdjustedZoom(1)); 1301 state.cssToLengthConversionData().copyWithAdjustedZoom(1));
1302 return *CSSPrimitiveValue::create(length, 1); 1302 return *CSSPrimitiveValue::create(length, 1);
1303 } 1303 }
1304 } 1304 }
1305 return value; 1305 return value;
1306 } 1306 }
1307 1307
1308 } // namespace blink 1308 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698