DescriptionHovered/active/focused nodes will never share style with siblings/cousins.
For any given hovered/active node at a given time, other hovered/active nodes
are either ancestors or descendants of that node. Since style sharing is
looking at siblings and cousins, hovered/active nodes will never share style.
Similarly, there's always a single focused element in a document, hence it
will never share style with another node.
This change bails out early for style sharing in those cases.
BUG=255189
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153529
Patch Set 1 #
Total comments: 1
Patch Set 2 : Rebased on top of recent master #Patch Set 3 : Fixed indentation and review issue in test #
Messages
Total messages: 10 (0 generated)
|