Bug 1476847 [wpt PR 12063] - [animationworklet] Move global from window to CSS namespace, a=testonly

Automatic update from web-platform-tests[animationworklet] Move global from window to CSS namespace

The interesting changes are in css_animation_worklet.idl
 - change AW to be static attribute on partial CSS interface.
 - explicitly asking binding to pass in ScriptState since
   window is no longer available. This means changing few function
   that used to take ExecutionContext to take ScriptState.

There rest are automated renames from
Window.animationWorklet => CSS.animationWorklet
WindowAnimationWorklet => CSSAnimationWorklet

Bug: 865017
Change-Id: Ic89dc50a027ca225f5e19d9d9dc6b38a8aef7a7d
Reviewed-on: https://chromium-review.googlesource.com/1142372
Commit-Queue: Majid Valipour <majidvp@chromium.org>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576555}

--

wpt-commits: dee866498441512a1ea1ff4c3a7d869c811fac3e
wpt-pr: 12063
This commit is contained in:
Majid Valipour 2018-07-25 17:48:01 +00:00 коммит произвёл James Graham
Родитель d249b15c82
Коммит ed77dfa1fe
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -632062,7 +632062,7 @@
"support"
],
"worklets/resources/worklet-test-utils.js": [
"2984dfb09c88d7a1831a60d62c64c9b2ec2f6673",
"9780327cac557554ac8f4568dcbf2ec1145229ef",
"support"
],
"x-frame-options/META.yml": [

Просмотреть файл

@ -1,7 +1,7 @@
// Returns a reference to a worklet object corresponding to a given type.
function get_worklet(type) {
if (type == 'animation')
return window.animationWorklet;
return CSS.animationWorklet;
if (type == 'layout')
return CSS.layoutWorklet;
if (type == 'paint')