OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/html/canvas/HitRegion.h" | 6 #include "core/html/canvas/HitRegion.h" |
7 | 7 |
8 #include "core/accessibility/AXObjectCache.h" | 8 #include "core/accessibility/AXObjectCache.h" |
9 #include "core/rendering/RenderBoxModelObject.h" | 9 #include "core/rendering/RenderBoxModelObject.h" |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 return 0; | 147 return 0; |
148 } | 148 } |
149 | 149 |
150 unsigned HitRegionManager::getHitRegionsCount() const | 150 unsigned HitRegionManager::getHitRegionsCount() const |
151 { | 151 { |
152 return m_hitRegionList.size(); | 152 return m_hitRegionList.size(); |
153 } | 153 } |
154 | 154 |
155 void HitRegionManager::trace(Visitor* visitor) | 155 void HitRegionManager::trace(Visitor* visitor) |
156 { | 156 { |
| 157 #if ENABLE(OILPAN) |
157 visitor->trace(m_hitRegionList); | 158 visitor->trace(m_hitRegionList); |
158 visitor->trace(m_hitRegionIdMap); | 159 visitor->trace(m_hitRegionIdMap); |
159 visitor->trace(m_hitRegionControlMap); | 160 visitor->trace(m_hitRegionControlMap); |
| 161 #endif |
160 } | 162 } |
161 | 163 |
162 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(HitRegionManager) | 164 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(HitRegionManager) |
163 | 165 |
164 } // namespace WebCore | 166 } // namespace WebCore |
OLD | NEW |