Tree-boundary crossing rules declared in upper trees should use different cascade order from rules declared in an lower trees.

When applying rules declared in upper trees to an element, upper rules should win.
when applying rules declared in lower trees, lower rules should win.

TEST=fast/dom/shadow/cascade-of-treeboundary-crossing-rules.html
BUG=339713

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166793 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove Unused measure DocumentCreateAttributeNS

Intent to Remove:
    https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/8p-gwWL4ypc

BUG=341830

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166794 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Multiple selectors setting relative font-weight names to an element result in a cumulative result

According to http://dev.w3.org/csswg/css-fonts/#font-weight-prop, the computed
weight of 'lighter' and 'bolder' are based on the inherited 'font-weight', so set
that inherited weight before calculating 'lighter' and 'bolder'.

BUG=322032

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166795 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use a StringImpl* instead of an AtomicString for NodeListAtomicNameCacheMap's key

Use a StringImpl* instead of an AtomicString for NodeListAtomicNameCacheMap's key.
This results in slightly better performance, mainly by avoiding refcounting
churn on the StringImpl.

This improves Dromaeo's dom-attr test score by ~5.5% on my Linux desktop.
When profiling Dromaeo's dom-attr, I noticed that
NodeListsNodeData::invalidateCaches() was hot (6.7% of time spent), this patch
makes it go down to 5.0%.

This patch minimizes the performance regression caused by r166263, which made
getElementsByTagName() return an HTMLCollection instead of a NodeList. According
to the profiler, the performance impact is mainly due to node lists invalidation,
which is now occuring more frequently because HTMLCollection has an id/name cache
and therefore needs to be invalidated on id/name attribute change.

R=abarth, adamk
BUG=340325

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166796 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add blink_web_test_support target to blink.gyp

That target will replace the blink_test_support target in
public/blink_test_runner.gyp. After this lands, chromium will be updated
to use this new target, and just after chromium switches to it we will
be able to remove blink_test_runner.gyp.

test_runner is a misleading name for this gyp because there is no
test_runner in Blink anymore, this was moved into
content/shell/renderer/test_runner in Chromium.

BUG=None
TEST=None
R=abarth@chromium.org

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

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