Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: third_party/WebKit/Source/core/css/invalidation/InvalidationData.h

Issue 1317533002: Sibling invalidation sets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Oilpan Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698