:host-context selectors may affect insertion point descendants.

At insertion points, we schedule style recalcs for inserted nodes when we
have a StyleRecalcChange at the insertion point's parent. One of the reasons
is that :host-context selectors which affect inserted nodes may rely on
matching nodes which are not ascendants of the inserted nodes in the dom
used for selector matching.

We did use a LocalStyleChange for the inserted nodes, but these selectors
may affect any node in the inserted node's subtree. Hence, we start using
SubtreeStyleChange instead.

R=esprehn@chromium.org,dglazkov@chromium.org
BUG=381020

Review URL: https://codereview.chromium.org/317953002

git-svn-id: svn://svn.chromium.org/blink/trunk@175636 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: 66953d18649644ce9dcc5aa1220327c252af360b
  1. third_party/