| Index: Source/core/css/invalidation/StyleInvalidator.cpp
|
| diff --git a/Source/core/css/invalidation/StyleInvalidator.cpp b/Source/core/css/invalidation/StyleInvalidator.cpp
|
| index 4b9a24cec661e254a1a8deafe63cbcaf000422e2..530b8bfa84d2b1905eb3dc38c41e507b9048478d 100644
|
| --- a/Source/core/css/invalidation/StyleInvalidator.cpp
|
| +++ b/Source/core/css/invalidation/StyleInvalidator.cpp
|
| @@ -28,6 +28,8 @@ void StyleInvalidator::invalidate(Document& document)
|
|
|
| void StyleInvalidator::scheduleInvalidation(PassRefPtr<DescendantInvalidationSet> invalidationSet, Element& element)
|
| {
|
| + ASSERT(element.inActiveDocument());
|
| + ASSERT(element.styleChangeType() < SubtreeStyleChange);
|
| InvalidationList& list = ensurePendingInvalidationList(element);
|
| // If we're already going to invalidate the whole subtree we don't need to store any new sets.
|
| if (!list.isEmpty() && list.last()->wholeSubtreeInvalid())
|
| @@ -51,8 +53,6 @@ void StyleInvalidator::clearInvalidation(Node& node)
|
| {
|
| if (node.isElementNode() && node.needsStyleInvalidation())
|
| m_pendingInvalidationMap.remove(toElement(&node));
|
| - node.clearChildNeedsStyleInvalidation();
|
| - node.clearNeedsStyleInvalidation();
|
| }
|
|
|
| void StyleInvalidator::clearPendingInvalidations()
|
|
|