| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index 02f06a10ba1a9a8acc1d4543fb9a1b792d153ea5..d7d299b44c056e86cf11e1cfb204be8ee9c7f11e 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -453,17 +453,16 @@ void StyleResolver::matchScopedAuthorRules(ElementRuleCollector& collector, bool
|
| return;
|
| }
|
|
|
| - Vector<std::pair<ScopedStyleResolver*, bool>, 8> stack;
|
| + Vector<ScopedStyleResolver*, 8> stack;
|
| m_styleTree.resolveScopeStyles(m_state.element(), stack);
|
| if (stack.isEmpty())
|
| return;
|
|
|
| - for (int i = stack.size() - 1; i >= 0; --i) {
|
| - ScopedStyleResolver* scopeResolver = stack.at(i).first;
|
| - bool applyAuthorStyles = stack.at(i).second;
|
| - scopeResolver->matchAuthorRules(collector, includeEmptyRules, applyAuthorStyles);
|
| - }
|
| - matchHostRules(stack.first().first, collector, includeEmptyRules);
|
| + bool applyAuthorStyles = m_state.element()->treeScope()->applyAuthorStyles();
|
| + for (int i = stack.size() - 1; i >= 0; --i)
|
| + stack.at(i)->matchAuthorRules(collector, includeEmptyRules, applyAuthorStyles);
|
| +
|
| + matchHostRules(stack.first(), collector, includeEmptyRules);
|
| }
|
|
|
| void StyleResolver::matchAuthorRules(ElementRuleCollector& collector, bool includeEmptyRules)
|
|
|