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

Issue 2778153003: Use the flat tree for hover handling. (Closed)

Created:
3 years, 8 months ago by emilio
Modified:
3 years, 8 months ago
Reviewers:
rune
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis, Manuel Rego
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the flat tree for hover handling. Modulo spec debate like[1], this is much simpler and closer to the spec than what it was implemented. This doesn't actually fix issue 705984, but it's a required cleanup, and I've verified that the display: contents node is added to the :hover chain (if there's an intermediate <div>), so I probably need to investigate how hit testing and style invalidation is done, etc, to track down that bug. Still this is worth landing IMO. BUG=705984 Review-Url: https://codereview.chromium.org/2778153003 Cr-Commit-Position: refs/heads/master@{#461417} Committed: https://chromium.googlesource.com/chromium/src/+/3f2db89d6d660abe00760144e734ccb9963cce2a

Patch Set 1 #

Patch Set 2 : Use the flat tree for hover handling. #

Patch Set 3 : Use the flat tree for hover handling. #

Total comments: 1

Patch Set 4 : Use the flat tree for hover handling. #

Total comments: 1

Patch Set 5 : Use the flat tree for hover handling. #

Patch Set 6 : Use the flat tree for hover handling. #

Patch Set 7 : wip with stronger assertions #

Patch Set 8 : Use the flat tree for hover handling. #

Patch Set 9 : Typoing like a boss #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -63 lines) Patch
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 2 chunks +31 lines, -63 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 63 (42 generated)
emilio
This is green, rune, could you take a look?
3 years, 8 months ago (2017-03-29 14:07:20 UTC) #16
emilio
On 2017/03/29 14:07:20, emilio wrote: > This is green, rune, could you take a look? ...
3 years, 8 months ago (2017-03-29 14:09:56 UTC) #17
emilio
On 2017/03/29 14:09:56, emilio wrote: > On 2017/03/29 14:07:20, emilio wrote: > > This is ...
3 years, 8 months ago (2017-03-29 14:23:43 UTC) #18
rune
Regarding style invalidation, we skip style invalidation in ContainerNode::setHovered() for nodes not having layoutObject() when ...
3 years, 8 months ago (2017-03-29 21:41:43 UTC) #19
rune
https://codereview.chromium.org/2778153003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2778153003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6226 third_party/WebKit/Source/core/dom/Document.cpp:6226: newHoverNode->updateDistribution(); So we need to update the distribution, but ...
3 years, 8 months ago (2017-03-29 22:01:01 UTC) #20
emilio
On 2017/03/29 22:01:01, rune wrote: > https://codereview.chromium.org/2778153003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2778153003/diff/40001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6226 > ...
3 years, 8 months ago (2017-03-30 07:33:56 UTC) #21
emilio
On 2017/03/30 07:33:56, emilio wrote: > I'm not sure of any distribution change that could ...
3 years, 8 months ago (2017-03-30 09:53:38 UTC) #22
emilio
On 2017/03/30 09:53:38, emilio wrote: > On 2017/03/30 07:33:56, emilio wrote: > > I'm not ...
3 years, 8 months ago (2017-03-30 10:29:12 UTC) #23
emilio
On 2017/03/30 10:29:12, emilio wrote: > On 2017/03/30 09:53:38, emilio wrote: > > On 2017/03/30 ...
3 years, 8 months ago (2017-03-30 10:33:53 UTC) #24
emilio
On 2017/03/30 10:33:53, emilio wrote: > On 2017/03/30 10:29:12, emilio wrote: > > On 2017/03/30 ...
3 years, 8 months ago (2017-03-30 10:36:15 UTC) #25
emilio
On 2017/03/30 10:36:15, emilio wrote: > On 2017/03/30 10:33:53, emilio wrote: > > On 2017/03/30 ...
3 years, 8 months ago (2017-03-30 10:43:03 UTC) #26
emilio
(For reference, the other failing test is fast/forms/select/listbox-drag-in-from-outside.html)
3 years, 8 months ago (2017-03-30 10:44:41 UTC) #27
emilio
On 2017/03/30 10:44:41, emilio wrote: > (For reference, the other failing test is > fast/forms/select/listbox-drag-in-from-outside.html) ...
3 years, 8 months ago (2017-03-30 10:56:15 UTC) #28
emilio
I've uploaded another patch that only updates the old node's distribution, with a comment regarding ...
3 years, 8 months ago (2017-03-30 11:23:44 UTC) #31
rune
https://codereview.chromium.org/2778153003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2778153003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6230 third_party/WebKit/Source/core/dom/Document.cpp:6230: oldHoverNode->updateDistribution(); I just noticed, there a call to Document::updateDistribution() ...
3 years, 8 months ago (2017-03-30 12:25:19 UTC) #32
emilio
On 2017/03/30 12:25:19, rune wrote: > https://codereview.chromium.org/2778153003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2778153003/diff/60001/third_party/WebKit/Source/core/dom/Document.cpp#newcode6230 > ...
3 years, 8 months ago (2017-03-30 14:01:06 UTC) #37
emilio
So, I'm going to give up for now, because there are a few test failures ...
3 years, 8 months ago (2017-03-30 22:17:56 UTC) #50
rune
lgtm
3 years, 8 months ago (2017-04-03 11:41:22 UTC) #57
emilio
On 2017/04/03 11:41:22, rune wrote: > lgtm Thanks!
3 years, 8 months ago (2017-04-03 11:49:53 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2778153003/160001
3 years, 8 months ago (2017-04-03 11:50:10 UTC) #60
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 13:30:58 UTC) #63
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/3f2db89d6d660abe00760144e734...

Powered by Google App Engine
This is Rietveld 408576698