Chromium Code Reviews| Index: Source/core/css/resolver/MatchResult.cpp |
| diff --git a/Source/core/css/resolver/MatchResult.cpp b/Source/core/css/resolver/MatchResult.cpp |
| index f61efb393a1d710ac28c755c763487ea0c0105d7..ae10d7574c6eea7ba5a42f472fc62a47922e2294 100644 |
| --- a/Source/core/css/resolver/MatchResult.cpp |
| +++ b/Source/core/css/resolver/MatchResult.cpp |
| @@ -50,11 +50,22 @@ DEFINE_TRACE(MatchedProperties) |
| void MatchResult::addMatchedProperties(const StylePropertySet* properties, unsigned linkMatchType, PropertyWhitelistType propertyWhitelistType) |
| { |
| - matchedProperties.grow(matchedProperties.size() + 1); |
| - MatchedProperties& newProperties = matchedProperties.last(); |
| + m_matchedProperties.grow(m_matchedProperties.size() + 1); |
| + MatchedProperties& newProperties = m_matchedProperties.last(); |
| newProperties.properties = const_cast<StylePropertySet*>(properties); |
| newProperties.m_types.linkMatchType = linkMatchType; |
| newProperties.m_types.whitelistType = propertyWhitelistType; |
| } |
| +void MatchResult::closeOriginOrScope(bool isUAOrigin) |
|
kochi
2015/08/10 12:15:03
What is this function is expected to do?
I'm stil
|
| +{ |
| + if (!isUAOrigin) { |
| + if (!m_matchedProperties.size()) |
| + return; |
| + if (m_rangeEnd.size() && m_rangeEnd.last() == m_matchedProperties.size()) |
| + return; |
| + } |
| + m_rangeEnd.append(m_matchedProperties.size()); |
| +} |
| + |
| } // namespace blink |