Make WebKit2 compile with ENABLE_JAVASCRIPT_DEBUGGER=0
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 16:57:45 +0000 (16:57 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Nov 2010 16:57:45 +0000 (16:57 +0000)
Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2010-11-22
Reviewed by Andreas Kling.

* WebProcess/WebPage/WebInspector.cpp: Add missing ENABLE(JAVASCRIPT_DEBUGGER) guards.
(WebKit::WebInspector::startJavaScriptDebugging):
(WebKit::WebInspector::stopJavaScriptDebugging):
(WebKit::WebInspector::startJavaScriptProfiling):
(WebKit::WebInspector::stopJavaScriptProfiling):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72532 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit2/ChangeLog
WebKit2/WebProcess/WebPage/WebInspector.cpp

index ee282af..57a90eb 100644 (file)
@@ -1,3 +1,15 @@
+2010-11-22  Kenneth Rohde Christiansen  <kenneth@webkit.org>
+
+        Reviewed by Andreas Kling.
+
+        Make WebKit2 compile with ENABLE_JAVASCRIPT_DEBUGGER=0
+
+        * WebProcess/WebPage/WebInspector.cpp: Add missing ENABLE(JAVASCRIPT_DEBUGGER) guards.
+        (WebKit::WebInspector::startJavaScriptDebugging):
+        (WebKit::WebInspector::stopJavaScriptDebugging):
+        (WebKit::WebInspector::startJavaScriptProfiling):
+        (WebKit::WebInspector::stopJavaScriptProfiling):
+
 2010-11-21  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Dan Bernstein.
index 028de08..a7374dd 100644 (file)
@@ -91,24 +91,32 @@ void WebInspector::showConsole()
 
 void WebInspector::startJavaScriptDebugging()
 {
+#if ENABLE(JAVASCRIPT_DEBUGGER)
     m_page->corePage()->inspectorController()->showPanel(InspectorController::ScriptsPanel);
     m_page->corePage()->inspectorController()->enableDebugger();
+#endif
 }
 
 void WebInspector::stopJavaScriptDebugging()
 {
+#if ENABLE(JAVASCRIPT_DEBUGGER)
     m_page->corePage()->inspectorController()->disableDebugger();
+#endif
 }
 
 void WebInspector::startJavaScriptProfiling()
 {
+#if ENABLE(JAVASCRIPT_DEBUGGER)
     m_page->corePage()->inspectorController()->startUserInitiatedProfiling();
+#endif
 }
 
 void WebInspector::stopJavaScriptProfiling()
 {
+#if ENABLE(JAVASCRIPT_DEBUGGER)
     m_page->corePage()->inspectorController()->stopUserInitiatedProfiling();
     m_page->corePage()->inspectorController()->showPanel(InspectorController::ProfilesPanel);
+#endif
 }
 
 void WebInspector::startPageProfiling()