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

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp

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/CSSPaintImageGeneratorImpl.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp b/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
index 66fa48ddb0e420116566fa6a02cbe0b930a24061..9a52050afdf4f85dfadf26b2925e239e20be992a 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp
@@ -7,8 +7,8 @@
#include "core/dom/Document.h"
#include "core/frame/LocalDOMWindow.h"
#include "modules/csspaint/CSSPaintDefinition.h"
+#include "modules/csspaint/CSSPaintWorklet.h"
#include "modules/csspaint/PaintWorklet.h"
-#include "modules/csspaint/WindowPaintWorklet.h"
#include "platform/graphics/Image.h"
namespace blink {
@@ -16,9 +16,7 @@ namespace blink {
CSSPaintImageGenerator* CSSPaintImageGeneratorImpl::Create(const String& name,
Document& document,
Observer* observer) {
- LocalDOMWindow* dom_window = document.domWindow();
- PaintWorklet* paint_worklet =
- WindowPaintWorklet::From(*dom_window).paintWorklet();
+ PaintWorklet* paint_worklet = CSSPaintWorklet::paintWorklet(document);
CSSPaintDefinition* paint_definition = paint_worklet->FindDefinition(name);
CSSPaintImageGeneratorImpl* generator;

Powered by Google App Engine
This is Rietveld 408576698