ElementRuleCollector::hasAnyMatchingRules should not check a given element treescope.

hasAnyMatchingRules is used by style sharing (invoked from
StyleResolver::styleSharingCandidateMatchesRuleSet).
Style sharing uses only one RuleFeatureSet. So the RuleFeatureSet doesn't
have any scope information, i.e. whether an original rule is declared
in a style in a shadow tree or not.

However currently hasAnyMatchingRules checks a given element's tree scope and
the tree scope's apply-author-styles. So if

- the given element is in a shadow tree, and

- the shadow tree's apply-author-styles is false

hasAnyMathingRules does'nt see any tag/class/id rules in a given RuleSet.

This is a problem.

BUG=238382
R=morrita@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150077 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up createDOM() utility function in shadow-dom.js

BUG=None
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150078 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Moved ShadowDOM-related files into core/dom/shadow.

Moved ShadowDOM related file to new directory and
added a WATCHLIST entry for that.
Original file locations are nothing but historical accident and
grouping using core/shadow/ directory makes more sense.

BUG=none
TEST=none
R=dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150079 bbb929c8-8fbe-4397-9dbb-9b2b20218538