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

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

Issue 2628323002: Remove DOMWindowProperty from WindowPaintWorklet (Closed)
Patch Set: temp Created 3 years, 11 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/WindowPaintWorklet.h ('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/WindowPaintWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp b/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp
index d3dbc993cbbd5af58f45d073e372810aa6f4b919..63d4a4a9dd2ed95dcae31741720c37674aecd8c9 100644
--- a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.cpp
@@ -11,7 +11,7 @@
namespace blink {
WindowPaintWorklet::WindowPaintWorklet(LocalDOMWindow& window)
- : DOMWindowProperty(window.frame()) {}
+ : Supplement<LocalDOMWindow>(window) {}
const char* WindowPaintWorklet::supplementName() {
return "WindowPaintWorklet";
@@ -34,15 +34,14 @@ Worklet* WindowPaintWorklet::paintWorklet(DOMWindow& window) {
}
PaintWorklet* WindowPaintWorklet::paintWorklet() {
- if (!m_paintWorklet && frame())
- m_paintWorklet = PaintWorklet::create(frame());
+ if (!m_paintWorklet && host()->frame())
+ m_paintWorklet = PaintWorklet::create(host()->frame());
return m_paintWorklet.get();
}
DEFINE_TRACE(WindowPaintWorklet) {
visitor->trace(m_paintWorklet);
Supplement<LocalDOMWindow>::trace(visitor);
- DOMWindowProperty::trace(visitor);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698