| Index: Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp b/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp
|
| index b38ea297fc01018111e06ec7d2dd82bc06d38a28..56f9f916b96c4083346f1ed20e9ad5c7e7cee3a9 100644
|
| --- a/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8HTMLCanvasElementCustom.cpp
|
| @@ -94,10 +94,10 @@ void V8HTMLCanvasElement::getContextMethodCustom(const v8::FunctionCallbackInfo<
|
| }
|
| if (result->is2d()) {
|
| v8::Handle<v8::Value> v8Result = toV8(static_cast<CanvasRenderingContext2D*>(result), args.Holder(), args.GetIsolate());
|
| - if (InspectorInstrumentation::canvasAgentEnabled(imp->document())) {
|
| + if (InspectorInstrumentation::canvasAgentEnabled(&imp->document())) {
|
| ScriptState* scriptState = ScriptState::forContext(v8::Context::GetCurrent());
|
| ScriptObject context(scriptState, v8::Handle<v8::Object>::Cast(v8Result));
|
| - ScriptObject wrapped = InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrumentation(imp->document(), context);
|
| + ScriptObject wrapped = InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrumentation(&imp->document(), context);
|
| if (!wrapped.hasNoValue()) {
|
| v8SetReturnValue(args, wrapped.v8Value());
|
| return;
|
| @@ -108,10 +108,10 @@ void V8HTMLCanvasElement::getContextMethodCustom(const v8::FunctionCallbackInfo<
|
| }
|
| if (result->is3d()) {
|
| v8::Handle<v8::Value> v8Result = toV8(static_cast<WebGLRenderingContext*>(result), args.Holder(), args.GetIsolate());
|
| - if (InspectorInstrumentation::canvasAgentEnabled(imp->document())) {
|
| + if (InspectorInstrumentation::canvasAgentEnabled(&imp->document())) {
|
| ScriptState* scriptState = ScriptState::forContext(v8::Context::GetCurrent());
|
| ScriptObject glContext(scriptState, v8::Handle<v8::Object>::Cast(v8Result));
|
| - ScriptObject wrapped = InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentation(imp->document(), glContext);
|
| + ScriptObject wrapped = InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentation(&imp->document(), glContext);
|
| if (!wrapped.hasNoValue()) {
|
| v8SetReturnValue(args, wrapped.v8Value());
|
| return;
|
|
|