Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 InvalidationListData_h | |
| 6 #define InvalidationListData_h | |
| 7 | |
| 8 #include "core/css/invalidation/InvalidationData.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class CORE_EXPORT InvalidationListData final { | |
|
Timothy Loh
2015/09/10 06:09:40
could do with a better name
Eric Willigers
2015/09/14 07:20:24
Acknowledged. Renamed to InvalidationLists.
| |
| 13 WTF_MAKE_NONCOPYABLE(InvalidationListData); | |
| 14 public: | |
| 15 static PassOwnPtr<InvalidationListData> create() { return adoptPtr(new Inval idationListData); } | |
| 16 | |
| 17 InvalidationSetVector& descendants() { return m_invalidationList[InvalidateD escendants]; } | |
|
esprehn
2015/09/10 08:54:53
This doesn't need an array and an enum like this.
Eric Willigers
2015/09/14 07:20:23
Fixed.
| |
| 18 InvalidationSetVector& siblings() { return m_invalidationList[InvalidateSibl ings]; } | |
| 19 | |
| 20 private: | |
| 21 InvalidationListData() {} | |
| 22 | |
| 23 InvalidationSetVector m_invalidationList[InvalidateTypeCount]; | |
|
esprehn
2015/09/10 08:54:53
Please don't use an array of Vectors, this only co
Eric Willigers
2015/09/14 07:20:24
Done.
| |
| 24 }; | |
| 25 | |
| 26 } // namespace blink | |
| 27 | |
| 28 #endif // InvalidationListData_h | |
| OLD | NEW |