Chromium Code Reviews| Index: Source/core/css/resolver/ScopedStyleResolver.cpp |
| diff --git a/Source/core/css/resolver/ScopedStyleResolver.cpp b/Source/core/css/resolver/ScopedStyleResolver.cpp |
| index f02c5ade12bc9392036d4f62b911b6317ba392d8..37d0d794eddaeea17b93c0bfd9af9d85afd0bc61 100644 |
| --- a/Source/core/css/resolver/ScopedStyleResolver.cpp |
| +++ b/Source/core/css/resolver/ScopedStyleResolver.cpp |
| @@ -77,7 +77,7 @@ void ScopedStyleResolver::addRulesFromSheet(CSSStyleSheet* cssSheet, const Media |
| AddRuleFlags addRuleFlags = resolver->document().securityOrigin()->canRequest(sheet->baseURL()) ? RuleHasDocumentSecurityOrigin : RuleHasNoSpecialState; |
| const RuleSet& ruleSet = sheet->ensureRuleSet(medium, addRuleFlags); |
| resolver->addMediaQueryResults(ruleSet.viewportDependentMediaQueryResults()); |
| - resolver->processScopedRules(ruleSet, cssSheet, m_scope.rootNode()); |
| + resolver->processScopedRules(ruleSet, cssSheet, m_scope->rootNode()); |
|
tkent
2014/07/24 04:30:09
nit: We prefer a reference. treeScope().rootNode(
haraken
2014/07/24 04:37:41
Done.
|
| } |
| void ScopedStyleResolver::collectFeaturesTo(RuleFeatureSet& features, HashSet<const StyleSheetContents*>& visitedSharedStyleSheetContents) |
| @@ -151,4 +151,11 @@ void ScopedStyleResolver::collectViewportRulesTo(StyleResolver* resolver) const |
| resolver->viewportStyleResolver()->collectViewportRules(&m_authorStyleSheets[i]->contents()->ruleSet(), ViewportStyleResolver::AuthorOrigin); |
| } |
| +void ScopedStyleResolver::trace(Visitor* visitor) |
| +{ |
| + visitor->trace(m_scope); |
| + visitor->trace(m_authorStyleSheets); |
| + visitor->trace(m_keyframesRuleMap); |
| +} |
| + |
| } // namespace blink |