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 50433002: Fix dragging text inside a input element nested in a draggable element. (Closed)

Created:
7 years, 1 month ago by dcheng
Modified:
7 years, 1 month ago
Reviewers:
tony
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, hayato
Visibility:
Public.

Description

Fix dragging text inside a input element nested in a draggable element. I'm not entirely sure why this used to work and was broken by my DragController refactoring. Manual inspection seemed to indicate that it shouldn't have worked before the refactoring either, but it was probably a combination of several different interactions that allowed it to work. With this change, we (mostly) match what the spec says we should do, and more importantly, we match Firefox's behavior. As a bonus, the code is somewhat simpler as well. BUG=298659 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161750

Patch Set 1 #

Patch Set 2 : Maybe works #

Patch Set 3 : #

Patch Set 4 : Some layout tests #

Total comments: 4

Patch Set 5 : Resurrect accidentally removed layout test. #

Patch Set 6 : Better names and comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -69 lines) Patch
A LayoutTests/editing/selection/drag-input-text-nested-in-draggable-element.html View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/drag-input-text-nested-in-draggable-element-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/drag-selection-nodes.html View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
A LayoutTests/editing/selection/drag-selection-nodes-expected.txt View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/platform/mac/editing/selection/drag-selections-to-contenteditable.html View 1 2 3 4 1 chunk +79 lines, -0 lines 0 comments Download
A LayoutTests/platform/mac/editing/selection/drag-selections-to-contenteditable-expected.txt View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/page/DragActions.h View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M Source/core/page/DragController.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M Source/core/page/DragController.cpp View 1 2 3 4 5 3 chunks +47 lines, -14 lines 0 comments Download
M Source/core/page/EventHandler.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 4 chunks +10 lines, -47 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dcheng
Two things: 1) I'm not entirely sure why the layout test is giving me a ...
7 years, 1 month ago (2013-11-04 13:20:23 UTC) #1
tony
We should try to figure out why the layout test is failing. https://codereview.chromium.org/50433002/diff/100001/Source/core/page/DragController.cpp File Source/core/page/DragController.cpp ...
7 years, 1 month ago (2013-11-04 18:23:40 UTC) #2
dcheng
I still can't figure out why the layout test differs from the actual results in ...
7 years, 1 month ago (2013-11-12 00:58:17 UTC) #3
tony
LGTM. In general, I feel like our test coverage for d&d is not great. If ...
7 years, 1 month ago (2013-11-12 01:04:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/50433002/200001
7 years, 1 month ago (2013-11-12 01:17:26 UTC) #5
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 03:37:22 UTC) #6
Message was sent while issue was closed.
Change committed as 161750

Powered by Google App Engine
This is Rietveld 408576698