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

Issue 2790133002: Allow display:contents elements in hover chain. (Closed)

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

Description

Allow display:contents elements in hover chain. Document::updateHoverActiveState walked the shadow-including ancestor path assuming no layoutObject meant display:none. Changed to walk flat tree ancestors checking for display:contents style in addition. ContainerNode::setHovered did not allow hover state to be changed when setting hovered=true on elements without a layout object. Changed to allow for display:contents here as well. R=ecobos@igalia.com BUG=705984 Review-Url: https://codereview.chromium.org/2790133002 Cr-Commit-Position: refs/heads/master@{#462199} Committed: https://chromium.googlesource.com/chromium/src/+/ad28574a6bf7b3ddce555b536c6047373b5727ab

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove unnecessary for-loop. #

Patch Set 3 : Null pointer check. #

Patch Set 4 : Don't hit documentElement with display:none. #

Patch Set 5 : . #

Patch Set 6 : Rebased #

Total comments: 2

Patch Set 7 : Fixed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -34 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/hover-display-contents.html View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ContainerNode.cpp View 2 chunks +9 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 4 chunks +18 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (23 generated)
rune
ptal
3 years, 8 months ago (2017-04-03 13:27:33 UTC) #3
emilio
https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode6231 third_party/WebKit/Source/core/dom/Document.cpp:6231: !toElement(newHoverNode)->hasDisplayContentsStyle())) { I believe that while (newHoverNode && !newHoverNode->isElementNode()) ...
3 years, 8 months ago (2017-04-03 14:48:14 UTC) #4
emilio
https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode6231 third_party/WebKit/Source/core/dom/Document.cpp:6231: !toElement(newHoverNode)->hasDisplayContentsStyle())) { On 2017/04/03 14:48:14, emilio wrote: > Is ...
3 years, 8 months ago (2017-04-03 14:51:08 UTC) #5
rune
https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode6231 third_party/WebKit/Source/core/dom/Document.cpp:6231: !toElement(newHoverNode)->hasDisplayContentsStyle())) { On 2017/04/03 14:48:14, emilio wrote: > I ...
3 years, 8 months ago (2017-04-04 08:42:19 UTC) #8
rune
3 years, 8 months ago (2017-04-04 08:53:33 UTC) #9
rune
On 2017/04/04 08:42:19, rune wrote: > https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode6231 > ...
3 years, 8 months ago (2017-04-04 12:54:31 UTC) #12
rune
On 2017/04/04 12:54:31, rune wrote: > On 2017/04/04 08:42:19, rune wrote: > > > https://codereview.chromium.org/2790133002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp ...
3 years, 8 months ago (2017-04-04 17:24:34 UTC) #15
emilio
On 2017/04/04 17:24:34, rune wrote: > On 2017/04/04 12:54:31, rune wrote: > > On 2017/04/04 ...
3 years, 8 months ago (2017-04-04 20:22:25 UTC) #16
rune
On 2017/04/04 20:22:25, emilio wrote: > On 2017/04/04 17:24:34, rune wrote: > > There are ...
3 years, 8 months ago (2017-04-04 20:46:47 UTC) #19
emilio
On 2017/04/04 20:46:47, rune wrote: > On 2017/04/04 20:22:25, emilio wrote: > > On 2017/04/04 ...
3 years, 8 months ago (2017-04-04 20:58:29 UTC) #20
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/2790133002/80001
3 years, 8 months ago (2017-04-05 05:02:53 UTC) #24
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-05 05:02:55 UTC) #26
rune
rego@ for owner
3 years, 8 months ago (2017-04-05 11:37:35 UTC) #30
Manuel Rego
LGTM. Some mini-nits on the test, feel free to ignore them. https://codereview.chromium.org/2790133002/diff/100001/third_party/WebKit/LayoutTests/fast/css/hover-display-contents.html File third_party/WebKit/LayoutTests/fast/css/hover-display-contents.html (right): ...
3 years, 8 months ago (2017-04-05 16:17:51 UTC) #33
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/2790133002/120001
3 years, 8 months ago (2017-04-05 18:29:40 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 20:23:30 UTC) #39
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ad28574a6bf7b3ddce555b536c60...

Powered by Google App Engine
This is Rietveld 408576698