Index: third_party/WebKit/Source/core/css/invalidation/InvalidationData.h |
diff --git a/third_party/WebKit/Source/core/css/invalidation/InvalidationData.h b/third_party/WebKit/Source/core/css/invalidation/InvalidationData.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3aa026f26ac2837261ba821ae3f4e9879e5f3029 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/css/invalidation/InvalidationData.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef InvalidationData_h |
+#define InvalidationData_h |
+ |
+#include "core/css/invalidation/InvalidationSet.h" |
+ |
+namespace blink { |
+ |
+class CORE_EXPORT InvalidationData final : public RefCounted<InvalidationData> { |
+ WTF_MAKE_NONCOPYABLE(InvalidationData); |
+public: |
+ static PassRefPtr<InvalidationData> create() |
+ { |
+ return adoptRef(new InvalidationData); |
+ } |
+ |
+ void combine(const InvalidationData& other); |
+ |
+ PassRefPtr<DescendantInvalidationSet> descendants() { return m_descendants; } |
+ PassRefPtr<SiblingInvalidationSet> siblings() { return m_siblings; } |
+ |
+ const DescendantInvalidationSet* descendants() const { return m_descendants.get(); } |
+ const SiblingInvalidationSet* siblings() const { return m_siblings.get(); } |
+ |
+ DescendantInvalidationSet& ensureDescendantInvalidationSet(); |
+ SiblingInvalidationSet& ensureSiblingInvalidationSet(); |
+ InvalidationSet& ensureInvalidationSet(InvalidationType); |
+ |
+private: |
+ InvalidationData() {} |
+ |
+ RefPtr<DescendantInvalidationSet> m_descendants; |
+ RefPtr<SiblingInvalidationSet> m_siblings; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // InvalidationData_h |