Support deeply nested uncommonAttributeSelectors.

Selectors containing attribute selectors are collected to the
StyleResolver and matched against elements to check if they can share
style with other elements.

The function looking for attributes only went one level down for
functional pseudo classes, which means selectors like:

  :-webkit-any(:not([attr]))

were ignored and caused style to be incorrectly shared between elements.

R=leviw@chromium.org
BUG=540856

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

Cr-Commit-Position: refs/heads/master@{#353019}
3 files changed