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

Issue 2797173002: Document::hoverNode() is always an Element. (Closed)

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

Description

Document::hoverNode() is always an Element. Make hoverNode(), hoverElement() and only mark Elements as hovered using FlatTreeTraversal::parentElement() instead of parent(). This means we can get rid of some checks for nodes being text or element nodes. It means we also only mark elements as being hovered in the flat tree ancestor chain. R=ecobos@igalia.com Review-Url: https://codereview.chromium.org/2797173002 Cr-Commit-Position: refs/heads/master@{#462257} Committed: https://chromium.googlesource.com/chromium/src/+/5a7bb5e2821e5be66828f155ab71fb2c2738c7cb

Patch Set 1 #

Total comments: 2

Patch Set 2 : Documentation hovered node -> hovered element. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -99 lines) Patch
M third_party/WebKit/Source/core/dom/Document.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 9 chunks +56 lines, -70 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 4 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 12 chunks +12 lines, -12 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (11 generated)
rune
3 years, 8 months ago (2017-04-05 11:38:13 UTC) #8
emilio
On 2017/04/05 11:38:13, rune wrote: lgtm (though rego would need to sign-off too I guess). ...
3 years, 8 months ago (2017-04-05 12:38:50 UTC) #9
Manuel Rego
lgtm https://codereview.chromium.org/2797173002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2797173002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1502 third_party/WebKit/Source/core/input/EventHandler.cpp:1502: // we should clear the old hovered node ...
3 years, 8 months ago (2017-04-05 15:16:13 UTC) #10
rune
https://codereview.chromium.org/2797173002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/2797173002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode1502 third_party/WebKit/Source/core/input/EventHandler.cpp:1502: // we should clear the old hovered node from ...
3 years, 8 months ago (2017-04-05 19:43:28 UTC) #11
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/2797173002/20001
3 years, 8 months ago (2017-04-05 20:27:02 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 23:08:48 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5a7bb5e2821e5be66828f155ab71...

Powered by Google App Engine
This is Rietveld 408576698