| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 { | 112 { |
| 113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 114 TestNodeV8Internal::hrefThrowsAttributeGetter(info); | 114 TestNodeV8Internal::hrefThrowsAttributeGetter(info); |
| 115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 116 } | 116 } |
| 117 | 117 |
| 118 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr
opertyCallbackInfo<void>& info) | 118 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr
opertyCallbackInfo<void>& info) |
| 119 { | 119 { |
| 120 TestNode* imp = V8TestNode::toNative(info.Holder()); | 120 TestNode* imp = V8TestNode::toNative(info.Holder()); |
| 121 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 121 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 122 ExceptionState es(info.GetIsolate()); | 122 ExceptionState es(info.Holder(), info.GetIsolate()); |
| 123 imp->setHrefThrows(cppValue, es); | 123 imp->setHrefThrows(cppValue, es); |
| 124 es.throwIfNeeded(); | 124 es.throwIfNeeded(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 127 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 128 { | 128 { |
| 129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 129 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 130 TestNodeV8Internal::hrefThrowsAttributeSetter(jsValue, info); | 130 TestNodeV8Internal::hrefThrowsAttributeSetter(jsValue, info); |
| 131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 131 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 132 } | 132 } |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &wrapperTypeInfo,
wrapper, isolate, WrapperConfiguration::Dependent); | 233 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &wrapperTypeInfo,
wrapper, isolate, WrapperConfiguration::Dependent); |
| 234 return wrapper; | 234 return wrapper; |
| 235 } | 235 } |
| 236 | 236 |
| 237 void V8TestNode::derefObject(void* object) | 237 void V8TestNode::derefObject(void* object) |
| 238 { | 238 { |
| 239 fromInternalPointer(object)->deref(); | 239 fromInternalPointer(object)->deref(); |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace WebCore | 242 } // namespace WebCore |
| OLD | NEW |