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

Unified Diff: Source/core/css/RuleFeature.cpp

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/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/RuleSet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/RuleFeature.cpp
diff --git a/Source/core/css/RuleFeature.cpp b/Source/core/css/RuleFeature.cpp
index 8e8f7a44ed2a77ada24fc1e01c7b6fb0c1852543..285c2b00ebaa18d9a1d3dac69bacb54550df53aa 100644
--- a/Source/core/css/RuleFeature.cpp
+++ b/Source/core/css/RuleFeature.cpp
@@ -160,8 +160,8 @@ DescendantInvalidationSet& RuleFeatureSet::ensureClassInvalidationSet(const Atom
{
InvalidationSetMap::AddResult addResult = m_classInvalidationSets.add(className, 0);
if (addResult.isNewEntry)
- addResult.iterator->value = DescendantInvalidationSet::create();
- return *addResult.iterator->value;
+ addResult.storedValue->value = DescendantInvalidationSet::create();
+ return *addResult.storedValue->value;
}
void RuleFeatureSet::collectFeaturesFromSelector(const CSSSelector& selector)
@@ -334,8 +334,8 @@ RuleFeatureSet::InvalidationList& RuleFeatureSet::ensurePendingInvalidationList(
{
PendingInvalidationMap::AddResult addResult = m_pendingInvalidationMap.add(element, 0);
if (addResult.isNewEntry)
- addResult.iterator->value = new InvalidationList;
- return *addResult.iterator->value;
+ addResult.storedValue->value = new InvalidationList;
+ return *addResult.storedValue->value;
}
void RuleFeatureSet::computeStyleInvalidation(Document& document)
« no previous file with comments | « Source/core/css/PropertySetCSSStyleDeclaration.cpp ('k') | Source/core/css/RuleSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698