Current implementation of canvas hit region saves the id of hit region to PlatformMouseEvent in case of MouseEvent. This isn't right way. We should move the region id to HitTestResults or some other parts.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3192926ec460259b66e2d6a6bc07e05049105eed commit 3192926ec460259b66e2d6a6bc07e05049105eed Author: hs1217.lee <hs1217.lee@samsung.com> Date: Sat Aug 20 09:57:06 2016 add HitTestCanvasResult Class instend of std::pair<Element*, String> HitRegion is need to many information to expand(ie. cursor, parent_id, label, etc) in canvas2d. "std::pair<element*, string>" can't have a lot of information. so HitTestCanvasResult was added to expend. BUG= 592947 Review-Url: https://codereview.chromium.org/2229743003 Cr-Commit-Position: refs/heads/master@{#413330} [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/core.gypi [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/dom/Document.cpp [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/html/HTMLCanvasElement.h [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/input/PointerEventManager.cpp [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/input/TouchEventManager.cpp [add] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/layout/HitTestCanvasResult.cpp [add] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/core/layout/HitTestCanvasResult.h [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp [modify] https://crrev.com/3192926ec460259b66e2d6a6bc07e05049105eed/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
The HitRegion feature was abandoned.
Comment 1 by jinho.b...@samsung.com
, Mar 8 2016