| Index: Source/core/css/StyleInvalidationAnalysis.cpp
|
| diff --git a/Source/core/css/StyleInvalidationAnalysis.cpp b/Source/core/css/StyleInvalidationAnalysis.cpp
|
| index 1e4d95289ea12126d7228df8af8677b2b531b6fc..d62fb83c1790dcca28065ad8c756f4de8035b5ae 100644
|
| --- a/Source/core/css/StyleInvalidationAnalysis.cpp
|
| +++ b/Source/core/css/StyleInvalidationAnalysis.cpp
|
| @@ -198,7 +198,7 @@ void StyleInvalidationAnalysis::invalidateStyle(Document& document)
|
|
|
| if (!m_scopingNodes.isEmpty()) {
|
| for (unsigned i = 0; i < m_scopingNodes.size(); ++i)
|
| - m_scopingNodes.at(i)->setNeedsStyleRecalc();
|
| + m_scopingNodes.at(i)->setNeedsStyleRecalc(SubtreeStyleChange);
|
| }
|
|
|
| if (m_idScopes.isEmpty() && m_classScopes.isEmpty())
|
| @@ -206,7 +206,7 @@ void StyleInvalidationAnalysis::invalidateStyle(Document& document)
|
| Element* element = ElementTraversal::firstWithin(document);
|
| while (element) {
|
| if (elementMatchesSelectorScopes(element, m_idScopes, m_classScopes)) {
|
| - element->setNeedsStyleRecalc();
|
| + element->setNeedsStyleRecalc(SubtreeStyleChange);
|
| // The whole subtree is now invalidated, we can skip to the next sibling.
|
| element = ElementTraversal::nextSkippingChildren(*element);
|
| continue;
|
|
|