Index: Source/core/css/resolver/MatchResult.h |
diff --git a/Source/core/css/resolver/MatchResult.h b/Source/core/css/resolver/MatchResult.h |
index ceb37b386ea7b852ba4ea7bfc195ca360b4b91e8..8170d451d5f000a2093d6543a17758d4515bea2c 100644 |
--- a/Source/core/css/resolver/MatchResult.h |
+++ b/Source/core/css/resolver/MatchResult.h |
@@ -64,15 +64,15 @@ class MatchResult { |
public: |
void addMatchedProperties(const StylePropertySet* properties, unsigned linkMatchType = CSSSelector::MatchAll, PropertyWhitelistType = PropertyWhitelistNone); |
- int firstRule() const { return 0; } |
- int lastRule() const { return matchedProperties.size() - 1; } |
- int firstUARule() const { return lastUARuleIndex == -1 ? -1 : 0; } |
- int lastUARule() const { return lastUARuleIndex; } |
- int firstAuthorRule() const { return lastUARuleIndex + 1; } |
- int lastAuthorRule() const { return lastRule(); } |
+ unsigned begin() const { return 0; } |
+ unsigned end() const { return matchedProperties.size(); } |
+ unsigned beginUA() const { return 0; } |
+ unsigned endUA() const { return uaEnd; } |
+ unsigned beginAuthor() const { return uaEnd; } |
+ unsigned endAuthor() const { return matchedProperties.size(); } |
WillBeHeapVector<MatchedProperties, 64> matchedProperties; |
- int lastUARuleIndex = -1; |
+ unsigned uaEnd = 0; |
bool isCacheable = true; |
}; |