Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Unified Diff: third_party/WebKit/Source/modules/canvas2d/HitRegion.h

Issue 1815093002: Canvas2d: fix event.region being null on mouseleave/out events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698