Index: Source/WebCore/inspector/InspectorCanvasInstrumentation.h |
diff --git a/Source/WebCore/inspector/InspectorCanvasInstrumentation.h b/Source/WebCore/inspector/InspectorCanvasInstrumentation.h |
index aee1a822a77041566684a6892617c7a36251ebbe..ee750aa09ad76982a1c077b409cf10eed9210616 100644 |
--- a/Source/WebCore/inspector/InspectorCanvasInstrumentation.h |
+++ b/Source/WebCore/inspector/InspectorCanvasInstrumentation.h |
@@ -41,30 +41,20 @@ namespace WebCore { |
ScriptObject InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrumentation(Document* document, const ScriptObject& context) |
{ |
-#if ENABLE(INSPECTOR) |
if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocument(document)) { |
if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvasAgent()) |
return canvasAgent->wrapCanvas2DRenderingContextForInstrumentation(context); |
} |
-#else |
- UNUSED_PARAM(document); |
- UNUSED_PARAM(context); |
-#endif |
return ScriptObject(); |
} |
#if ENABLE(WEBGL) |
ScriptObject InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentation(Document* document, const ScriptObject& glContext) |
{ |
-#if ENABLE(INSPECTOR) |
if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocument(document)) { |
if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvasAgent()) |
return canvasAgent->wrapWebGLRenderingContextForInstrumentation(glContext); |
} |
-#else |
- UNUSED_PARAM(document); |
- UNUSED_PARAM(glContext); |
-#endif |
return ScriptObject(); |
} |
#endif // ENABLE(WEBGL) |