| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DepthOrderedLayoutObjectList_h | 5 #ifndef DepthOrderedLayoutObjectList_h |
| 6 #define DepthOrderedLayoutObjectList_h | 6 #define DepthOrderedLayoutObjectList_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
| 9 #include "wtf/HashSet.h" | 9 #include "wtf/HashSet.h" |
| 10 #include "wtf/Vector.h" | 10 #include "wtf/Vector.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class LayoutObject; | 14 class LayoutObject; |
| 15 | 15 |
| 16 // Put data inside a forward-declared struct, to avoid including LayoutObject.h. | 16 // Put data inside a forward-declared struct, to avoid including LayoutObject.h
here. |
| 17 struct DepthOrderedLayoutObjectListData; | 17 struct DepthOrderedLayoutObjectListData; |
| 18 | 18 |
| 19 class DepthOrderedLayoutObjectList { | 19 class DepthOrderedLayoutObjectList { |
| 20 public: | 20 public: |
| 21 DepthOrderedLayoutObjectList(); | 21 DepthOrderedLayoutObjectList(); |
| 22 ~DepthOrderedLayoutObjectList(); | 22 ~DepthOrderedLayoutObjectList(); |
| 23 | 23 |
| 24 void add(LayoutObject&); | 24 void add(LayoutObject&); |
| 25 void remove(LayoutObject&); | 25 void remove(LayoutObject&); |
| 26 void clear(); | 26 void clear(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 52 const HashSet<LayoutObject*>& unordered() const; | 52 const HashSet<LayoutObject*>& unordered() const; |
| 53 const Vector<LayoutObjectWithDepth>& ordered(); | 53 const Vector<LayoutObjectWithDepth>& ordered(); |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 DepthOrderedLayoutObjectListData* m_data; | 56 DepthOrderedLayoutObjectListData* m_data; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace blink | 59 } // namespace blink |
| 60 | 60 |
| 61 #endif // DepthOrderedLayoutObjectList_h | 61 #endif // DepthOrderedLayoutObjectList_h |
| OLD | NEW |