DescriptionDocument::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. #
Depends on Patchset: Messages
Total messages: 17 (11 generated)
|