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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef InvalidationData_h
6 #define InvalidationData_h
7
8 #include "core/css/invalidation/InvalidationSet.h"
9
10 namespace blink {
11
12 class CORE_EXPORT InvalidationData final : public RefCounted<InvalidationData> {
13 WTF_MAKE_NONCOPYABLE(InvalidationData);
14 public:
15 static PassRefPtr<InvalidationData> create()
16 {
17 return adoptRef(new InvalidationData);
18 }
19
20 void combine(const InvalidationData& other);
21
22 PassRefPtr<DescendantInvalidationSet> descendants() { return m_descendants; }
23 PassRefPtr<SiblingInvalidationSet> siblings() { return m_siblings; }
24
25 const DescendantInvalidationSet* descendants() const { return m_descendants. get(); }
26 const SiblingInvalidationSet* siblings() const { return m_siblings.get(); }
27
28 DescendantInvalidationSet& ensureDescendantInvalidationSet();
29 SiblingInvalidationSet& ensureSiblingInvalidationSet();
30 InvalidationSet& ensureInvalidationSet(InvalidationType);
31
32 private:
33 InvalidationData() {}
34
35 RefPtr<DescendantInvalidationSet> m_descendants;
36 RefPtr<SiblingInvalidationSet> m_siblings;
37 };
38
39 } // namespace blink
40
41 #endif // InvalidationData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698