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

Unified Diff: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 1318543010: Change first() and second() in CSSPairValue to return const references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/animation/DeferredLegacyStyleInterpolation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
diff --git a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index 5e050cd7da317259b27de230e895c28afd3c25ba..a45c65b2685e32602ef8224cabe672edfa5d5ba1 100644
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -347,8 +347,8 @@ static bool borderImageLengthMatchesAllSides(const BorderImageLengthBox& borderI
int length = list ? list->length() : 0;
for (int i = 0; i < length; ++i) {
const CSSValuePair* pair = toCSSValuePair(list->item(i));
- AtomicString identifier(toCSSPrimitiveValue(pair->first())->getStringValue());
- int value = toCSSPrimitiveValue(pair->second())->getIntValue();
+ AtomicString identifier(toCSSPrimitiveValue(pair->first()).getStringValue());
+ int value = toCSSPrimitiveValue(pair->second()).getIntValue();
CounterDirectives& directives = map.add(identifier, CounterDirectives()).storedValue->value;
{% if action == 'Reset' %}
directives.setResetValue(value);
« no previous file with comments | « no previous file | Source/core/animation/DeferredLegacyStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698