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

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

Issue 2903703003: Use wrapper tracing for worklets. (Closed)
Patch Set: Separating in two CLs Created 3 years, 7 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/CSSPaintDefinition.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
index 7a6adbb497619999f9a7fc5cf5d095b1d48ca753..2765bde1e2c156fefa9edcbde3f4d982edf3ad4a 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
@@ -55,8 +55,9 @@ CSSPaintDefinition::CSSPaintDefinition(
Vector<CSSSyntaxDescriptor>& input_argument_types,
bool has_alpha)
: script_state_(script_state),
- constructor_(script_state->GetIsolate(), constructor),
- paint_(script_state->GetIsolate(), paint),
+ constructor_(script_state->GetIsolate(), this, constructor),
+ paint_(script_state->GetIsolate(), this, paint),
+ instance_(this),
did_call_constructor_(false),
has_alpha_(has_alpha) {
native_invalidation_properties_.swap(native_invalidation_properties);
@@ -145,4 +146,10 @@ void CSSPaintDefinition::MaybeCreatePaintInstance() {
did_call_constructor_ = true;
}
+DEFINE_TRACE_WRAPPERS(CSSPaintDefinition) {
+ visitor->TraceWrappers(constructor_.Cast<v8::Value>());
+ visitor->TraceWrappers(paint_.Cast<v8::Value>());
+ visitor->TraceWrappers(instance_.Cast<v8::Value>());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698