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

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

Issue 1259973002: Canvas2d: Remove unnecessary conversion in EventHitRegion. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 | « 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: Source/modules/canvas2d/HitRegion.cpp
diff --git a/Source/modules/canvas2d/HitRegion.cpp b/Source/modules/canvas2d/HitRegion.cpp
index fb3761b2cff9717ab144feccbaf800cd1a9bb5e7..bc9a5d8ec161b47bab05b6b2220165ca309910eb 100644
--- a/Source/modules/canvas2d/HitRegion.cpp
+++ b/Source/modules/canvas2d/HitRegion.cpp
@@ -21,11 +21,6 @@ HitRegion::HitRegion(const Path& path, const HitRegionOptions& options)
m_fillRule = RULE_EVENODD;
}
-bool HitRegion::contains(const LayoutPoint& point) const
-{
- return m_path.contains(FloatPoint(point), m_fillRule);
-}
-
bool HitRegion::contains(const FloatPoint& point) const
{
return m_path.contains(point, m_fillRule);
@@ -120,7 +115,7 @@ HitRegion* HitRegionManager::getHitRegionByControl(Element* control) const
return nullptr;
}
-HitRegion* HitRegionManager::getHitRegionAtPoint(const LayoutPoint& point) const
+HitRegion* HitRegionManager::getHitRegionAtPoint(const FloatPoint& point) const
{
HitRegionIterator itEnd = m_hitRegionList.rend();
« no previous file with comments | « Source/modules/canvas2d/HitRegion.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698