OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 #include "config.h" | 5 #include "config.h" |
6 #include "core/layout/HitTestCache.h" | 6 #include "core/layout/HitTestCache.h" |
7 | 7 |
8 #include "public/platform/Platform.h" | 8 #include "public/platform/Platform.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 if (m_updateIndex >= HIT_TEST_CACHE_SIZE) | 70 if (m_updateIndex >= HIT_TEST_CACHE_SIZE) |
71 m_updateIndex = 0; | 71 m_updateIndex = 0; |
72 } | 72 } |
73 | 73 |
74 void HitTestCache::clear() | 74 void HitTestCache::clear() |
75 { | 75 { |
76 m_updateIndex = 0; | 76 m_updateIndex = 0; |
77 m_items.clear(); | 77 m_items.clear(); |
78 } | 78 } |
79 | 79 |
| 80 DEFINE_TRACE(HitTestCache) |
| 81 { |
| 82 visitor->trace(m_items); |
| 83 } |
| 84 |
80 } // namespace blink | 85 } // namespace blink |
OLD | NEW |