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

Issue 16285002: Do not invoke or clear hover effects on node deletion when cursor is invisible (Closed)

Created:
7 years, 6 months ago by tdanderson
Modified:
7 years, 6 months ago
Reviewers:
Rick Byers, ojan
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Do not invoke new hover effects or clear existing hover effects on node deletion when cursor is invisible If the mouse cursor is invisible and the currently hovered node is deleted from the DOM, then there should be no new hover effects invoked for any remaining nodes in the page (i.e., those that happen to become positioned underneath the last known mouse position as a result of the deletion). Any existing hover effects for the ancestors of the deleted node should be preserved. BUG=240722 R=ojan@chromium.org, rbyers@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151861

Patch Set 1 #

Patch Set 2 : Patch for review #

Total comments: 9

Patch Set 3 : Tests changed #

Total comments: 2

Patch Set 4 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -0 lines) Patch
A LayoutTests/fast/dom/hover-after-dom-delete.html View 1 2 3 1 chunk +140 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html View 1 2 1 chunk +94 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor-expected.txt View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/hover-after-dom-delete-expected.txt View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tdanderson
@ojan and @rbyers, can you please have a look?
7 years, 6 months ago (2013-06-03 21:46:30 UTC) #1
ojan
Why don't we clear hover effects when the cursor goes invisible? Seems strange to me ...
7 years, 6 months ago (2013-06-03 22:55:26 UTC) #2
Rick Byers
Nice, I was hoping there would be a simple fix like this to the gmail ...
7 years, 6 months ago (2013-06-03 23:00:17 UTC) #3
Rick Byers
On 2013/06/03 22:55:26, ojan wrote: > Why don't we clear hover effects when the cursor ...
7 years, 6 months ago (2013-06-03 23:04:05 UTC) #4
ojan
Ugh. That G+ behavior is awful. Sigh. C++ side of the change looks good. https://codereview.chromium.org/16285002/diff/4001/LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html ...
7 years, 6 months ago (2013-06-03 23:55:02 UTC) #5
Rick Byers
On 2013/06/03 23:55:02, ojan wrote: > Ugh. That G+ behavior is awful. Sigh. C++ side ...
7 years, 6 months ago (2013-06-04 00:02:02 UTC) #6
tdanderson
https://codereview.chromium.org/16285002/diff/4001/LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html File LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html (right): https://codereview.chromium.org/16285002/diff/4001/LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html#newcode58 LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html:58: shouldBeEqualToString(window.getComputedStyle(document.querySelector('#blue'), ':after').content, hoveredText); On 2013/06/03 23:00:17, Rick Byers wrote: ...
7 years, 6 months ago (2013-06-04 22:17:41 UTC) #7
ojan
lgtm https://codereview.chromium.org/16285002/diff/4001/LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html File LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html (right): https://codereview.chromium.org/16285002/diff/4001/LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html#newcode68 LayoutTests/fast/dom/hover-after-dom-delete-child-invisible-cursor.html:68: window.setTimeout(testAfterDelete, 0); On 2013/06/04 22:17:41, tdanderson wrote: > ...
7 years, 6 months ago (2013-06-04 23:29:07 UTC) #8
Rick Byers
lgtm with one more suggestion on the test https://codereview.chromium.org/16285002/diff/14001/LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html File LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html (right): https://codereview.chromium.org/16285002/diff/14001/LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html#newcode83 LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html:83: document.body.innerHTML ...
7 years, 6 months ago (2013-06-05 14:47:13 UTC) #9
tdanderson
https://codereview.chromium.org/16285002/diff/14001/LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html File LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html (right): https://codereview.chromium.org/16285002/diff/14001/LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html#newcode83 LayoutTests/fast/dom/hover-after-dom-delete-invisible-cursor.html:83: document.body.innerHTML += "<div id='red'></div>"; On 2013/06/05 14:47:13, Rick Byers ...
7 years, 6 months ago (2013-06-05 17:43:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/16285002/22001
7 years, 6 months ago (2013-06-05 17:43:45 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=11628
7 years, 6 months ago (2013-06-05 18:40:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/16285002/22001
7 years, 6 months ago (2013-06-05 19:09:47 UTC) #13
tdanderson
7 years, 6 months ago (2013-06-05 19:24:44 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 manually as r151861 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698