Index: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp |
diff --git a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp |
index f9750d938fd5ac56c5c8f26f1c39b7bdda6109cb..a324786050cf826b56b2610f37580376bd5444c1 100644 |
--- a/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp |
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp |
@@ -269,4 +269,18 @@ void InvalidationSet::show() const |
} |
#endif // NDEBUG |
+SiblingInvalidationSet::SiblingInvalidationSet() |
+ : m_maxDirectAdjacentSelectors(1) |
+ , m_descendantInvalidationSet(DescendantInvalidationSet::create()) |
+{ |
+} |
+ |
+void SiblingInvalidationSet::combine(const SiblingInvalidationSet& other) |
+{ |
+ m_maxDirectAdjacentSelectors = std::max(m_maxDirectAdjacentSelectors, other.m_maxDirectAdjacentSelectors); |
+ m_descendantInvalidationSet->combine(other.descendants()); |
+ |
+ InvalidationSet::combine(other); |
+} |
+ |
} // namespace blink |