Chromium Code Reviews| Index: Source/core/css/invalidation/InvalidationListData.h |
| diff --git a/Source/core/css/invalidation/InvalidationListData.h b/Source/core/css/invalidation/InvalidationListData.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f99c800e74638dcf1907a9ba12dbdb8bbfa5a649 |
| --- /dev/null |
| +++ b/Source/core/css/invalidation/InvalidationListData.h |
| @@ -0,0 +1,28 @@ |
| +// 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 InvalidationListData_h |
| +#define InvalidationListData_h |
| + |
| +#include "core/css/invalidation/InvalidationData.h" |
| + |
| +namespace blink { |
| + |
| +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.
|
| + WTF_MAKE_NONCOPYABLE(InvalidationListData); |
| +public: |
| + static PassOwnPtr<InvalidationListData> create() { return adoptPtr(new InvalidationListData); } |
| + |
| + InvalidationSetVector& descendants() { return m_invalidationList[InvalidateDescendants]; } |
|
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.
|
| + InvalidationSetVector& siblings() { return m_invalidationList[InvalidateSiblings]; } |
| + |
| +private: |
| + InvalidationListData() {} |
| + |
| + 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.
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // InvalidationListData_h |