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

Issue 647503002: Only unregister touch action handler conditionally (Closed)

Created:
6 years, 2 months ago by Sami
Modified:
6 years, 2 months ago
Reviewers:
dsinclair, Rick Byers
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, rune+blink
Project:
blink
Visibility:
Public.

Description

Only unregister touch action handler conditionally When a RenderObject with a non-default touch action is about to be destroyed, we remove the fake event handler that implements the touch action from the event handler registry. However the handler may have already been removed previously by the host Document (e.g., from Document::open()), so this code can cause the same handler to get removed twice. This patch fixes the issue by only removing the handler conditionally if it is still there. BUG=419420 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183743

Patch Set 1 #

Total comments: 3

Patch Set 2 : Forgot expected results from original patch. #

Patch Set 3 : Reduced test case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -5 lines) Patch
A LayoutTests/fast/events/touch/touch-action-double-remove.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + LayoutTests/fast/events/touch/touch-action-double-remove-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 1 chunk +9 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Sami
Hey Rick, any opinion on this? This isn't ideal, but given that the fake handler ...
6 years, 2 months ago (2014-10-09 18:39:33 UTC) #2
Rick Byers
This seems OK to me. Really the node should be adding the handler, but it's ...
6 years, 2 months ago (2014-10-09 19:29:34 UTC) #3
Sami
Hey Dan, could you have a look while Rick is out? Rick seemed to be ...
6 years, 2 months ago (2014-10-15 11:07:10 UTC) #5
dsinclair
lgtm
6 years, 2 months ago (2014-10-15 12:50:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/647503002/110001
6 years, 2 months ago (2014-10-15 12:51:56 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 12:56:13 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:110001) as 183743

Powered by Google App Engine
This is Rietveld 408576698