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

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

Issue 167123002: Simpler return value from HashTable::add()/HashMap::add() and others (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | « Source/bindings/v8/NPV8Object.cpp ('k') | Source/core/animation/KeyframeEffectModel.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 0da953ade36b7b8869adbcc9fc4828efa28414d1..749ff02902ba938ffc66be867260dabaaf97b81a 100644
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -292,7 +292,7 @@ namespace WebCore {
typedef CounterDirectiveMap::iterator Iterator;
Iterator end = parentMap.end();
for (Iterator it = parentMap.begin(); it != end; ++it) {
- CounterDirectives& directives = map.add(it->key, CounterDirectives()).iterator->value;
+ CounterDirectives& directives = map.add(it->key, CounterDirectives()).storedValue->value;
directives.inherit{{action}}(it->value);
}
}
@@ -325,7 +325,7 @@ namespace WebCore {
AtomicString identifier(pair->first()->getStringValue());
int value = pair->second()->getIntValue();
- CounterDirectives& directives = map.add(identifier, CounterDirectives()).iterator->value;
+ CounterDirectives& directives = map.add(identifier, CounterDirectives()).storedValue->value;
{%- if action == "Reset" %}
directives.setResetValue(value);
{%- else %}
« no previous file with comments | « Source/bindings/v8/NPV8Object.cpp ('k') | Source/core/animation/KeyframeEffectModel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698