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

Issue 594093002: Fix for mouse capture and release on ClearButtonElement (Closed)

Created:
6 years, 3 months ago by Paritosh Kumar
Modified:
6 years, 2 months ago
Reviewers:
keishi, tkent, Habib Virji
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix for mouse capture and release on ClearButtonElement ClearButtonElement captures mouse events during mouse down, and preventing 'mouseup' skips to release the mouse event capturing. This affects mouse events on other element. So, Removed event mousedown and mouseup handling, just changed to click. R=habib.virji@samsung.com BUG=376467 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184076

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -40 lines) Patch
A LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status-expected.txt View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M Source/core/html/shadow/ClearButtonElement.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/html/shadow/ClearButtonElement.cpp View 1 2 3 3 chunks +4 lines, -35 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
Paritosh Kumar
PTAL.
6 years, 3 months ago (2014-09-23 10:55:06 UTC) #2
Habib Virji
https://codereview.chromium.org/594093002/diff/1/Source/core/html/shadow/ClearButtonElement.cpp File Source/core/html/shadow/ClearButtonElement.cpp (right): https://codereview.chromium.org/594093002/diff/1/Source/core/html/shadow/ClearButtonElement.cpp#newcode109 Source/core/html/shadow/ClearButtonElement.cpp:109: } else if (event->type() == EventTypeNames::mousemove) { As suggested ...
6 years, 3 months ago (2014-09-23 11:09:06 UTC) #3
Paritosh Kumar
On 2014/09/23 11:09:06, Habib Virji wrote: > https://codereview.chromium.org/594093002/diff/1/Source/core/html/shadow/ClearButtonElement.cpp > File Source/core/html/shadow/ClearButtonElement.cpp (right): > > https://codereview.chromium.org/594093002/diff/1/Source/core/html/shadow/ClearButtonElement.cpp#newcode109 ...
6 years, 3 months ago (2014-09-23 14:23:21 UTC) #5
Habib Virji
https://codereview.chromium.org/594093002/diff/40001/LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html File LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html (right): https://codereview.chromium.org/594093002/diff/40001/LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html#newcode9 LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html:9: nit: No need of extra lines. https://codereview.chromium.org/594093002/diff/40001/LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html#newcode10 LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html:10: <button ...
6 years, 2 months ago (2014-09-26 13:59:11 UTC) #6
Habib Virji
https://codereview.chromium.org/594093002/diff/40001/LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html File LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html (right): https://codereview.chromium.org/594093002/diff/40001/LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html#newcode9 LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html:9: nit: No need of extra lines. https://codereview.chromium.org/594093002/diff/40001/LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html#newcode10 LayoutTests/fast/forms/date-multiple-fields/date-clearButton-click-and-preventDefault-then-mouseCapture_status.html:10: <button ...
6 years, 2 months ago (2014-09-26 13:59:13 UTC) #7
Paritosh Kumar
Thanks. Since I am on leave, not updating.
6 years, 2 months ago (2014-10-01 04:53:38 UTC) #8
Paritosh Kumar
Apologize, I was on leave so not updating. Updated as you suggested. Pleace can have ...
6 years, 2 months ago (2014-10-06 11:16:19 UTC) #9
Paritosh Kumar
PTAL.
6 years, 2 months ago (2014-10-16 08:30:57 UTC) #12
Habib Virji
https://codereview.chromium.org/594093002/diff/60001/Source/core/html/shadow/ClearButtonElement.cpp File Source/core/html/shadow/ClearButtonElement.cpp (left): https://codereview.chromium.org/594093002/diff/60001/Source/core/html/shadow/ClearButtonElement.cpp#oldcode89 Source/core/html/shadow/ClearButtonElement.cpp:89: if (renderer() && renderer()->visibleToHitTesting()) { Should you not still ...
6 years, 2 months ago (2014-10-16 08:39:53 UTC) #13
Paritosh Kumar
Thanks According to tkent's suggestion on http://crbug.com/376467, ClearButtonElement doesn't need to use mouse event capturing. ...
6 years, 2 months ago (2014-10-18 05:44:28 UTC) #14
Paritosh Kumar
Thanks According to tkent's suggestion on http://crbug.com/376467, ClearButtonElement doesn't need to use mouse event capturing. ...
6 years, 2 months ago (2014-10-18 05:46:03 UTC) #15
Paritosh Kumar
Thanks According to tkent's suggestion on http://crbug.com/376467, ClearButtonElement doesn't need to use mouse event capturing. ...
6 years, 2 months ago (2014-10-20 12:54:12 UTC) #16
Habib Virji
Changes look good. Remove WIP and please submit for review. Add keishi and tkent for ...
6 years, 2 months ago (2014-10-20 13:16:43 UTC) #17
Paritosh Kumar
Thanks. https://codereview.chromium.org/594093002/diff/80001/LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html File LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html (right): https://codereview.chromium.org/594093002/diff/80001/LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html#newcode10 LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html:10: <div id="js-test-output" value=""></div> On 2014/10/20 13:16:43, Habib Virji ...
6 years, 2 months ago (2014-10-20 13:42:49 UTC) #18
Paritosh Kumar
PTAL.
6 years, 2 months ago (2014-10-20 13:43:26 UTC) #20
Paritosh Kumar
PTAL.
6 years, 2 months ago (2014-10-21 10:03:50 UTC) #21
keishi
https://codereview.chromium.org/594093002/diff/100001/LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html File LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html (right): https://codereview.chromium.org/594093002/diff/100001/LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html#newcode42 LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html:42: mouseClickOn(input.offsetWidth - clearButtonOffset/2 - spinButtonOffset, center); The appearance of ...
6 years, 2 months ago (2014-10-21 10:25:45 UTC) #22
Paritosh Kumar
Thanks Updated as suggested. PTAL. https://codereview.chromium.org/594093002/diff/100001/LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html File LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html (right): https://codereview.chromium.org/594093002/diff/100001/LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html#newcode42 LayoutTests/fast/forms/date-multiple-fields/date-clearbutton-preventdefault-mousecapture-status.html:42: mouseClickOn(input.offsetWidth - clearButtonOffset/2 - ...
6 years, 2 months ago (2014-10-21 10:46:21 UTC) #23
keishi
lgtm
6 years, 2 months ago (2014-10-21 10:49:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/594093002/120001
6 years, 2 months ago (2014-10-21 10:54:06 UTC) #26
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 12:01:11 UTC) #27
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as 184076

Powered by Google App Engine
This is Rietveld 408576698