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

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

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
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/HitRegion.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp b/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
index 3934ca76847532d056b8b4602df2bad0c71925d2..55300b0f27061b83e8a25105049a529951e80614 100644
--- a/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/HitRegion.cpp
@@ -66,7 +66,7 @@ void HitRegionManager::removeHitRegionById(const String& id)
removeHitRegion(getHitRegionById(id));
}
-void HitRegionManager::removeHitRegionByControl(Element* control)
+void HitRegionManager::removeHitRegionByControl(const Element* control)
{
removeHitRegion(getHitRegionByControl(control));
}
@@ -104,7 +104,7 @@ HitRegion* HitRegionManager::getHitRegionById(const String& id) const
return m_hitRegionIdMap.get(id);
}
-HitRegion* HitRegionManager::getHitRegionByControl(Element* control) const
+HitRegion* HitRegionManager::getHitRegionByControl(const Element* control) const
{
if (control)
return m_hitRegionControlMap.get(control);
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/HitRegion.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698