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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.h

Issue 2024073002: Add callbacks to ScriptCustomElementDefinition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tryCatch Created 4 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/bindings/core/v8/V8Binding.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
index 193079c35569586ef22902dd8fbaa4b3ba997b78..13a9fdc71cd3bdd388ad33aaa8cc80c48c256297 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
@@ -775,6 +775,17 @@ struct NativeValueTraits<String> {
};
template<>
+struct NativeValueTraits<AtomicString> {
+ static inline AtomicString nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState)
+ {
+ V8StringResource<> stringValue(value);
+ if (!stringValue.prepare(exceptionState))
+ return AtomicString();
+ return stringValue;
+ }
+};
+
+template<>
struct NativeValueTraits<int> {
static inline int nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState)
{

Powered by Google App Engine
This is Rietveld 408576698