Changeset 163024 in webkit
- Timestamp:
- Jan 29, 2014 10:31:56 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r162782 r163024 1 2014-01-29 Csaba Osztrogonác <ossy@webkit.org> 2 3 Remove ENABLE(JAVASCRIPT_DEBUGGER) guards 4 https://bugs.webkit.org/show_bug.cgi?id=127840 5 6 Reviewed by Mark Lam. 7 8 * Source/cmake/WebKitFeatures.cmake: 9 * Source/cmakeconfig.h.cmake: 10 1 11 2014-01-25 Darin Adler <darin@apple.com> 2 12 -
trunk/Source/JavaScriptCore/ChangeLog
r162998 r163024 1 2014-01-29 Csaba Osztrogonác <ossy@webkit.org> 2 3 Remove ENABLE(JAVASCRIPT_DEBUGGER) guards 4 https://bugs.webkit.org/show_bug.cgi?id=127840 5 6 Reviewed by Mark Lam. 7 8 * inspector/scripts/CodeGeneratorInspector.py: 9 1 10 2014-01-28 Commit Queue <commit-queue@webkit.org> 2 11 -
trunk/Source/JavaScriptCore/inspector/scripts/CodeGeneratorInspector.py
r162158 r163024 45 45 DOMAIN_DEFINE_NAME_MAP = { 46 46 "Database": "SQL_DATABASE", 47 "Debugger": "JAVASCRIPT_DEBUGGER",48 "DOMDebugger": "JAVASCRIPT_DEBUGGER",49 47 "IndexedDB": "INDEXED_DATABASE", 50 "Profiler": "JAVASCRIPT_DEBUGGER",51 48 } 52 49 -
trunk/Source/WTF/ChangeLog
r162939 r163024 1 2014-01-29 Csaba Osztrogonác <ossy@webkit.org> 2 3 Remove ENABLE(JAVASCRIPT_DEBUGGER) guards 4 https://bugs.webkit.org/show_bug.cgi?id=127840 5 6 Reviewed by Mark Lam. 7 8 * wtf/FeatureDefines.h: 9 1 10 2014-01-28 Anders Carlsson <andersca@apple.com> 2 11 -
trunk/Source/WTF/wtf/FeatureDefines.h
r162795 r163024 575 575 #endif 576 576 577 #if !defined(ENABLE_JAVASCRIPT_DEBUGGER)578 #define ENABLE_JAVASCRIPT_DEBUGGER 1579 #endif580 581 577 #if !defined(ENABLE_JAVASCRIPT_I18N_API) 582 578 #define ENABLE_JAVASCRIPT_I18N_API 0 -
trunk/Source/WebCore/ChangeLog
r163023 r163024 1 2014-01-29 Csaba Osztrogonác <ossy@webkit.org> 2 3 Remove ENABLE(JAVASCRIPT_DEBUGGER) guards 4 https://bugs.webkit.org/show_bug.cgi?id=127840 5 6 Reviewed by Mark Lam. 7 8 * bindings/js/JSDOMWindowBase.cpp: 9 (WebCore::JSDOMWindowBase::supportsProfiling): 10 (WebCore::JSDOMWindowBase::supportsRichSourceInfo): 11 * bindings/js/PageScriptDebugServer.cpp: 12 * bindings/js/PageScriptDebugServer.h: 13 * bindings/js/ScriptProfile.cpp: 14 * bindings/js/ScriptProfile.h: 15 * bindings/js/ScriptProfileNode.h: 16 * bindings/js/ScriptProfiler.cpp: 17 * bindings/js/ScriptProfiler.h: 18 * bindings/js/WorkerScriptDebugServer.cpp: 19 * bindings/js/WorkerScriptDebugServer.h: 20 * inspector/InspectorConsoleAgent.h: 21 * inspector/InspectorConsoleInstrumentation.h: 22 (WebCore::InspectorInstrumentation::getCurrentUserInitiatedProfileName): 23 * inspector/InspectorController.cpp: 24 (WebCore::InspectorController::InspectorController): 25 (WebCore::InspectorController::resume): 26 * inspector/InspectorController.h: 27 * inspector/InspectorDOMDebuggerAgent.cpp: 28 * inspector/InspectorDOMDebuggerAgent.h: 29 * inspector/InspectorHeapProfilerAgent.cpp: 30 * inspector/InspectorHeapProfilerAgent.h: 31 * inspector/InspectorInstrumentation.cpp: 32 (WebCore::InspectorInstrumentation::didClearWindowObjectInWorldImpl): 33 (WebCore::InspectorInstrumentation::isDebuggerPausedImpl): 34 (WebCore::InspectorInstrumentation::willInsertDOMNodeImpl): 35 (WebCore::InspectorInstrumentation::didInsertDOMNodeImpl): 36 (WebCore::InspectorInstrumentation::willRemoveDOMNodeImpl): 37 (WebCore::InspectorInstrumentation::didRemoveDOMNodeImpl): 38 (WebCore::InspectorInstrumentation::willModifyDOMAttrImpl): 39 (WebCore::InspectorInstrumentation::didInvalidateStyleAttrImpl): 40 (WebCore::InspectorInstrumentation::willSendXMLHttpRequestImpl): 41 (WebCore::InspectorInstrumentation::scriptExecutionBlockedByCSPImpl): 42 (WebCore::InspectorInstrumentation::didCommitLoadImpl): 43 (WebCore::InspectorInstrumentation::addMessageToConsoleImpl): 44 (WebCore::InspectorInstrumentation::profilerEnabledImpl): 45 (WebCore::InspectorInstrumentation::willEvaluateWorkerScript): 46 (WebCore::InspectorInstrumentation::pauseOnNativeEventIfNeeded): 47 (WebCore::InspectorInstrumentation::cancelPauseOnNativeEvent): 48 * inspector/InspectorInstrumentation.h: 49 * inspector/InspectorProfilerAgent.cpp: 50 * inspector/InspectorProfilerAgent.h: 51 * inspector/InstrumentingAgents.cpp: 52 (WebCore::InstrumentingAgents::InstrumentingAgents): 53 (WebCore::InstrumentingAgents::reset): 54 * inspector/InstrumentingAgents.h: 55 * inspector/PageDebuggerAgent.cpp: 56 * inspector/PageDebuggerAgent.h: 57 * inspector/ScriptProfile.idl: 58 * inspector/ScriptProfileNode.idl: 59 * inspector/WebDebuggerAgent.cpp: 60 * inspector/WebDebuggerAgent.h: 61 * inspector/WorkerDebuggerAgent.cpp: 62 * inspector/WorkerDebuggerAgent.h: 63 * inspector/WorkerInspectorController.cpp: 64 (WebCore::WorkerInspectorController::WorkerInspectorController): 65 (WebCore::WorkerInspectorController::resume): 66 * inspector/WorkerInspectorController.h: 67 * inspector/WorkerRuntimeAgent.cpp: 68 (WebCore::WorkerRuntimeAgent::pauseWorkerGlobalScope): 69 * inspector/WorkerRuntimeAgent.h: 70 * loader/FrameLoader.cpp: 71 (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): 72 * page/Console.cpp: 73 * page/Console.h: 74 * page/Console.idl: 75 * testing/Internals.cpp: 76 (WebCore::Internals::resetToConsistentState): 77 * workers/WorkerMessagingProxy.cpp: 78 (WebCore::connectToWorkerGlobalScopeInspectorTask): 79 (WebCore::WorkerMessagingProxy::connectToInspector): 80 (WebCore::disconnectFromWorkerGlobalScopeInspectorTask): 81 (WebCore::WorkerMessagingProxy::disconnectFromInspector): 82 (WebCore::dispatchOnInspectorBackendTask): 83 (WebCore::WorkerMessagingProxy::sendMessageToInspector): 84 1 85 2014-01-29 Eric Carlson <eric.carlson@apple.com> 2 86 -
trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp
r162264 r163024 104 104 bool JSDOMWindowBase::supportsProfiling(const JSGlobalObject* object) 105 105 { 106 #if !ENABLE( JAVASCRIPT_DEBUGGER) || !ENABLE(INSPECTOR)106 #if !ENABLE(INSPECTOR) 107 107 UNUSED_PARAM(object); 108 108 return false; … … 127 127 bool JSDOMWindowBase::supportsRichSourceInfo(const JSGlobalObject* object) 128 128 { 129 #if !ENABLE( JAVASCRIPT_DEBUGGER) || !ENABLE(INSPECTOR)129 #if !ENABLE(INSPECTOR) 130 130 UNUSED_PARAM(object); 131 131 return false; -
trunk/Source/WebCore/bindings/js/PageScriptDebugServer.cpp
r162757 r163024 33 33 #include "PageScriptDebugServer.h" 34 34 35 #if ENABLE(JAVASCRIPT_DEBUGGER)36 37 35 #include "Document.h" 38 36 #include "EventLoop.h" … … 274 272 275 273 } // namespace WebCore 276 277 #endif // ENABLE(JAVASCRIPT_DEBUGGER) -
trunk/Source/WebCore/bindings/js/PageScriptDebugServer.h
r162757 r163024 31 31 #ifndef PageScriptDebugServer_h 32 32 #define PageScriptDebugServer_h 33 34 #if ENABLE(JAVASCRIPT_DEBUGGER)35 33 36 34 #include <inspector/ScriptDebugServer.h> … … 82 80 } // namespace WebCore 83 81 84 #endif // ENABLE(JAVASCRIPT_DEBUGGER)85 86 82 #endif // PageScriptDebugServer_h -
trunk/Source/WebCore/bindings/js/ScriptProfile.cpp
r162796 r163024 26 26 27 27 #include "config.h" 28 29 #if ENABLE(JAVASCRIPT_DEBUGGER)30 28 31 29 #include "ScriptProfile.h" … … 108 106 109 107 } // namespace WebCore 110 111 #endif // ENABLE(JAVASCRIPT_DEBUGGER) -
trunk/Source/WebCore/bindings/js/ScriptProfile.h
r160457 r163024 28 28 #define ScriptProfile_h 29 29 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 #include "ScriptProfileNode.h" 32 31 #include <wtf/Forward.h> … … 69 68 } // namespace WebCore 70 69 71 #endif // ENABLE(JAVASCRIPT_DEBUGGER)72 73 70 #endif // ScriptProfile_h -
trunk/Source/WebCore/bindings/js/ScriptProfileNode.h
r95901 r163024 28 28 #define ScriptProfileNode_h 29 29 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 #include <profiler/ProfileNode.h> 32 31 … … 37 36 } // namespace WebCore 38 37 39 #endif // ENABLE(JAVASCRIPT_DEBUGGER)40 41 38 #endif // ScriptProfileNode_h -
trunk/Source/WebCore/bindings/js/ScriptProfiler.cpp
r160457 r163024 26 26 27 27 #include "config.h" 28 29 #if ENABLE(JAVASCRIPT_DEBUGGER)30 28 31 29 #include "ScriptProfiler.h" … … 93 91 94 92 } // namespace WebCore 95 96 #endif // ENABLE(JAVASCRIPT_DEBUGGER) -
trunk/Source/WebCore/bindings/js/ScriptProfiler.h
r161691 r163024 27 27 #ifndef ScriptProfiler_h 28 28 #define ScriptProfiler_h 29 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 29 32 30 #include "ScriptHeapSnapshot.h" … … 75 73 } // namespace WebCore 76 74 77 #endif // ENABLE(JAVASCRIPT_DEBUGGER)78 79 75 #endif // ScriptProfiler_h -
trunk/Source/WebCore/bindings/js/WorkerScriptDebugServer.cpp
r162757 r163024 32 32 #include "config.h" 33 33 #include "WorkerScriptDebugServer.h" 34 35 #if ENABLE(JAVASCRIPT_DEBUGGER)36 34 37 35 #include "JSDOMBinding.h" … … 112 110 113 111 } // namespace WebCore 114 115 #endif // ENABLE(JAVASCRIPT_DEBUGGER) -
trunk/Source/WebCore/bindings/js/WorkerScriptDebugServer.h
r162757 r163024 31 31 #ifndef WorkerScriptDebugServer_h 32 32 #define WorkerScriptDebugServer_h 33 34 #if ENABLE(JAVASCRIPT_DEBUGGER)35 33 36 34 #include <inspector/ScriptDebugServer.h> … … 68 66 } // namespace WebCore 69 67 70 #endif // ENABLE(JAVASCRIPT_DEBUGGER)71 72 68 #endif // WorkerScriptDebugServer_h -
trunk/Source/WebCore/inspector/InspectorConsoleAgent.h
r162676 r163024 86 86 void didReceiveResponse(unsigned long requestIdentifier, const ResourceResponse&); 87 87 void didFailLoading(unsigned long requestIdentifier, const ResourceError&); 88 #if ENABLE(JAVASCRIPT_DEBUGGER)89 88 void addProfileFinishedMessageToConsole(PassRefPtr<ScriptProfile>, unsigned lineNumber, unsigned columnNumber, const String& sourceURL); 90 89 void addStartProfilingMessageToConsole(const String& title, unsigned lineNumber, unsigned columnNumber, const String& sourceURL); 91 #endif92 90 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) override; 93 91 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; -
trunk/Source/WebCore/inspector/InspectorConsoleInstrumentation.h
r159679 r163024 174 174 } 175 175 176 #if ENABLE(JAVASCRIPT_DEBUGGER)177 176 inline void InspectorInstrumentation::addStartProfilingMessageToConsole(Page* page, const String& title, unsigned lineNumber, unsigned columnNumber, const String& sourceURL) 178 177 { … … 223 222 return ""; 224 223 } 225 #endif226 224 227 225 } // namespace WebCore -
trunk/Source/WebCore/inspector/InspectorController.cpp
r162799 r163024 146 146 m_agents.append(std::move(consoleAgentPtr)); 147 147 148 #if ENABLE(JAVASCRIPT_DEBUGGER)149 148 auto debuggerAgentPtr = std::make_unique<PageDebuggerAgent>(m_injectedScriptManager.get(), m_instrumentingAgents.get(), pageAgent, m_overlay.get()); 150 149 m_debuggerAgent = debuggerAgentPtr.get(); … … 160 159 161 160 m_agents.append(std::make_unique<InspectorHeapProfilerAgent>(m_instrumentingAgents.get(), m_injectedScriptManager.get())); 162 #endif163 161 164 162 m_agents.append(std::make_unique<InspectorWorkerAgent>(m_instrumentingAgents.get())); … … 184 182 } 185 183 186 #if ENABLE(JAVASCRIPT_DEBUGGER)187 184 runtimeAgent->setScriptDebugServer(&m_debuggerAgent->scriptDebugServer()); 188 #endif189 185 } 190 186 … … 391 387 } 392 388 393 #if ENABLE(JAVASCRIPT_DEBUGGER)394 389 bool InspectorController::profilerEnabled() const 395 390 { … … 413 408 } 414 409 } 415 #endif416 410 417 411 void InspectorController::setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize, int maximumSingleResourceContentSize) -
trunk/Source/WebCore/inspector/InspectorController.h
r162799 r163024 120 120 void evaluateForTestInFrontend(long callId, const String& script); 121 121 122 #if ENABLE(JAVASCRIPT_DEBUGGER)123 122 bool profilerEnabled() const; 124 123 void setProfilerEnabled(bool); 125 124 126 125 void resume(); 127 #endif128 126 129 127 void setResourcesDataSizeLimitsFromInternals(int maximumResourcesContentSize, int maximumSingleResourceContentSize); … … 156 154 InspectorPageAgent* m_pageAgent; 157 155 InspectorMemoryAgent* m_memoryAgent; 158 #if ENABLE(JAVASCRIPT_DEBUGGER)159 156 Inspector::InspectorDebuggerAgent* m_debuggerAgent; 160 157 InspectorDOMDebuggerAgent* m_domDebuggerAgent; 161 158 InspectorProfilerAgent* m_profilerAgent; 162 #endif163 159 164 160 RefPtr<Inspector::InspectorBackendDispatcher> m_inspectorBackendDispatcher; -
trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.cpp
r162799 r163024 32 32 #include "InspectorDOMDebuggerAgent.h" 33 33 34 #if ENABLE(INSPECTOR) && ENABLE(JAVASCRIPT_DEBUGGER)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "HTMLElement.h" … … 427 427 } // namespace WebCore 428 428 429 #endif // ENABLE(INSPECTOR) && ENABLE(JAVASCRIPT_DEBUGGER)429 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h
r162799 r163024 32 32 #define InspectorDOMDebuggerAgent_h 33 33 34 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "InspectorWebAgentBase.h" … … 114 114 } // namespace WebCore 115 115 116 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)116 #endif // ENABLE(INSPECTOR) 117 117 118 118 #endif // !defined(InspectorDOMDebuggerAgent_h) -
trunk/Source/WebCore/inspector/InspectorHeapProfilerAgent.cpp
r162676 r163024 32 32 #include "InspectorHeapProfilerAgent.h" 33 33 34 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "CommandLineAPIHost.h" … … 231 231 } // namespace WebCore 232 232 233 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)233 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebCore/inspector/InspectorHeapProfilerAgent.h
r162676 r163024 32 32 #define InspectorHeapProfilerAgent_h 33 33 34 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "InspectorWebAgentBase.h" … … 92 92 } // namespace WebCore 93 93 94 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)94 #endif // ENABLE(INSPECTOR) 95 95 96 96 #endif // !defined(InspectorHeapProfilerAgent_h) -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r162799 r163024 109 109 if (pageAgent) 110 110 pageAgent->didClearWindowObjectInWorld(frame, world); 111 #if ENABLE(JAVASCRIPT_DEBUGGER)112 111 if (PageDebuggerAgent* debuggerAgent = instrumentingAgents->pageDebuggerAgent()) { 113 112 if (pageAgent && &world == &mainThreadNormalWorld() && frame == pageAgent->mainFrame()) 114 113 debuggerAgent->didClearMainFrameWindowObject(); 115 114 } 116 #endif117 115 if (PageRuntimeAgent* pageRuntimeAgent = instrumentingAgents->pageRuntimeAgent()) { 118 116 if (&world == &mainThreadNormalWorld()) … … 123 121 bool InspectorInstrumentation::isDebuggerPausedImpl(InstrumentingAgents* instrumentingAgents) 124 122 { 125 #if ENABLE(JAVASCRIPT_DEBUGGER)126 123 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDebuggerAgent()) 127 124 return debuggerAgent->isPaused(); 128 #endif129 125 return false; 130 126 } … … 132 128 void InspectorInstrumentation::willInsertDOMNodeImpl(InstrumentingAgents* instrumentingAgents, Node* parent) 133 129 { 134 #if ENABLE(JAVASCRIPT_DEBUGGER)135 130 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 136 131 domDebuggerAgent->willInsertDOMNode(parent); 137 #endif138 132 } 139 133 … … 142 136 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent()) 143 137 domAgent->didInsertDOMNode(node); 144 #if ENABLE(JAVASCRIPT_DEBUGGER)145 138 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 146 139 domDebuggerAgent->didInsertDOMNode(node); 147 #endif148 140 } 149 141 150 142 void InspectorInstrumentation::willRemoveDOMNodeImpl(InstrumentingAgents* instrumentingAgents, Node* node) 151 143 { 152 #if ENABLE(JAVASCRIPT_DEBUGGER)153 144 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 154 145 domDebuggerAgent->willRemoveDOMNode(node); 155 #endif156 146 } 157 147 158 148 void InspectorInstrumentation::didRemoveDOMNodeImpl(InstrumentingAgents* instrumentingAgents, Node* node) 159 149 { 160 #if ENABLE(JAVASCRIPT_DEBUGGER)161 150 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 162 151 domDebuggerAgent->didRemoveDOMNode(node); 163 #endif164 152 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent()) 165 153 domAgent->didRemoveDOMNode(node); … … 168 156 void InspectorInstrumentation::willModifyDOMAttrImpl(InstrumentingAgents* instrumentingAgents, Element* element, const AtomicString& oldValue, const AtomicString& newValue) 169 157 { 170 #if ENABLE(JAVASCRIPT_DEBUGGER)171 158 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 172 159 domDebuggerAgent->willModifyDOMAttr(element); 173 160 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent()) 174 161 domAgent->willModifyDOMAttr(element, oldValue, newValue); 175 #endif176 162 } 177 163 … … 192 178 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent()) 193 179 domAgent->didInvalidateStyleAttr(node); 194 #if ENABLE(JAVASCRIPT_DEBUGGER)195 180 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 196 181 domDebuggerAgent->didInvalidateStyleAttr(node); 197 #endif198 182 } 199 183 … … 299 283 void InspectorInstrumentation::willSendXMLHttpRequestImpl(InstrumentingAgents* instrumentingAgents, const String& url) 300 284 { 301 #if ENABLE(JAVASCRIPT_DEBUGGER)302 285 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 303 286 domDebuggerAgent->willSendXMLHttpRequest(url); 304 #endif305 287 } 306 288 … … 720 702 void InspectorInstrumentation::scriptExecutionBlockedByCSPImpl(InstrumentingAgents* instrumentingAgents, const String& directiveText) 721 703 { 722 #if ENABLE(JAVASCRIPT_DEBUGGER)723 704 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDebuggerAgent()) 724 705 debuggerAgent->scriptExecutionBlockedByCSP(directiveText); 725 #endif726 706 } 727 707 … … 778 758 if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspectorResourceAgent()) 779 759 resourceAgent->mainFrameNavigated(loader); 780 #if ENABLE(JAVASCRIPT_DEBUGGER)781 760 if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorProfilerAgent()) 782 761 profilerAgent->resetState(); 783 762 if (InspectorHeapProfilerAgent* heapProfilerAgent = instrumentingAgents->inspectorHeapProfilerAgent()) 784 763 heapProfilerAgent->resetState(); 785 #endif786 764 if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent()) 787 765 cssAgent->reset(); … … 895 873 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorConsoleAgent()) 896 874 consoleAgent->addMessageToConsole(source, type, level, message, callStack, requestIdentifier); 897 #if ENABLE(JAVASCRIPT_DEBUGGER)898 875 // FIXME: This should just pass the message on to the debugger agent. JavaScriptCore InspectorDebuggerAgent should know Console MessageTypes. 899 876 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDebuggerAgent()) { … … 901 878 debuggerAgent->handleConsoleAssert(); 902 879 } 903 #endif904 880 } 905 881 … … 908 884 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorConsoleAgent()) 909 885 consoleAgent->addMessageToConsole(source, type, level, message, state, arguments, requestIdentifier); 910 #if ENABLE(JAVASCRIPT_DEBUGGER)911 886 // FIXME: This should just pass the message on to the debugger agent. JavaScriptCore InspectorDebuggerAgent should know Console MessageTypes. 912 887 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDebuggerAgent()) { … … 914 889 debuggerAgent->handleConsoleAssert(); 915 890 } 916 #endif917 891 } 918 892 … … 954 928 } 955 929 956 #if ENABLE(JAVASCRIPT_DEBUGGER)957 930 void InspectorInstrumentation::addStartProfilingMessageToConsoleImpl(InstrumentingAgents* instrumentingAgents, const String& title, unsigned lineNumber, unsigned columnNumber, const String& sourceURL) 958 931 { … … 982 955 return false; 983 956 } 984 #endif985 957 986 958 #if ENABLE(SQL_DATABASE) … … 1020 992 if (!instrumentingAgents) 1021 993 return; 1022 #if ENABLE(JAVASCRIPT_DEBUGGER)1023 994 if (WorkerRuntimeAgent* runtimeAgent = instrumentingAgents->workerRuntimeAgent()) 1024 995 runtimeAgent->pauseWorkerGlobalScope(workerGlobalScope); 1025 #endif1026 996 } 1027 997 … … 1117 1087 void InspectorInstrumentation::pauseOnNativeEventIfNeeded(InstrumentingAgents* instrumentingAgents, bool isDOMEvent, const String& eventName, bool synchronous) 1118 1088 { 1119 #if ENABLE(JAVASCRIPT_DEBUGGER)1120 1089 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspectorDOMDebuggerAgent()) 1121 1090 domDebuggerAgent->pauseOnNativeEventIfNeeded(isDOMEvent, eventName, synchronous); 1122 #endif1123 1091 } 1124 1092 1125 1093 void InspectorInstrumentation::cancelPauseOnNativeEvent(InstrumentingAgents* instrumentingAgents) 1126 1094 { 1127 #if ENABLE(JAVASCRIPT_DEBUGGER)1128 1095 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDebuggerAgent()) 1129 1096 debuggerAgent->cancelPauseOnNextStatement(); 1130 #endif1131 1097 } 1132 1098 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r162374 r163024 222 222 static void didFireAnimationFrame(const InspectorInstrumentationCookie&); 223 223 224 #if ENABLE(JAVASCRIPT_DEBUGGER)225 224 static void addStartProfilingMessageToConsole(Page*, const String& title, unsigned lineNumber, unsigned columnNumber, const String& sourceURL); 226 225 static void addProfile(Page*, RefPtr<ScriptProfile>, PassRefPtr<ScriptCallStack>); 227 226 static String getCurrentUserInitiatedProfileName(Page*, bool incrementProfileNumber); 228 227 static bool profilerEnabled(Page*); 229 #endif230 228 231 229 #if ENABLE(SQL_DATABASE) … … 406 404 static void didFireAnimationFrameImpl(const InspectorInstrumentationCookie&); 407 405 408 #if ENABLE(JAVASCRIPT_DEBUGGER)409 406 static void addStartProfilingMessageToConsoleImpl(InstrumentingAgents*, const String& title, unsigned lineNumber, unsigned columnNumber, const String& sourceURL); 410 407 static void addProfileImpl(InstrumentingAgents*, RefPtr<ScriptProfile>, PassRefPtr<ScriptCallStack>); 411 408 static String getCurrentUserInitiatedProfileNameImpl(InstrumentingAgents*, bool incrementProfileNumber); 412 409 static bool profilerEnabledImpl(InstrumentingAgents*); 413 #endif414 410 415 411 #if ENABLE(SQL_DATABASE) -
trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp
r162676 r163024 30 30 #include "config.h" 31 31 32 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)32 #if ENABLE(INSPECTOR) 33 33 34 34 #include "InspectorProfilerAgent.h" … … 456 456 } // namespace WebCore 457 457 458 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)458 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebCore/inspector/InspectorProfilerAgent.h
r162676 r163024 31 31 #define InspectorProfilerAgent_h 32 32 33 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)33 #if ENABLE(INSPECTOR) 34 34 35 35 #include "InspectorWebAgentBase.h" … … 135 135 } // namespace WebCore 136 136 137 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)137 #endif // ENABLE(INSPECTOR) 138 138 139 139 #endif // !defined(InspectorProfilerAgent_h) -
trunk/Source/WebCore/inspector/InstrumentingAgents.cpp
r162374 r163024 63 63 #endif 64 64 , m_inspectorApplicationCacheAgent(nullptr) 65 #if ENABLE(JAVASCRIPT_DEBUGGER)66 65 , m_inspectorDebuggerAgent(nullptr) 67 66 , m_pageDebuggerAgent(nullptr) 68 67 , m_inspectorDOMDebuggerAgent(nullptr) 69 68 , m_inspectorProfilerAgent(nullptr) 70 #endif71 69 , m_inspectorWorkerAgent(nullptr) 72 70 , m_inspectorCanvasAgent(nullptr) … … 93 91 #endif 94 92 m_inspectorApplicationCacheAgent = nullptr; 95 #if ENABLE(JAVASCRIPT_DEBUGGER)96 93 m_inspectorDebuggerAgent = nullptr; 97 94 m_pageDebuggerAgent = nullptr; 98 95 m_inspectorDOMDebuggerAgent = nullptr; 99 96 m_inspectorProfilerAgent = nullptr; 100 #endif101 97 m_inspectorWorkerAgent = nullptr; 102 98 m_inspectorCanvasAgent = nullptr; -
trunk/Source/WebCore/inspector/InstrumentingAgents.h
r162799 r163024 117 117 void setInspectorApplicationCacheAgent(InspectorApplicationCacheAgent* agent) { m_inspectorApplicationCacheAgent = agent; } 118 118 119 #if ENABLE(JAVASCRIPT_DEBUGGER)120 119 Inspector::InspectorDebuggerAgent* inspectorDebuggerAgent() const { return m_inspectorDebuggerAgent; } 121 120 void setInspectorDebuggerAgent(Inspector::InspectorDebuggerAgent* agent) { m_inspectorDebuggerAgent = agent; } … … 132 131 InspectorHeapProfilerAgent* inspectorHeapProfilerAgent() const { return m_inspectorHeapProfilerAgent; } 133 132 void setInspectorHeapProfilerAgent(InspectorHeapProfilerAgent* agent) { m_inspectorHeapProfilerAgent = agent; } 134 #endif135 133 136 134 InspectorWorkerAgent* inspectorWorkerAgent() const { return m_inspectorWorkerAgent; } … … 167 165 #endif 168 166 InspectorApplicationCacheAgent* m_inspectorApplicationCacheAgent; 169 #if ENABLE(JAVASCRIPT_DEBUGGER)170 167 Inspector::InspectorDebuggerAgent* m_inspectorDebuggerAgent; 171 168 PageDebuggerAgent* m_pageDebuggerAgent; … … 173 170 InspectorProfilerAgent* m_inspectorProfilerAgent; 174 171 InspectorHeapProfilerAgent* m_inspectorHeapProfilerAgent; 175 #endif176 172 InspectorWorkerAgent* m_inspectorWorkerAgent; 177 173 InspectorCanvasAgent* m_inspectorCanvasAgent; -
trunk/Source/WebCore/inspector/PageDebuggerAgent.cpp
r162799 r163024 32 32 #include "PageDebuggerAgent.h" 33 33 34 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "CachedResource.h" … … 145 145 } // namespace WebCore 146 146 147 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)147 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebCore/inspector/PageDebuggerAgent.h
r162799 r163024 32 32 #define PageDebuggerAgent_h 33 33 34 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "PageScriptDebugServer.h" … … 78 78 } // namespace WebCore 79 79 80 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)80 #endif // ENABLE(INSPECTOR) 81 81 82 82 #endif // !defined(PageDebuggerAgent_h) -
trunk/Source/WebCore/inspector/ScriptProfile.idl
r151207 r163024 27 27 [ 28 28 NoInterfaceObject, 29 Conditional=JAVASCRIPT_DEBUGGER,30 29 ] interface ScriptProfile { 31 30 readonly attribute DOMString title; -
trunk/Source/WebCore/inspector/ScriptProfileNode.idl
r162796 r163024 27 27 [ 28 28 NoInterfaceObject, 29 Conditional=JAVASCRIPT_DEBUGGER,30 29 ImplementationLacksVTable 31 30 ] interface ScriptProfileNode { -
trunk/Source/WebCore/inspector/WebDebuggerAgent.cpp
r162799 r163024 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include "InstrumentingAgents.h" … … 56 55 } // namespace WebCore 57 56 58 #endif // ENABLE(JAVASCRIPT_DEBUGGER)59 57 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebCore/inspector/WebDebuggerAgent.h
r162799 r163024 28 28 29 29 #if ENABLE(INSPECTOR) 30 #if ENABLE(JAVASCRIPT_DEBUGGER)31 30 32 31 #include <inspector/agents/InspectorDebuggerAgent.h> … … 53 52 } // namespace WebCore 54 53 55 #endif // ENABLE(JAVASCRIPT_DEBUGGER)56 54 #endif // ENABLE(INSPECTOR) 57 55 -
trunk/Source/WebCore/inspector/WorkerDebuggerAgent.cpp
r162799 r163024 32 32 #include "WorkerDebuggerAgent.h" 33 33 34 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "WorkerGlobalScope.h" … … 161 161 } // namespace WebCore 162 162 163 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)163 #endif // ENABLE(INSPECTOR) -
trunk/Source/WebCore/inspector/WorkerDebuggerAgent.h
r162799 r163024 32 32 #define WorkerDebuggerAgent_h 33 33 34 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)34 #if ENABLE(INSPECTOR) 35 35 36 36 #include "WebDebuggerAgent.h" … … 68 68 } // namespace WebCore 69 69 70 #endif // ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)70 #endif // ENABLE(INSPECTOR) 71 71 72 72 #endif // !defined(WorkerDebuggerAgent_h) -
trunk/Source/WebCore/inspector/WorkerInspectorController.cpp
r162799 r163024 92 92 93 93 auto consoleAgent = std::make_unique<WorkerConsoleAgent>(m_instrumentingAgents.get(), m_injectedScriptManager.get()); 94 #if ENABLE(JAVASCRIPT_DEBUGGER)95 94 auto debuggerAgent = std::make_unique<WorkerDebuggerAgent>(m_injectedScriptManager.get(), m_instrumentingAgents.get(), &workerGlobalScope); 96 95 m_runtimeAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer()); … … 99 98 m_agents.append(InspectorProfilerAgent::create(m_instrumentingAgents.get(), consoleAgent.get(), &workerGlobalScope, m_injectedScriptManager.get())); 100 99 m_agents.append(std::make_unique<InspectorHeapProfilerAgent>(m_instrumentingAgents.get(), m_injectedScriptManager.get())); 101 #endif102 100 m_agents.append(std::make_unique<InspectorTimelineAgent>(m_instrumentingAgents.get(), nullptr, nullptr, InspectorTimelineAgent::WorkerInspector, nullptr)); 103 101 m_agents.append(std::move(consoleAgent)); … … 146 144 } 147 145 148 #if ENABLE(JAVASCRIPT_DEBUGGER)149 146 void WorkerInspectorController::resume() 150 147 { … … 152 149 m_runtimeAgent->run(&unused); 153 150 } 154 #endif155 151 156 152 InspectorFunctionCallHandler WorkerInspectorController::functionCallHandler() const -
trunk/Source/WebCore/inspector/WorkerInspectorController.h
r162767 r163024 66 66 void disconnectFrontend(Inspector::InspectorDisconnectReason); 67 67 void dispatchMessageFromFrontend(const String&); 68 #if ENABLE(JAVASCRIPT_DEBUGGER)69 68 void resume(); 70 #endif71 69 72 70 virtual bool developerExtrasEnabled() const override { return true; } -
trunk/Source/WebCore/inspector/WorkerRuntimeAgent.cpp
r162767 r163024 96 96 } 97 97 98 #if ENABLE(JAVASCRIPT_DEBUGGER)99 98 void WorkerRuntimeAgent::pauseWorkerGlobalScope(WorkerGlobalScope* context) 100 99 { … … 106 105 } while (result == MessageQueueMessageReceived && m_paused); 107 106 } 108 #endif // ENABLE(JAVASCRIPT_DEBUGGER)109 107 110 108 } // namespace WebCore -
trunk/Source/WebCore/inspector/WorkerRuntimeAgent.h
r162767 r163024 52 52 virtual void run(ErrorString*) override; 53 53 54 #if ENABLE(JAVASCRIPT_DEBUGGER)55 54 void pauseWorkerGlobalScope(WorkerGlobalScope*); 56 #endif57 55 58 56 private: -
trunk/Source/WebCore/loader/FrameLoader.cpp
r162837 r163024 2949 2949 return; 2950 2950 2951 #if ENABLE( JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)2951 #if ENABLE(INSPECTOR) 2952 2952 if (Page* page = m_frame.page()) { 2953 2953 if (m_frame.isMainFrame()) -
trunk/Source/WebCore/page/Console.cpp
r161700 r163024 187 187 } 188 188 189 #if ENABLE(JAVASCRIPT_DEBUGGER)190 191 189 void Console::profile(JSC::ExecState* state, const String& title) 192 190 { … … 228 226 } 229 227 230 #endif231 232 228 void Console::time(const String& title) 233 229 { -
trunk/Source/WebCore/page/Console.h
r157653 r163024 44 44 class ScriptArguments; 45 45 46 #if ENABLE(JAVASCRIPT_DEBUGGER)47 46 typedef Vector<RefPtr<ScriptProfile>> ProfilesArray; 48 #endif49 47 50 48 class Console : public ScriptWrappable, public RefCounted<Console>, public DOMWindowProperty { … … 65 63 void assertCondition(JSC::ExecState*, PassRefPtr<ScriptArguments>, bool condition); 66 64 void count(JSC::ExecState*, PassRefPtr<ScriptArguments>); 67 #if ENABLE(JAVASCRIPT_DEBUGGER)68 65 const ProfilesArray& profiles() const { return m_profiles; } 69 66 void profile(JSC::ExecState*, const String& = String()); 70 67 void profileEnd(JSC::ExecState*, const String& = String()); 71 #endif72 68 void time(const String&); 73 69 void timeEnd(JSC::ExecState*, const String&); … … 82 78 explicit Console(Frame*); 83 79 84 #if ENABLE(JAVASCRIPT_DEBUGGER)85 80 ProfilesArray m_profiles; 86 #endif87 81 }; 88 82 -
trunk/Source/WebCore/page/Console.idl
r159061 r163024 47 47 // "Sequences must not be used as the type of an attribute, constant or exception field." 48 48 // FIXME: this will lead to BUG console.profiles !== console.profiles as profile will always returns new array. 49 [Conditional=JAVASCRIPT_DEBUGGER]readonly attribute ScriptProfile[] profiles;50 [C onditional=JAVASCRIPT_DEBUGGER, CallWith=ScriptState] void profile([TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString title);51 [C onditional=JAVASCRIPT_DEBUGGER, CallWith=ScriptState] void profileEnd([TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString title);49 readonly attribute ScriptProfile[] profiles; 50 [CallWith=ScriptState] void profile([TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString title); 51 [CallWith=ScriptState] void profileEnd([TreatNullAs=NullString, TreatUndefinedAs=NullString] optional DOMString title); 52 52 53 53 void time([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString title); -
trunk/Source/WebCore/testing/Internals.cpp
r162816 r163024 278 278 WebCore::overrideUserPreferredLanguages(Vector<String>()); 279 279 WebCore::Settings::setUsesOverlayScrollbars(false); 280 #if ENABLE(INSPECTOR) && ENABLE(JAVASCRIPT_DEBUGGER)280 #if ENABLE(INSPECTOR) 281 281 page->inspectorController().setProfilerEnabled(false); 282 282 #endif -
trunk/Source/WebCore/workers/WorkerMessagingProxy.cpp
r162676 r163024 407 407 408 408 #if ENABLE(INSPECTOR) 409 #if ENABLE(JAVASCRIPT_DEBUGGER)410 409 static void connectToWorkerGlobalScopeInspectorTask(ScriptExecutionContext* context, bool) 411 410 { … … 413 412 static_cast<WorkerGlobalScope*>(context)->workerInspectorController().connectFrontend(); 414 413 } 415 #endif416 414 417 415 void WorkerMessagingProxy::connectToInspector(WorkerGlobalScopeProxy::PageInspector* pageInspector) … … 421 419 ASSERT(!m_pageInspector); 422 420 m_pageInspector = pageInspector; 423 #if ENABLE(JAVASCRIPT_DEBUGGER)424 421 m_workerThread->runLoop().postTaskForMode(createCallbackTask(connectToWorkerGlobalScopeInspectorTask, true), WorkerDebuggerAgent::debuggerTaskMode); 425 #endif 426 } 427 428 #if ENABLE(JAVASCRIPT_DEBUGGER) 422 } 423 429 424 static void disconnectFromWorkerGlobalScopeInspectorTask(ScriptExecutionContext* context, bool) 430 425 { … … 432 427 static_cast<WorkerGlobalScope*>(context)->workerInspectorController().disconnectFrontend(Inspector::InspectorDisconnectReason::InspectorDestroyed); 433 428 } 434 #endif435 429 436 430 void WorkerMessagingProxy::disconnectFromInspector() … … 439 433 if (m_askedToTerminate) 440 434 return; 441 #if ENABLE(JAVASCRIPT_DEBUGGER)442 435 m_workerThread->runLoop().postTaskForMode(createCallbackTask(disconnectFromWorkerGlobalScopeInspectorTask, true), WorkerDebuggerAgent::debuggerTaskMode); 443 #endif 444 } 445 446 #if ENABLE(JAVASCRIPT_DEBUGGER) 436 } 437 447 438 static void dispatchOnInspectorBackendTask(ScriptExecutionContext* context, const String& message) 448 439 { … … 450 441 static_cast<WorkerGlobalScope*>(context)->workerInspectorController().dispatchMessageFromFrontend(message); 451 442 } 452 #endif453 443 454 444 void WorkerMessagingProxy::sendMessageToInspector(const String& message) … … 456 446 if (m_askedToTerminate) 457 447 return; 458 #if ENABLE(JAVASCRIPT_DEBUGGER)459 448 m_workerThread->runLoop().postTaskForMode(createCallbackTask(dispatchOnInspectorBackendTask, String(message)), WorkerDebuggerAgent::debuggerTaskMode); 460 449 WorkerDebuggerAgent::interruptAndDispatchInspectorCommands(m_workerThread.get()); 461 #endif462 450 } 463 451 #endif -
trunk/Source/WebKit/gtk/ChangeLog
r162920 r163024 1 2014-01-29 Csaba Osztrogonác <ossy@webkit.org> 2 3 Remove ENABLE(JAVASCRIPT_DEBUGGER) guards 4 https://bugs.webkit.org/show_bug.cgi?id=127840 5 6 Reviewed by Mark Lam. 7 8 * webkit/webkitwebinspector.cpp: 9 (webkit_web_inspector_set_property): 10 (webkit_web_inspector_get_property): 11 1 12 2014-01-27 Carlos Garcia Campos <cgarcia@igalia.com> 2 13 -
trunk/Source/WebKit/gtk/webkit/webkitwebinspector.cpp
r162264 r163024 352 352 switch(prop_id) { 353 353 case PROP_JAVASCRIPT_PROFILING_ENABLED: { 354 #if ENABLE(JAVASCRIPT_DEBUGGER)355 354 bool enabled = g_value_get_boolean(value); 356 355 priv->page->inspectorController().setProfilerEnabled(enabled); 357 #else358 g_message("PROP_JAVASCRIPT_PROFILING_ENABLED is not work because of the javascript debugger is disabled\n");359 #endif360 356 break; 361 357 } … … 383 379 break; 384 380 case PROP_JAVASCRIPT_PROFILING_ENABLED: 385 #if ENABLE(JAVASCRIPT_DEBUGGER)386 381 g_value_set_boolean(value, priv->page->inspectorController().profilerEnabled()); 387 #else388 g_message("PROP_JAVASCRIPT_PROFILING_ENABLED is not work because of the javascript debugger is disabled\n");389 #endif390 382 break; 391 383 case PROP_TIMELINE_PROFILING_ENABLED: -
trunk/Source/WebKit2/ChangeLog
r163020 r163024 1 2014-01-29 Csaba Osztrogonác <ossy@webkit.org> 2 3 Remove ENABLE(JAVASCRIPT_DEBUGGER) guards 4 https://bugs.webkit.org/show_bug.cgi?id=127840 5 6 Reviewed by Mark Lam. 7 8 * WebProcess/WebPage/WebInspector.cpp: 9 (WebKit::WebInspector::startJavaScriptDebugging): 10 (WebKit::WebInspector::stopJavaScriptDebugging): 11 (WebKit::WebInspector::setJavaScriptProfilingEnabled): 12 (WebKit::WebInspector::startJavaScriptProfiling): 13 (WebKit::WebInspector::stopJavaScriptProfiling): 14 1 15 2014-01-29 Brady Eidson <beidson@apple.com> 2 16 -
trunk/Source/WebKit2/WebProcess/WebPage/WebInspector.cpp
r162676 r163024 234 234 void WebInspector::startJavaScriptDebugging() 235 235 { 236 #if ENABLE(JAVASCRIPT_DEBUGGER)237 236 m_page->corePage()->inspectorController().show(); 238 237 if (m_frontendClient) 239 238 m_frontendClient->setDebuggingEnabled(true); 240 #endif241 239 } 242 240 243 241 void WebInspector::stopJavaScriptDebugging() 244 242 { 245 #if ENABLE(JAVASCRIPT_DEBUGGER)246 243 m_page->corePage()->inspectorController().show(); 247 244 if (m_frontendClient) 248 245 m_frontendClient->setDebuggingEnabled(false); 249 #endif250 246 } 251 247 252 248 void WebInspector::setJavaScriptProfilingEnabled(bool enabled) 253 249 { 254 #if ENABLE(JAVASCRIPT_DEBUGGER)255 250 m_page->corePage()->inspectorController().show(); 256 251 if (!m_frontendClient) … … 258 253 259 254 m_page->corePage()->inspectorController().setProfilerEnabled(enabled); 260 #endif261 255 } 262 256 263 257 void WebInspector::startJavaScriptProfiling() 264 258 { 265 #if ENABLE(JAVASCRIPT_DEBUGGER)266 259 m_page->corePage()->inspectorController().show(); 267 260 if (m_frontendClient) 268 261 m_frontendClient->startProfilingJavaScript(); 269 #endif270 262 } 271 263 272 264 void WebInspector::stopJavaScriptProfiling() 273 265 { 274 #if ENABLE(JAVASCRIPT_DEBUGGER)275 266 m_page->corePage()->inspectorController().show(); 276 267 if (m_frontendClient) 277 268 m_frontendClient->stopProfilingJavaScript(); 278 #endif279 269 } 280 270 -
trunk/Source/cmake/WebKitFeatures.cmake
r162644 r163024 70 70 WEBKIT_OPTION_DEFINE(ENABLE_INPUT_TYPE_WEEK "Toggle week type <input> support" OFF) 71 71 WEBKIT_OPTION_DEFINE(ENABLE_INSPECTOR "Toggle Web Inspector support" ON) 72 WEBKIT_OPTION_DEFINE(ENABLE_JAVASCRIPT_DEBUGGER "Toggle JavaScript Debugger/Profiler support" ON)73 72 WEBKIT_OPTION_DEFINE(ENABLE_JIT "Enable JustInTime javascript support" ON) 74 73 WEBKIT_OPTION_DEFINE(ENABLE_LEGACY_NOTIFICATIONS "Toggle Legacy Desktop Notifications Support" OFF) -
trunk/Source/cmakeconfig.h.cmake
r162644 r163024 61 61 #cmakedefine01 ENABLE_INPUT_TYPE_WEEK 62 62 #cmakedefine01 ENABLE_INSPECTOR 63 #cmakedefine01 ENABLE_JAVASCRIPT_DEBUGGER64 63 #cmakedefine01 ENABLE_JIT 65 64 #cmakedefine01 ENABLE_LEGACY_NOTIFICATIONS -
trunk/Tools/ChangeLog
r163014 r163024 1 2014-01-29 Csaba Osztrogonác <ossy@webkit.org> 2 3 Remove ENABLE(JAVASCRIPT_DEBUGGER) guards 4 https://bugs.webkit.org/show_bug.cgi?id=127840 5 6 Reviewed by Mark Lam. 7 8 * Scripts/webkitperl/FeatureList.pm: 9 1 10 2014-01-29 Krzysztof Czech <k.czech@samsung.com> 2 11 -
trunk/Tools/Scripts/webkitperl/FeatureList.pm
r162579 r163024 313 313 define => "ENABLE_INSPECTOR", default => !isWinCE(), value => \$inspectorSupport }, 314 314 315 { option => "javascript-debugger", desc => "Toggle JavaScript Debugger support",316 define => "ENABLE_JAVASCRIPT_DEBUGGER", default => 1, value => \$javascriptDebuggerSupport },317 318 315 { option => "legacy-notifications", desc => "Toggle Legacy Notifications support", 319 316 define => "ENABLE_LEGACY_NOTIFICATIONS", default => 0, value => \$legacyNotificationsSupport },
Note: See TracChangeset
for help on using the changeset viewer.