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 775169767355d1d4723ef39e694b5d40de8bb3d4..ca221f4eeb16016c698808cae9c26e2ad3454cdb 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 String nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) |
+ { |
+ V8StringResource<> stringValue(value); |
+ if (!stringValue.prepare(exceptionState)) |
+ return String(); |
+ return stringValue; |
+ } |
+}; |
+ |
+template<> |
struct NativeValueTraits<int> { |
static inline int nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) |
{ |