| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 126 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 127 { | 127 { |
| 128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 128 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 129 TestNodeV8Internal::hrefThrowsAttributeSetter(jsValue, info); | 129 TestNodeV8Internal::hrefThrowsAttributeSetter(jsValue, info); |
| 130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 130 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 131 } | 131 } |
| 132 | 132 |
| 133 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 133 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 134 { | 134 { |
| 135 | |
| 136 RefPtr<TestNode> impl = TestNode::create(); | 135 RefPtr<TestNode> impl = TestNode::create(); |
| 137 v8::Handle<v8::Object> wrapper = info.Holder(); | 136 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 138 | 137 |
| 139 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl.release(), &V8Test
Node::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Depende
nt); | 138 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl.release(), &V8Test
Node::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Depende
nt); |
| 140 info.GetReturnValue().Set(wrapper); | 139 info.GetReturnValue().Set(wrapper); |
| 141 } | 140 } |
| 142 | 141 |
| 143 } // namespace TestNodeV8Internal | 142 } // namespace TestNodeV8Internal |
| 144 | 143 |
| 145 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] =
{ | 144 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] =
{ |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 fromInternalPointer(object)->deref(); | 242 fromInternalPointer(object)->deref(); |
| 244 } | 243 } |
| 245 | 244 |
| 246 template<> | 245 template<> |
| 247 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) | 246 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) |
| 248 { | 247 { |
| 249 return toV8(impl, creationContext, isolate); | 248 return toV8(impl, creationContext, isolate); |
| 250 } | 249 } |
| 251 | 250 |
| 252 } // namespace WebCore | 251 } // namespace WebCore |
| OLD | NEW |