Re-land r161702 after fixing the performance regression.

The previous codereview is: https://codereview.chromium.org/59903015.
The performance regression is: http://code.google.com/p/chromium/issues/detail?id=318057.

To fix the performance regression, I've updated the distribution resolution algorithm in the Shadow DOM
specification.

The spec change is:
  -  [Shadow]: Optimize the distribution resolution algorithm.
     https://github.com/w3c/webcomponents/commit/2b051a63c4c95edd3ab337bf49a67d12e4cd2061

This patch reflects the change of the spec. Now this patch shouldn't sacrifice the performance significantly in theory.


The followings are the result of performance tests on my local machine:

- /ShadowDOM/ChangingClassName.html: 3.76% worse
- /ShadowDOM/ChangingSelect.html: 5.54% worse
- /ShadowDOM/ChangingSelectWithoutShadow.html: 3.93% worse
- /ShadowDOM/ContentReprojection.html: 3.18% better
- /ShadowDOM/MultipleInsertionPoints.html: 3.98% Better
- /ShadowDOM/ShadowReprojection.html: 2.9% Better
- /ShadowDOM/SmallDistributionWithLayout.html: 4.53% Better

If you find any performance regression other that those tests, please file a bug.

BUG=316513, 318057

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

git-svn-id: svn://svn.chromium.org/blink/trunk@162066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 162050 "Rename es => exceptionState in other than bindings/"

2 files to check:
Source/core/xml/XPathExpression.cpp
Source/web/SharedWorkerRepositoryClientImpl.cpp

> Rename es => exceptionState in other than bindings/
> 
> Mechanical renaming, via sed replace:
> cd "$BLINK_DIR/Source" && \
> sed -ri 's/\<es\>/exceptionState/g' \
>     $(git grep -w es | grep -v '^bindings')
> 
> AFAICT there are no uses of 'es' in URLs or documentation which are
> affected by this, unlike for bindings/, where there are links to Web IDL
> spec using 'es-...'.
> 
> Followup to:
> Rename es => exceptionState in bindings/
> https://codereview.chromium.org/68893018/
> 
> R=haraken@chromium.org
> TBR=abarth
> 
> Review URL: https://codereview.chromium.org/72363002

TBR=nbarth@chromium.org

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

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