| Index: third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
|
| diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
|
| index ec7cf2f35b4d90be6fbf72dc013cc896ffd2682c..b490dc108018908acad1ad51b6d79102ffb76a86 100644
|
| --- a/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
|
| +++ b/third_party/WebKit/Source/modules/csspaint/PaintWorklet.h
|
| @@ -18,10 +18,13 @@ class CSSPaintImageGeneratorImpl;
|
|
|
| // Manages a paint worklet:
|
| // https://drafts.css-houdini.org/css-paint-api/#dom-css-paintworklet
|
| -class MODULES_EXPORT PaintWorklet final : public Worklet {
|
| +class MODULES_EXPORT PaintWorklet final : public Worklet,
|
| + public Supplement<LocalDOMWindow> {
|
| + USING_GARBAGE_COLLECTED_MIXIN(PaintWorklet);
|
| WTF_MAKE_NONCOPYABLE(PaintWorklet);
|
|
|
| public:
|
| + static PaintWorklet* From(LocalDOMWindow&);
|
| static PaintWorklet* Create(LocalFrame*);
|
| ~PaintWorklet() override;
|
|
|
| @@ -44,6 +47,8 @@ class MODULES_EXPORT PaintWorklet final : public Worklet {
|
| // TODO(style-dev): Implement the "document paint definition" concept:
|
| // https://drafts.css-houdini.org/css-paint-api/#document-paint-definition
|
| // (https://crbug.com/578252)
|
| +
|
| + static const char* SupplementName();
|
| };
|
|
|
| } // namespace blink
|
|
|