| 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 "modules/canvas2d/HitRegion.h" | 5 #include "modules/canvas2d/HitRegion.h" |
| 6 | 6 |
| 7 #include "core/dom/AXObjectCache.h" | 7 #include "core/dom/AXObjectCache.h" |
| 8 #include "core/layout/LayoutBoxModelObject.h" | |
| 9 | 8 |
| 10 namespace blink { | 9 namespace blink { |
| 11 | 10 |
| 12 HitRegion::HitRegion(const Path& path, const HitRegionOptions& options) | 11 HitRegion::HitRegion(const Path& path, const HitRegionOptions& options) |
| 13 : m_id(options.id().isEmpty() ? String() : options.id()) | 12 : m_id(options.id().isEmpty() ? String() : options.id()) |
| 14 , m_control(options.control()) | 13 , m_control(options.control()) |
| 15 , m_path(path) | 14 , m_path(path) |
| 16 { | 15 { |
| 17 if (options.fillRule() != "evenodd") | 16 if (options.fillRule() != "evenodd") |
| 18 m_fillRule = RULE_NONZERO; | 17 m_fillRule = RULE_NONZERO; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 130 } |
| 132 | 131 |
| 133 DEFINE_TRACE(HitRegionManager) | 132 DEFINE_TRACE(HitRegionManager) |
| 134 { | 133 { |
| 135 visitor->trace(m_hitRegionList); | 134 visitor->trace(m_hitRegionList); |
| 136 visitor->trace(m_hitRegionIdMap); | 135 visitor->trace(m_hitRegionIdMap); |
| 137 visitor->trace(m_hitRegionControlMap); | 136 visitor->trace(m_hitRegionControlMap); |
| 138 } | 137 } |
| 139 | 138 |
| 140 } // namespace blink | 139 } // namespace blink |
| OLD | NEW |