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

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

Issue 418163003: Simplify watched selector handling and remove remnants of user stylesheets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cascade
Patch Set: use includeEmptyRules flag on MatchRequest Created 6 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 | « Source/core/css/resolver/MatchResult.h ('k') | Source/core/css/resolver/MatchedPropertiesCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/MatchResult.cpp
diff --git a/Source/core/css/resolver/MatchResult.cpp b/Source/core/css/resolver/MatchResult.cpp
index 70cd2d6d400a71da17917f91f9cd76dec8da0cfa..da90d61b4f08329e5d2588ae3ad6d8d400d6e2de 100644
--- a/Source/core/css/resolver/MatchResult.cpp
+++ b/Source/core/css/resolver/MatchResult.cpp
@@ -48,14 +48,13 @@ void MatchedProperties::trace(Visitor* visitor)
visitor->trace(properties);
}
-void MatchResult::addMatchedProperties(const StylePropertySet* properties, StyleRule* rule, unsigned linkMatchType, PropertyWhitelistType propertyWhitelistType)
+void MatchResult::addMatchedProperties(const StylePropertySet* properties, unsigned linkMatchType, PropertyWhitelistType propertyWhitelistType)
{
matchedProperties.grow(matchedProperties.size() + 1);
MatchedProperties& newProperties = matchedProperties.last();
newProperties.properties = const_cast<StylePropertySet*>(properties);
newProperties.m_types.linkMatchType = linkMatchType;
newProperties.m_types.whitelistType = propertyWhitelistType;
- matchedRules.append(rule);
}
} // namespace blink
« no previous file with comments | « Source/core/css/resolver/MatchResult.h ('k') | Source/core/css/resolver/MatchedPropertiesCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698