Commit 80fa4d7b authored by rune's avatar rune Committed by Commit bot

Rename collectTreeBoundaryCrossingRules.

Include V0Cascade order to reflect that this is the legacy code for
Shadow DOM V0 cascading order in pure V0 documents.

R=kochi@chromium.org

Review-Url: https://codereview.chromium.org/2445673002
Cr-Commit-Position: refs/heads/master@{#427042}
parent b86cffd6
...@@ -594,7 +594,7 @@ void StyleResolver::matchAuthorRulesV0(const Element& element, ...@@ -594,7 +594,7 @@ void StyleResolver::matchAuthorRulesV0(const Element& element,
// Apply /deep/ and ::shadow rules from outer scopes, and ::content from // Apply /deep/ and ::shadow rules from outer scopes, and ::content from
// inner. // inner.
collectTreeBoundaryCrossingRules(element, collector); collectTreeBoundaryCrossingRulesV0CascadeOrder(element, collector);
collector.sortAndTransferMatchedRules(); collector.sortAndTransferMatchedRules();
} }
...@@ -684,7 +684,7 @@ void StyleResolver::matchAllRules(StyleResolverState& state, ...@@ -684,7 +684,7 @@ void StyleResolver::matchAllRules(StyleResolverState& state,
collector.finishAddingAuthorRulesForTreeScope(); collector.finishAddingAuthorRulesForTreeScope();
} }
void StyleResolver::collectTreeBoundaryCrossingRules( void StyleResolver::collectTreeBoundaryCrossingRulesV0CascadeOrder(
const Element& element, const Element& element,
ElementRuleCollector& collector) { ElementRuleCollector& collector) {
if (m_treeBoundaryCrossingScopes.isEmpty()) if (m_treeBoundaryCrossingScopes.isEmpty())
......
...@@ -223,7 +223,8 @@ class CORE_EXPORT StyleResolver final ...@@ -223,7 +223,8 @@ class CORE_EXPORT StyleResolver final
ElementRuleCollector&, ElementRuleCollector&,
bool includeSMILProperties); bool includeSMILProperties);
void collectFeatures(); void collectFeatures();
void collectTreeBoundaryCrossingRules(const Element&, ElementRuleCollector&); void collectTreeBoundaryCrossingRulesV0CascadeOrder(const Element&,
ElementRuleCollector&);
void applyMatchedProperties(StyleResolverState&, const MatchResult&); void applyMatchedProperties(StyleResolverState&, const MatchResult&);
bool applyAnimatedProperties(StyleResolverState&, bool applyAnimatedProperties(StyleResolverState&,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment