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

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

Issue 2853743002: Worklet: Introduce PaintWorkletGlobalScopeProxy (Closed)
Patch Set: address review comments Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3aba3e96ef9a171d5e87362b00b24c0c392ff2a2..fa235a8d0be44a78e26854bccbc68824cc3b71c2 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletTest.cpp
@@ -31,8 +31,9 @@ class PaintWorkletTest : public testing::Test {
};
TEST_F(PaintWorkletTest, GarbageCollectionOfCSSPaintDefinition) {
- PaintWorkletGlobalScope* global_scope =
- GetPaintWorklet()->GetWorkletGlobalScopeProxy();
+ PaintWorkletGlobalScopeProxy* proxy = PaintWorkletGlobalScopeProxy::From(
+ GetPaintWorklet()->GetWorkletGlobalScopeProxy());
+ PaintWorkletGlobalScope* global_scope = proxy->global_scope();
global_scope->ScriptController()->Evaluate(
ScriptSourceCode("registerPaint('foo', class { paint() { } });"));
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698