Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.idl

Issue 2896773002: [DONT COMMIT] PaintWorklet: Move paintWorklet from 'window' to 'CSS' (Closed)
Patch Set: WIP Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.idl
diff --git a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.idl b/third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.idl
similarity index 53%
rename from third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.idl
rename to third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.idl
index 0e774ba93ad3e1c58543b915a9f7a154bf16a9d9..6e5d0a350a9cb944f218c481b15c46aa84b97a96 100644
--- a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.idl
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.idl
@@ -2,8 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// https://drafts.css-houdini.org/css-paint-api-1/#dom-css-paintworklet
+
[
RuntimeEnabled=CSSPaintAPI,
-] partial interface Window {
- readonly attribute Worklet paintWorklet;
+] partial interface CSS {
+ [CallWith=ScriptState] static readonly attribute Worklet paintWorklet;
};

Powered by Google App Engine
This is Rietveld 408576698