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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.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/PaintWorkletTest.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
index 7b973715e9c64d2d8e9b225d25dbad246d494292..9eca6b4554601b5d7871d0600564076333d94e08 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
@@ -11,9 +11,9 @@
#include "core/frame/LocalFrame.h"
#include "core/testing/DummyPageHolder.h"
#include "modules/csspaint/CSSPaintDefinition.h"
+#include "modules/csspaint/CSSPaintWorklet.h"
#include "modules/csspaint/PaintWorkletGlobalScope.h"
#include "modules/csspaint/PaintWorkletGlobalScopeProxy.h"
-#include "modules/csspaint/WindowPaintWorklet.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
@@ -25,8 +25,7 @@ class PaintWorkletTest : public testing::Test {
void SetUp() override { proxy_ = GetPaintWorklet()->CreateGlobalScope(); }
PaintWorklet* GetPaintWorklet() {
- return WindowPaintWorklet::From(*page_->GetFrame().DomWindow())
- .paintWorklet();
+ return CSSPaintWorklet::paintWorklet(page_->GetDocument());
}
PaintWorkletGlobalScopeProxy* GetProxy() {

Powered by Google App Engine
This is Rietveld 408576698