Let MediaError.MEDIA_ERR_ENCRYPTED depend on EncryptedMediaAnyVersion

Also fix the indentation.

BUG=310641

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160808 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert r158626 "Avoid copying a hash table bucket when inserting..."

The change causes crashes on Linux ASAN bots on
virtual/softwarecompositing/iframes/invisible* tests. Reverting fixed
the failures locally.

BUG=310975
TBR=dglazkov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160809 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: fast/text/international/text-combine-image-test.html is flaky

BUG=312606
TBR=dglazkov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160812 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: report layers in layerTreeDidChange event, drop LayerAgent.getLayers()

Once layer tree gets updated lazily, building it at arbitrary moments of time
per front-end request may become complicated. So let's push it in layerTreeDidChange
instead. Also, do not re-enable LayerTreeAgent automatically upon navigation, let
front-end request this explicitly after it gets document from the DOMAgent.

BUG=
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160813 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Gardening: canvas-blending-pattern-over-gradient.html is flaky

BUG=312613
TBR=dglazkov

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160814 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Should use !isHostInItsShadowTree with hasFastCheckableSelector.

If a given element is a shadow host, we cannot use SelectorCheckerFastPath.
So the condition should be checked when rules were added to RuleSets.

TEST=all layout test should pass.

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

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

Spec: http://whatwg.org/html#windoweventhandlers

This is mostly refactoring, but there are Web-facing changes for
onmessage, onpageshow and onpagehide, which were not correctly handled.

Drop the "Not implemented yet" blocks. onafterprint and onbeforeprint
are listed in WindowEventHandlers.idl, while onredo and onundo are
not in the spec.

BUG=305112

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

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