Hovered/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

Review URL: https://chromiumcodereview.appspot.com/18089009

git-svn-id: svn://svn.chromium.org/blink/trunk@153529 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: 391a8459724f180f24c0f7f0bce88d45064e69e6
  1. third_party/