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

Issue 1815093002: Canvas2d: fix event.region being null on mouseleave/out events (Closed)

Created:
4 years, 9 months ago by zino
Modified:
4 years, 8 months ago
CC:
chromium-reviews, blink-reviews, navabi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Canvas2d: fix event.region being null on mouseleave/out events In the current implementation of canvas hit region, the event.region always has null in case of mouseleave/mouseout. Because the mouse cursor is already off boundary of hit region when mouseleave/mouseout event happens. To solve this problem, keeps the region in mouseenter/mouseover event and then takes the value in mouseout/mouseleave event. BUG=592992 Committed: https://crrev.com/282ff5518bc121cfe77a29ddd2b9a465b74daf37 Cr-Commit-Position: refs/heads/master@{#387915}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Messages

Total messages: 35 (10 generated)
zino
PTAL (I'm not sure if this is a right way)
4 years, 9 months ago (2016-03-18 05:14:37 UTC) #4
Rick Byers
On 2016/03/18 05:14:37, zino wrote: > PTAL (I'm not sure if this is a right ...
4 years, 9 months ago (2016-03-18 18:31:51 UTC) #6
Navid Zolghadr
On 2016/03/18 18:31:51, Rick Byers wrote: > On 2016/03/18 05:14:37, zino wrote: > > PTAL ...
4 years, 9 months ago (2016-03-18 19:08:14 UTC) #7
zino
I uploaded a new patch set. What do you think, reviewers?
4 years, 8 months ago (2016-04-05 10:18:01 UTC) #9
dtapuska
https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h File third_party/WebKit/Source/core/html/HTMLCanvasElement.h (right): https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h#newcode193 third_party/WebKit/Source/core/html/HTMLCanvasElement.h:193: String getIdFromControl(Element*); Is there a requirement that Element be ...
4 years, 8 months ago (2016-04-05 15:57:28 UTC) #10
Rick Byers
On 2016/04/05 10:18:01, zino wrote: > I uploaded a new patch set. > > What ...
4 years, 8 months ago (2016-04-05 16:01:35 UTC) #11
zino
Thank you for review. https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h File third_party/WebKit/Source/core/html/HTMLCanvasElement.h (right): https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h#newcode193 third_party/WebKit/Source/core/html/HTMLCanvasElement.h:193: String getIdFromControl(Element*); On 2016/04/05 15:57:28, ...
4 years, 8 months ago (2016-04-06 11:08:20 UTC) #12
dtapuska
https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h File third_party/WebKit/Source/core/html/HTMLCanvasElement.h (right): https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h#newcode193 third_party/WebKit/Source/core/html/HTMLCanvasElement.h:193: String getIdFromControl(Element*); On 2016/04/06 11:08:20, zino wrote: > On ...
4 years, 8 months ago (2016-04-06 13:41:25 UTC) #13
zino
https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h File third_party/WebKit/Source/core/html/HTMLCanvasElement.h (right): https://codereview.chromium.org/1815093002/diff/20001/third_party/WebKit/Source/core/html/HTMLCanvasElement.h#newcode193 third_party/WebKit/Source/core/html/HTMLCanvasElement.h:193: String getIdFromControl(Element*); On 2016/04/06 13:41:25, dtapuska wrote: > On ...
4 years, 8 months ago (2016-04-06 16:25:39 UTC) #14
Justin Novosad
https://codereview.chromium.org/1815093002/diff/60001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h File third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h (right): https://codereview.chromium.org/1815093002/diff/60001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h#newcode112 third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h:112: virtual String getIdFromControl(const Element* element) { ASSERT_NOT_REACHED(); return String(); ...
4 years, 8 months ago (2016-04-06 18:18:26 UTC) #15
zino
Thank you for review. https://codereview.chromium.org/1815093002/diff/60001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h File third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h (right): https://codereview.chromium.org/1815093002/diff/60001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h#newcode112 third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h:112: virtual String getIdFromControl(const Element* element) ...
4 years, 8 months ago (2016-04-07 02:08:16 UTC) #16
zino
Ping junov@ and dtapuska@
4 years, 8 months ago (2016-04-08 15:14:46 UTC) #17
dtapuska
https://codereview.chromium.org/1815093002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1815093002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp#newcode613 third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp:613: if (HitRegion* hitRegion = m_hitRegionManager->getHitRegionByControl(const_cast<Element*>(element))) ugh this const_cast is ...
4 years, 8 months ago (2016-04-08 15:18:31 UTC) #18
zino
On 2016/04/08 15:18:31, dtapuska wrote: > https://codereview.chromium.org/1815093002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp > File third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp > (right): > > https://codereview.chromium.org/1815093002/diff/80001/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp#newcode613 ...
4 years, 8 months ago (2016-04-08 16:34:56 UTC) #19
Justin Novosad
On 2016/04/07 02:08:16, zino wrote: > Thank you for review. > > https://codereview.chromium.org/1815093002/diff/60001/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h > File ...
4 years, 8 months ago (2016-04-08 19:46:28 UTC) #20
zino
Thank you for review. PTAL.
4 years, 8 months ago (2016-04-11 06:20:09 UTC) #21
zino
ping reviewers
4 years, 8 months ago (2016-04-12 23:58:30 UTC) #22
dtapuska
lgtm % I don't see a test case that asserts region is null for mouse ...
4 years, 8 months ago (2016-04-13 01:02:13 UTC) #23
Rick Byers
RS LGTM junov@ any other concerns from your side?
4 years, 8 months ago (2016-04-13 17:55:35 UTC) #24
zino
On 2016/04/13 01:02:13, dtapuska wrote: > lgtm % I don't see a test case that ...
4 years, 8 months ago (2016-04-14 11:04:02 UTC) #26
zino
Ping Justin
4 years, 8 months ago (2016-04-15 17:31:44 UTC) #27
Justin Novosad
On 2016/04/15 17:31:44, zino wrote: > Ping Justin lgtm
4 years, 8 months ago (2016-04-18 13:53:04 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1815093002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1815093002/120001
4 years, 8 months ago (2016-04-18 14:54:09 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-18 15:52:10 UTC) #33
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 15:53:11 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/282ff5518bc121cfe77a29ddd2b9a465b74daf37
Cr-Commit-Position: refs/heads/master@{#387915}

Powered by Google App Engine
This is Rietveld 408576698