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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.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/core/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index 6c8a1550804f99fdf8c333fda4058e6c05192116..330ee674d6262af2a6a603c3e8c974c275b74fb2 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -187,8 +187,10 @@ public:
void notifyListenersCanvasChanged();
+ // For Canvas HitRegions
bool isSupportedInteractiveCanvasFallback(const Element&);
std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoint&);
+ String getIdFromControl(Element*);
dtapuska 2016/04/05 15:57:28 Is there a requirement that Element be a ptr. Perh
zino 2016/04/06 11:08:20 In the current implementation, we are saving the c
dtapuska 2016/04/06 13:41:25 That doesn't preclude you from taking the address
zino 2016/04/06 16:25:38 Done. But I used |const_cast| when calling getHit
protected:
void didMoveToNewDocument(Document& oldDocument) override;

Powered by Google App Engine
This is Rietveld 408576698