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

Unified Diff: Source/core/css/resolver/MatchedPropertiesCache.cpp

Issue 1148023002: No need to store ranges in MatchedPropertiesCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/resolver/MatchedPropertiesCache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/MatchedPropertiesCache.cpp
diff --git a/Source/core/css/resolver/MatchedPropertiesCache.cpp b/Source/core/css/resolver/MatchedPropertiesCache.cpp
index fcf0083d734b1752f50a72b254a45e3a7cb6b536..5d9211751a7e272c78d71d885e374b78c3f91f27 100644
--- a/Source/core/css/resolver/MatchedPropertiesCache.cpp
+++ b/Source/core/css/resolver/MatchedPropertiesCache.cpp
@@ -38,7 +38,6 @@ namespace blink {
void CachedMatchedProperties::set(const ComputedStyle& style, const ComputedStyle& parentStyle, const MatchResult& matchResult)
{
matchedProperties.appendVector(matchResult.matchedProperties);
- ranges = matchResult.ranges;
// Note that we don't cache the original ComputedStyle instance. It may be further modified.
// The ComputedStyle in the cache is really just a holder for the substructures and never used as-is.
@@ -80,8 +79,6 @@ const CachedMatchedProperties* MatchedPropertiesCache::find(unsigned hash, const
if (matchResult.matchedProperties[i] != cacheItem->matchedProperties[i])
return 0;
}
- if (cacheItem->ranges != matchResult.ranges)
- return 0;
return cacheItem;
}
« no previous file with comments | « Source/core/css/resolver/MatchedPropertiesCache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698