Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp |
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp |
index cb6e0a484dca8cb6ede5d7fc00fe094a186f6884..8807b83327365b49a8f8f261f8ab0abe90e38db0 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp |
@@ -606,7 +606,7 @@ void StyleEngine::classChangedForElement(const SpaceSplitString& changedClasses, |
RuleFeatureSet& ruleFeatureSet = ensureResolver().ensureUpdatedRuleFeatureSet(); |
for (unsigned i = 0; i < changedSize; ++i) |
ruleFeatureSet.collectInvalidationSetsForClass(invalidationLists, element, changedClasses[i]); |
- m_styleInvalidator.scheduleInvalidationSetsForElement(invalidationLists, element); |
+ m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, element); |
} |
void StyleEngine::classChangedForElement(const SpaceSplitString& oldClasses, const SpaceSplitString& newClasses, Element& element) |
@@ -649,7 +649,7 @@ void StyleEngine::classChangedForElement(const SpaceSplitString& oldClasses, con |
ruleFeatureSet.collectInvalidationSetsForClass(invalidationLists, element, oldClasses[i]); |
} |
- m_styleInvalidator.scheduleInvalidationSetsForElement(invalidationLists, element); |
+ m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, element); |
} |
void StyleEngine::attributeChangedForElement(const QualifiedName& attributeName, Element& element) |
@@ -659,7 +659,7 @@ void StyleEngine::attributeChangedForElement(const QualifiedName& attributeName, |
InvalidationLists invalidationLists; |
ensureResolver().ensureUpdatedRuleFeatureSet().collectInvalidationSetsForAttribute(invalidationLists, element, attributeName); |
- m_styleInvalidator.scheduleInvalidationSetsForElement(invalidationLists, element); |
+ m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, element); |
} |
void StyleEngine::idChangedForElement(const AtomicString& oldId, const AtomicString& newId, Element& element) |
@@ -673,7 +673,7 @@ void StyleEngine::idChangedForElement(const AtomicString& oldId, const AtomicStr |
ruleFeatureSet.collectInvalidationSetsForId(invalidationLists, element, oldId); |
if (!newId.isEmpty()) |
ruleFeatureSet.collectInvalidationSetsForId(invalidationLists, element, newId); |
- m_styleInvalidator.scheduleInvalidationSetsForElement(invalidationLists, element); |
+ m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, element); |
} |
void StyleEngine::pseudoStateChangedForElement(CSSSelector::PseudoType pseudoType, Element& element) |
@@ -683,7 +683,7 @@ void StyleEngine::pseudoStateChangedForElement(CSSSelector::PseudoType pseudoTyp |
InvalidationLists invalidationLists; |
ensureResolver().ensureUpdatedRuleFeatureSet().collectInvalidationSetsForPseudoClass(invalidationLists, element, pseudoType); |
- m_styleInvalidator.scheduleInvalidationSetsForElement(invalidationLists, element); |
+ m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, element); |
} |
void StyleEngine::scheduleSiblingInvalidationsForElement(Element& element, ContainerNode& schedulingParent, unsigned minDirectAdjacent) |
@@ -739,6 +739,13 @@ void StyleEngine::scheduleInvalidationsForRemovedSibling(Element* beforeElement, |
scheduleSiblingInvalidationsForElement(*beforeElement, *schedulingParent, i); |
} |
+void StyleEngine::scheduleNthPseudoInvalidations(ContainerNode& nthParent) |
+{ |
+ InvalidationLists invalidationLists; |
+ ensureResolver().ensureUpdatedRuleFeatureSet().collectNthInvalidationSet(invalidationLists); |
+ m_styleInvalidator.scheduleInvalidationSetsForNode(invalidationLists, nthParent); |
+} |
+ |
void StyleEngine::setStatsEnabled(bool enabled) |
{ |
if (!enabled) { |