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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.cpp

Issue 1839913002: Implement PaintWorkletGlobalScope#registerPaint() for the CSS Paint API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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/bindings/core/v8/CSSPaintBinding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.cpp b/third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..0dffa4ac7e54c1c6e117f8fac66640c1d8121735
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/core/v8/CSSPaintBinding.cpp
@@ -0,0 +1,26 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "bindings/core/v8/CSSPaintBinding.h"
+
+namespace blink {
+
+PassOwnPtr<CSSPaintBinding> CSSPaintBinding::create(v8::Isolate* isolate, v8::Local<v8::Function> constructor, v8::Local<v8::Function> paint)
+{
+ return adoptPtr(new CSSPaintBinding(isolate, constructor, paint));
+}
+
+CSSPaintBinding::CSSPaintBinding(v8::Isolate* isolate, v8::Local<v8::Function> constructor, v8::Local<v8::Function> paint)
+ : m_constructor(isolate, constructor)
+ , m_paint(isolate, paint)
+{
+ ASSERT(!m_constructor.isEmpty());
+ ASSERT(!m_paint.isEmpty());
+}
+
+CSSPaintBinding::~CSSPaintBinding()
+{
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698