| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007-2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2011 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return V8Node::toNative(v8::Handle<v8::Object>::Cast(value.v8Value())); | 70 return V8Node::toNative(v8::Handle<v8::Object>::Cast(value.v8Value())); |
| 71 } | 71 } |
| 72 | 72 |
| 73 ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* state, Node* node
) | 73 ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* state, Node* node
) |
| 74 { | 74 { |
| 75 v8::Isolate* isolate = state->isolate(); | 75 v8::Isolate* isolate = state->isolate(); |
| 76 v8::HandleScope scope(isolate); | 76 v8::HandleScope scope(isolate); |
| 77 v8::Local<v8::Context> context = state->context(); | 77 v8::Local<v8::Context> context = state->context(); |
| 78 v8::Context::Scope contextScope(context); | 78 v8::Context::Scope contextScope(context); |
| 79 | 79 |
| 80 ExceptionState exceptionState(isolate); | 80 ExceptionState exceptionState(v8::Handle<v8::Object>(), isolate); |
| 81 if (!BindingSecurity::shouldAllowAccessToNode(node, exceptionState)) | 81 if (!BindingSecurity::shouldAllowAccessToNode(node, exceptionState)) |
| 82 return ScriptValue(v8::Null(isolate), isolate); | 82 return ScriptValue(v8::Null(isolate), isolate); |
| 83 return ScriptValue(toV8(node, v8::Handle<v8::Object>(), isolate), isolate); | 83 return ScriptValue(toV8(node, v8::Handle<v8::Object>(), isolate), isolate); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void V8InjectedScriptHost::inspectedObjectMethodCustom(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 86 void V8InjectedScriptHost::inspectedObjectMethodCustom(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 87 { | 87 { |
| 88 if (info.Length() < 1) | 88 if (info.Length() < 1) |
| 89 return; | 89 return; |
| 90 | 90 |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 int lineNumber; | 435 int lineNumber; |
| 436 int columnNumber; | 436 int columnNumber; |
| 437 if (!getFunctionLocation(info, &scriptId, &lineNumber, &columnNumber)) | 437 if (!getFunctionLocation(info, &scriptId, &lineNumber, &columnNumber)) |
| 438 return; | 438 return; |
| 439 | 439 |
| 440 InjectedScriptHost* host = V8InjectedScriptHost::toNative(info.Holder()); | 440 InjectedScriptHost* host = V8InjectedScriptHost::toNative(info.Holder()); |
| 441 host->unmonitorFunction(scriptId, lineNumber, columnNumber); | 441 host->unmonitorFunction(scriptId, lineNumber, columnNumber); |
| 442 } | 442 } |
| 443 | 443 |
| 444 } // namespace WebCore | 444 } // namespace WebCore |
| OLD | NEW |