Index: third_party/WebKit/Source/modules/canvas2d/HitRegion.h |
diff --git a/third_party/WebKit/Source/modules/canvas2d/HitRegion.h b/third_party/WebKit/Source/modules/canvas2d/HitRegion.h |
index 8a03e27c40936a6125e2ce75b0310d6dab127d57..a2b689b495812a902eb1c47cb710cc1c842494e7 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/HitRegion.h |
+++ b/third_party/WebKit/Source/modules/canvas2d/HitRegion.h |
@@ -55,12 +55,12 @@ public: |
void removeHitRegion(HitRegion*); |
void removeHitRegionById(const String& id); |
- void removeHitRegionByControl(Element*); |
+ void removeHitRegionByControl(const Element*); |
void removeHitRegionsInRect(const FloatRect&, const AffineTransform&); |
void removeAllHitRegions(); |
HitRegion* getHitRegionById(const String& id) const; |
- HitRegion* getHitRegionByControl(Element*) const; |
+ HitRegion* getHitRegionByControl(const Element*) const; |
HitRegion* getHitRegionAtPoint(const FloatPoint&) const; |
unsigned getHitRegionsCount() const; |
@@ -73,7 +73,7 @@ private: |
typedef HeapListHashSet<Member<HitRegion>> HitRegionList; |
typedef HitRegionList::const_reverse_iterator HitRegionIterator; |
typedef HeapHashMap<String, Member<HitRegion>> HitRegionIdMap; |
- typedef HeapHashMap<Member<Element>, Member<HitRegion>> HitRegionControlMap; |
+ typedef HeapHashMap<Member<const Element>, Member<HitRegion>> HitRegionControlMap; |
HitRegionList m_hitRegionList; |
HitRegionIdMap m_hitRegionIdMap; |