1. 10 Jan, 2014 1 commit
  2. 11 Dec, 2013 1 commit
    • joepeck@webkit.org's avatar
      Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore · a3198444
      joepeck@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125324
      
      Reviewed by Timothy Hatcher.
      
      Source/JavaScriptCore:
      
      * CMakeLists.txt:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
      * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
      * JavaScriptCore.vcxproj/JavaScriptCoreCommon.props:
      * JavaScriptCore.vcxproj/copy-files.cmd:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * bindings/ScriptFunctionCall.cpp: Renamed from Source/WebCore/bindings/js/ScriptFunctionCall.cpp.
      * bindings/ScriptFunctionCall.h: Renamed from Source/WebCore/bindings/js/ScriptFunctionCall.h.
      * bindings/ScriptObject.cpp: Copied from Source/WebCore/inspector/WorkerConsoleAgent.cpp.
      * bindings/ScriptObject.h: Renamed from Source/WebCore/inspector/InspectorBaseAgent.h.
      * bindings/ScriptValue.cpp: Renamed from Source/WebCore/bindings/js/ScriptValue.cpp.
      * bindings/ScriptValue.h: Renamed from Source/WebCore/bindings/js/ScriptValue.h.
      * inspector/InspectorAgentBase.h: Copied from Source/WebCore/inspector/InspectorAgentRegistry.h.
      * inspector/InspectorAgentRegistry.cpp: Renamed from Source/WebCore/inspector/InspectorAgentRegistry.cpp.
      * inspector/InspectorBackendDispatcher.h: Renamed from Source/WebCore/inspector/InspectorBackendDispatcher.h.
      (Inspector::InspectorSupplementalBackendDispatcher::InspectorSupplementalBackendDispatcher):
      (Inspector::InspectorSupplementalBackendDispatcher::~InspectorSupplementalBackendDispatcher):
      * inspector/InspectorValues.cpp: Renamed from Source/WebCore/inspector/InspectorValues.cpp.
      * inspector/InspectorValues.h: Renamed from Source/WebCore/inspector/InspectorValues.h.
      
      Source/WebCore:
      
      Part 1: Push down core inspector classes.
      
        - Move InspectAgentBase, InspectorAgentRegistry, InspectorBackendDispatcher, InspectorValues
          down to JavaScriptCore and into the Inspector namespace.
        - Add forwarding headers for JavaScriptCore/inspector files.
        - Use the Inspector namespace where appropriate.
        - Rename InspectorBaseAgent to InspectorAgentBase for clarity.
      
      Part 2: Push Script wrapper classes down into JavaScriptCore/bindings.
      
        - Move ScriptObject and ScriptValue into JavaScriptCore but namespace Deprecated
        - Add forwarding headers
        - Use Deprecated::ScriptObject and Deprecated::ScriptValue everywhere.
      
      Part 3: Push Down ScriptFunctionCall
      
        - Move ScriptFunctionCall to JavaScriptCore/bindings into namespace Deprecated.
        - Give constructor a function to all for a different JSC::call, because
          WebCore ScriptFunctionCall's use JSMainThreadExecState when isMainThread.
        - Prefer Deprecated::ScriptFunctionCall everywhere it is used in WebCore.
      
      Part 4: Extract InspectorTypeBuilder helper functions
      
        - There is a chunk of InspectorTypeBuilder that never changes. Extract it into
          its own file, InspectorTypeBuilder.h in JSC/inspector, Inspector namespace.
        - This moves TypeBuilder from namespace WebCore to namespace Inspector
        - Rename the WebCore generated InspectorTypeBuilder to InspectorWebTypeBuilders,
          eventually the CodeGenerator script will do this for more then TypeBuilders
          and there will be "JS" TypeBuilders and "Web" TypeBuilders files.
      
      No new tests. No change in functionality, just moving things around.
      
      * CMakeLists.txt:
      * ForwardingHeaders/bindings/ScriptFunctionCall.h: Added.
      * ForwardingHeaders/bindings/ScriptObject.h: Added.
      * ForwardingHeaders/bindings/ScriptValue.h: Added.
      * ForwardingHeaders/inspector/InspectorAgentBase.h: Added.
      * ForwardingHeaders/inspector/InspectorAgentRegistry.h: Added.
      * ForwardingHeaders/inspector/InspectorBackendDispatcher.h: Added.
      * ForwardingHeaders/inspector/InspectorTypeBuilder.h: Added.
      * ForwardingHeaders/inspector/InspectorValues.h: Added.
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * Modules/indexeddb/IDBAny.cpp:
      (WebCore::IDBAny::scriptValue):
      (WebCore::IDBAny::IDBAny):
      * Modules/indexeddb/IDBAny.h:
      * Modules/indexeddb/IDBCursor.cpp:
      (WebCore::IDBCursor::key):
      (WebCore::IDBCursor::primaryKey):
      (WebCore::IDBCursor::value):
      (WebCore::IDBCursor::update):
      (WebCore::IDBCursor::continueFunction):
      (WebCore::IDBCursor::setValueReady):
      * Modules/indexeddb/IDBCursor.h:
      * Modules/indexeddb/IDBFactory.cpp:
      (WebCore::IDBFactory::cmp):
      * Modules/indexeddb/IDBFactory.h:
      * Modules/indexeddb/IDBIndex.cpp:
      (WebCore::IDBIndex::openCursor):
      (WebCore::IDBIndex::count):
      (WebCore::IDBIndex::openKeyCursor):
      (WebCore::IDBIndex::get):
      (WebCore::IDBIndex::getKey):
      * Modules/indexeddb/IDBIndex.h:
      (WebCore::IDBIndex::openCursor):
      (WebCore::IDBIndex::openKeyCursor):
      * Modules/indexeddb/IDBKeyRange.cpp:
      (WebCore::IDBKeyRange::lowerValue):
      (WebCore::IDBKeyRange::upperValue):
      (WebCore::IDBKeyRange::only):
      (WebCore::IDBKeyRange::lowerBound):
      (WebCore::IDBKeyRange::upperBound):
      (WebCore::IDBKeyRange::bound):
      * Modules/indexeddb/IDBKeyRange.h:
      (WebCore::IDBKeyRange::lowerBound):
      (WebCore::IDBKeyRange::upperBound):
      (WebCore::IDBKeyRange::bound):
      * Modules/indexeddb/IDBObjectStore.cpp:
      (WebCore::IDBObjectStore::get):
      (WebCore::generateIndexKeysForValue):
      (WebCore::IDBObjectStore::add):
      (WebCore::IDBObjectStore::put):
      (WebCore::IDBObjectStore::deleteFunction):
      (WebCore::IDBObjectStore::openCursor):
      (WebCore::IDBObjectStore::count):
      * Modules/indexeddb/IDBObjectStore.h:
      * Modules/indexeddb/IDBRequest.cpp:
      (WebCore::IDBRequest::setResultCursor):
      (WebCore::IDBRequest::onSuccess):
      (WebCore::IDBRequest::onSuccessInternal):
      * Modules/indexeddb/IDBRequest.h:
      * Modules/mediastream/CapabilityRange.cpp:
      (WebCore::scriptValue):
      (WebCore::CapabilityRange::min):
      (WebCore::CapabilityRange::max):
      * Modules/mediastream/CapabilityRange.h:
      * Modules/mediastream/MediaTrackConstraint.h:
      * Modules/mediastream/RTCIceCandidate.cpp:
      * Modules/plugins/QuickTimePluginReplacement.cpp:
      * Modules/plugins/QuickTimePluginReplacement.h:
      * UseJSC.cmake:
      * WebCore.exp.in:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/Dictionary.h:
      (WebCore::Dictionary::getEventListener):
      * bindings/js/IDBBindingUtilities.cpp:
      (WebCore::createIDBKeyFromScriptValueAndKeyPath):
      (WebCore::injectIDBKeyIntoScriptValue):
      (WebCore::canInjectIDBKeyIntoScriptValue):
      (WebCore::deserializeIDBValue):
      (WebCore::deserializeIDBValueBuffer):
      (WebCore::idbKeyToScriptValue):
      (WebCore::scriptValueToIDBKey):
      * bindings/js/IDBBindingUtilities.h:
      * bindings/js/JSBindingsAllInOne.cpp:
      * bindings/js/JSDictionary.cpp:
      (WebCore::JSDictionary::convertValue):
      * bindings/js/JSDictionary.h:
      * bindings/js/JSHTMLCanvasElementCustom.cpp:
      (WebCore::JSHTMLCanvasElement::getContext):
      * bindings/js/JSInjectedScriptHostCustom.cpp:
      (WebCore::InjectedScriptHost::scriptValueAsNode):
      (WebCore::InjectedScriptHost::nodeAsScriptValue):
      (WebCore::JSInjectedScriptHost::inspectedObject):
      (WebCore::JSInjectedScriptHost::inspect):
      * bindings/js/JSInjectedScriptManager.cpp:
      (WebCore::InjectedScriptManager::createInjectedScript):
      * bindings/js/JSMainThreadExecState.cpp:
      (WebCore::functionCallHandlerFromAnyThread):
      * bindings/js/JSMainThreadExecState.h:
      (WebCore::JSMainThreadExecState::currentState):
      * bindings/js/JSMessageEventCustom.cpp:
      (WebCore::JSMessageEvent::data):
      (WebCore::handleInitMessageEvent):
      * bindings/js/ScheduledAction.cpp:
      * bindings/js/ScriptCallStackFactory.cpp:
      (WebCore::createScriptArguments):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::evaluateInWorld):
      (WebCore::ScriptController::evaluate):
      (WebCore::ScriptController::executeScriptInWorld):
      (WebCore::ScriptController::executeScript):
      (WebCore::ScriptController::executeIfJavaScriptURL):
      * bindings/js/ScriptController.h:
      * bindings/js/ScriptDebugServer.cpp:
      (WebCore::ScriptDebugServer::setScriptSource):
      (WebCore::ScriptDebugServer::updateCallStack):
      (WebCore::ScriptDebugServer::dispatchDidPause):
      (WebCore::ScriptDebugServer::runScript):
      * bindings/js/ScriptDebugServer.h:
      * bindings/js/ScriptGlobalObject.cpp: Renamed from Source/WebCore/bindings/js/ScriptObject.cpp.
      (WebCore::handleException):
      (WebCore::ScriptGlobalObject::set):
      (WebCore::ScriptGlobalObject::get):
      (WebCore::ScriptGlobalObject::remove):
      * bindings/js/ScriptGlobalObject.h: Copied from Source/WebCore/inspector/ScriptCallStack.h.
      (WebCore::ScriptGlobalObject::ScriptGlobalObject):
      * bindings/js/ScriptObject.h: Removed.
      * bindings/js/ScriptProfile.cpp:
      (WebCore::buildInspectorObjectFor):
      (WebCore::ScriptProfile::buildInspectorObjectForHead):
      (WebCore::ScriptProfile::buildInspectorObjectForBottomUpHead):
      * bindings/js/ScriptProfile.h:
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      (WebCore::ScriptProfiler::getHeapObjectId):
      * bindings/js/ScriptProfiler.h:
      * bindings/js/ScriptState.h:
      * bindings/js/SerializedScriptValue.cpp:
      (WebCore::SerializedScriptValue::deserializeForInspector):
      (WebCore::SerializedScriptValue::serialize):
      (WebCore::SerializedScriptValue::deserialize):
      * bindings/js/SerializedScriptValue.h:
      * bindings/js/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::evaluate):
      (WebCore::WorkerScriptController::setException):
      * bindings/js/WorkerScriptController.h:
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/scripts/test/JS/JSTestObj.cpp:
      (WebCore::setJSTestObjAnyAttribute):
      * dom/CustomEvent.cpp:
      (WebCore::CustomEvent::initCustomEvent):
      * dom/CustomEvent.h:
      (WebCore::CustomEvent::detail):
      * dom/MessageEvent.cpp:
      (WebCore::MessageEvent::MessageEvent):
      (WebCore::MessageEvent::initMessageEvent):
      * dom/MessageEvent.h:
      (WebCore::MessageEvent::create):
      (WebCore::MessageEvent::dataAsScriptValue):
      * dom/PopStateEvent.h:
      (WebCore::PopStateEvent::state):
      * dom/ScriptElement.cpp:
      * html/HTMLMediaElement.cpp:
      * html/parser/XSSAuditor.cpp:
      * html/parser/XSSAuditorDelegate.cpp:
      * inspector/CodeGeneratorInspector.py:
      (RawTypes.BaseType.get_raw_validator_call_text):
      (RawTypes.Object.get_array_item_raw_c_type_text):
      (RawTypes.Any.get_array_item_raw_c_type_text):
      (RawTypes.Array.get_array_item_raw_c_type_text):
      (CommandReturnPassModel.OptOutput.get_return_var_type):
      (CommandReturnPassModel.OptOutput.get_output_parameter_type):
      (TypeModel.ExactlyInt.get_input_param_type_text):
      (TypeModel.ExactlyInt.get_opt_output_type_):
      (TypeModel.init_class):
      (TypeBindings.create_named_type_declaration.Helper):
      (TypeBindings.create_type_declaration_.EnumBinding.get_code_generator.CodeGenerator.generate_type_builder):
      (TypeBindings.create_type_declaration_.EnumBinding.get_setter_value_expression_pattern):
      (TypeBindings.create_type_declaration_.ClassBinding.get_code_generator.CodeGenerator.generate_type_builder):
      (Inspector):
      (ArrayBinding.get_array_item_c_type_text):
      (Generator.go):
      (Generator.process_command):
      * inspector/CodeGeneratorInspectorStrings.py:
      (void):
      (InspectorFrontend_h):
      (InspectorBackendDispatchers_h):
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageSourceValue):
      (WebCore::messageTypeValue):
      (WebCore::messageLevelValue):
      (WebCore::ConsoleMessage::addToFrontend):
      * inspector/ConsoleMessage.h:
      * inspector/ContentSearchUtils.cpp:
      (WebCore::ContentSearchUtils::buildObjectForSearchMatch):
      (WebCore::ContentSearchUtils::searchInTextByLines):
      * inspector/ContentSearchUtils.h:
      * inspector/InjectedScript.cpp:
      (WebCore::InjectedScript::InjectedScript):
      (WebCore::InjectedScript::evaluate):
      (WebCore::InjectedScript::callFunctionOn):
      (WebCore::InjectedScript::evaluateOnCallFrame):
      (WebCore::InjectedScript::getFunctionDetails):
      (WebCore::InjectedScript::getProperties):
      (WebCore::InjectedScript::getInternalProperties):
      (WebCore::InjectedScript::nodeForObjectId):
      (WebCore::InjectedScript::releaseObject):
      (WebCore::InjectedScript::wrapCallFrames):
      (WebCore::InjectedScript::wrapObject):
      (WebCore::InjectedScript::wrapTable):
      (WebCore::InjectedScript::wrapNode):
      (WebCore::InjectedScript::findObjectById):
      (WebCore::InjectedScript::inspectNode):
      (WebCore::InjectedScript::releaseObjectGroup):
      (WebCore::InjectedScript::nodeAsScriptValue):
      * inspector/InjectedScript.h:
      * inspector/InjectedScriptBase.cpp:
      (WebCore::InjectedScriptBase::InjectedScriptBase):
      (WebCore::InjectedScriptBase::initialize):
      (WebCore::InjectedScriptBase::injectedScriptObject):
      (WebCore::InjectedScriptBase::callFunctionWithEvalEnabled):
      (WebCore::InjectedScriptBase::makeCall):
      (WebCore::InjectedScriptBase::makeEvalCall):
      * inspector/InjectedScriptBase.h:
      * inspector/InjectedScriptCanvasModule.cpp:
      (WebCore::InjectedScriptCanvasModule::wrapCanvas2DContext):
      (WebCore::InjectedScriptCanvasModule::wrapWebGLContext):
      (WebCore::InjectedScriptCanvasModule::callWrapContextFunction):
      (WebCore::InjectedScriptCanvasModule::markFrameEnd):
      (WebCore::InjectedScriptCanvasModule::callStartCapturingFunction):
      (WebCore::InjectedScriptCanvasModule::callVoidFunctionWithTraceLogIdArgument):
      (WebCore::InjectedScriptCanvasModule::traceLog):
      (WebCore::InjectedScriptCanvasModule::replayTraceLog):
      (WebCore::InjectedScriptCanvasModule::resourceInfo):
      (WebCore::InjectedScriptCanvasModule::resourceState):
      * inspector/InjectedScriptCanvasModule.h:
      * inspector/InjectedScriptHost.cpp:
      (WebCore::InjectedScriptHost::inspectImpl):
      (WebCore::InjectedScriptHost::InspectableObject::get):
      * inspector/InjectedScriptHost.h:
      * inspector/InjectedScriptManager.cpp:
      (WebCore::InjectedScriptManager::injectedScriptFor):
      * inspector/InjectedScriptManager.h:
      * inspector/InjectedScriptModule.cpp:
      (WebCore::InjectedScriptModule::ensureInjected):
      * inspector/InspectorAgent.cpp:
      (WebCore::InspectorAgent::InspectorAgent):
      (WebCore::InspectorAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorAgent::inspect):
      * inspector/InspectorAgent.h:
      * inspector/InspectorAllInOne.cpp:
      * inspector/InspectorApplicationCacheAgent.cpp:
      (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent):
      (WebCore::InspectorApplicationCacheAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorApplicationCacheAgent::getFramesWithManifests):
      (WebCore::InspectorApplicationCacheAgent::getApplicationCacheForFrame):
      (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCache):
      (WebCore::InspectorApplicationCacheAgent::buildArrayForApplicationCacheResources):
      (WebCore::InspectorApplicationCacheAgent::buildObjectForApplicationCacheResource):
      * inspector/InspectorApplicationCacheAgent.h:
      * inspector/InspectorCSSAgent.cpp:
      (WebCore::SelectorProfile::toInspectorObject):
      (WebCore::InspectorCSSAgent::InspectorCSSAgent):
      (WebCore::InspectorCSSAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorCSSAgent::getMatchedStylesForNode):
      (WebCore::InspectorCSSAgent::getInlineStylesForNode):
      (WebCore::InspectorCSSAgent::getComputedStyleForNode):
      (WebCore::InspectorCSSAgent::getAllStyleSheets):
      (WebCore::InspectorCSSAgent::getStyleSheet):
      (WebCore::InspectorCSSAgent::setStyleText):
      (WebCore::InspectorCSSAgent::setPropertyText):
      (WebCore::InspectorCSSAgent::toggleProperty):
      (WebCore::InspectorCSSAgent::setRuleSelector):
      (WebCore::InspectorCSSAgent::addRule):
      (WebCore::InspectorCSSAgent::getSupportedCSSProperties):
      (WebCore::InspectorCSSAgent::getNamedFlowCollection):
      (WebCore::InspectorCSSAgent::stopSelectorProfiler):
      (WebCore::InspectorCSSAgent::stopSelectorProfilerImpl):
      (WebCore::InspectorCSSAgent::asInspectorStyleSheet):
      (WebCore::InspectorCSSAgent::collectStyleSheets):
      (WebCore::InspectorCSSAgent::viaInspectorStyleSheet):
      (WebCore::InspectorCSSAgent::detectOrigin):
      (WebCore::InspectorCSSAgent::buildObjectForRule):
      (WebCore::InspectorCSSAgent::buildArrayForRuleList):
      (WebCore::InspectorCSSAgent::buildArrayForMatchedRuleList):
      (WebCore::InspectorCSSAgent::buildObjectForAttributesStyle):
      (WebCore::InspectorCSSAgent::buildArrayForRegions):
      (WebCore::InspectorCSSAgent::buildObjectForNamedFlow):
      * inspector/InspectorCSSAgent.h:
      * inspector/InspectorCanvasAgent.cpp:
      (WebCore::InspectorCanvasAgent::InspectorCanvasAgent):
      (WebCore::InspectorCanvasAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorCanvasAgent::wrapCanvas2DRenderingContextForInstrumentation):
      (WebCore::InspectorCanvasAgent::wrapWebGLRenderingContextForInstrumentation):
      (WebCore::InspectorCanvasAgent::notifyRenderingContextWasWrapped):
      (WebCore::InspectorCanvasAgent::injectedScriptCanvasModule):
      * inspector/InspectorCanvasAgent.h:
      * inspector/InspectorCanvasInstrumentation.h:
      (WebCore::InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrumentation):
      (WebCore::InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentation):
      * inspector/InspectorClient.cpp:
      * inspector/InspectorClient.h:
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::InspectorConsoleAgent):
      (WebCore::InspectorConsoleAgent::didCreateFrontendAndBackend):
      (WebCore::InspectableHeapObject::get):
      * inspector/InspectorConsoleAgent.h:
      * inspector/InspectorController.cpp:
      * inspector/InspectorController.h:
      * inspector/InspectorDOMAgent.cpp:
      (WebCore::InspectorDOMAgent::InspectorDOMAgent):
      (WebCore::InspectorDOMAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorDOMAgent::getDocument):
      (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
      (WebCore::InspectorDOMAgent::querySelectorAll):
      (WebCore::InspectorDOMAgent::pushNodePathToFrontend):
      (WebCore::InspectorDOMAgent::getEventListenersForNode):
      (WebCore::InspectorDOMAgent::getSearchResults):
      (WebCore::InspectorDOMAgent::resolveNode):
      (WebCore::InspectorDOMAgent::getAttributes):
      (WebCore::InspectorDOMAgent::buildObjectForNode):
      (WebCore::InspectorDOMAgent::buildArrayForElementAttributes):
      (WebCore::InspectorDOMAgent::buildArrayForContainerChildren):
      (WebCore::InspectorDOMAgent::buildObjectForEventListener):
      (WebCore::InspectorDOMAgent::didCommitLoad):
      (WebCore::InspectorDOMAgent::didInsertDOMNode):
      (WebCore::InspectorDOMAgent::styleAttributeInvalidated):
      * inspector/InspectorDOMAgent.h:
      * inspector/InspectorDOMDebuggerAgent.cpp:
      (WebCore::InspectorDOMDebuggerAgent::InspectorDOMDebuggerAgent):
      (WebCore::InspectorDOMDebuggerAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorDOMDebuggerAgent::descriptionForDOMEvent):
      * inspector/InspectorDOMDebuggerAgent.h:
      * inspector/InspectorDOMStorageAgent.cpp:
      (WebCore::InspectorDOMStorageAgent::InspectorDOMStorageAgent):
      (WebCore::InspectorDOMStorageAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorDOMStorageAgent::getDOMStorageItems):
      (WebCore::InspectorDOMStorageAgent::storageId):
      (WebCore::InspectorDOMStorageAgent::didDispatchDOMStorageEvent):
      * inspector/InspectorDOMStorageAgent.h:
      * inspector/InspectorDatabaseAgent.cpp:
      (WebCore::InspectorDatabaseAgent::InspectorDatabaseAgent):
      (WebCore::InspectorDatabaseAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorDatabaseAgent::getDatabaseTableNames):
      * inspector/InspectorDatabaseAgent.h:
      * inspector/InspectorDatabaseResource.cpp:
      (WebCore::InspectorDatabaseResource::bind):
      * inspector/InspectorDebuggerAgent.cpp:
      (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent):
      (WebCore::InspectorDebuggerAgent::didCreateFrontendAndBackend):
      (WebCore::breakpointActionTypeForString):
      (WebCore::InspectorDebuggerAgent::setBreakpointByUrl):
      (WebCore::InspectorDebuggerAgent::setBreakpoint):
      (WebCore::InspectorDebuggerAgent::resolveBreakpoint):
      (WebCore::scriptToInspectorObject):
      (WebCore::InspectorDebuggerAgent::searchInContent):
      (WebCore::InspectorDebuggerAgent::setScriptSource):
      (WebCore::InspectorDebuggerAgent::getFunctionDetails):
      (WebCore::InspectorDebuggerAgent::evaluateOnCallFrame):
      (WebCore::InspectorDebuggerAgent::compileScript):
      (WebCore::InspectorDebuggerAgent::runScript):
      (WebCore::InspectorDebuggerAgent::currentCallFrames):
      (WebCore::InspectorDebuggerAgent::didParseSource):
      (WebCore::InspectorDebuggerAgent::didPause):
      (WebCore::InspectorDebuggerAgent::didContinue):
      (WebCore::InspectorDebuggerAgent::clear):
      * inspector/InspectorDebuggerAgent.h:
      * inspector/InspectorForwarding.h:
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::evaluateAsBoolean):
      * inspector/InspectorFrontendHost.cpp:
      (WebCore::FrontendMenuProvider::create):
      (WebCore::FrontendMenuProvider::disconnect):
      (WebCore::FrontendMenuProvider::FrontendMenuProvider):
      (WebCore::FrontendMenuProvider::contextMenuItemSelected):
      (WebCore::FrontendMenuProvider::contextMenuCleared):
      (WebCore::InspectorFrontendHost::showContextMenu):
      * inspector/InspectorHeapProfilerAgent.cpp:
      (WebCore::InspectorHeapProfilerAgent::InspectorHeapProfilerAgent):
      (WebCore::InspectorHeapProfilerAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorHeapProfilerAgent::createSnapshotHeader):
      (WebCore::InspectorHeapProfilerAgent::getProfileHeaders):
      (WebCore::InspectorHeapProfilerAgent::getObjectByHeapObjectId):
      (WebCore::InspectorHeapProfilerAgent::getHeapObjectId):
      * inspector/InspectorHeapProfilerAgent.h:
      * inspector/InspectorIndexedDBAgent.cpp:
      (WebCore::InspectorIndexedDBAgent::InspectorIndexedDBAgent):
      (WebCore::InspectorIndexedDBAgent::didCreateFrontendAndBackend):
      * inspector/InspectorIndexedDBAgent.h:
      * inspector/InspectorInputAgent.cpp:
      (WebCore::InspectorInputAgent::InspectorInputAgent):
      (WebCore::InspectorInputAgent::didCreateFrontendAndBackend):
      * inspector/InspectorInputAgent.h:
      * inspector/InspectorInstrumentation.cpp:
      * inspector/InspectorInstrumentation.h:
      * inspector/InspectorLayerTreeAgent.cpp:
      (WebCore::InspectorLayerTreeAgent::InspectorLayerTreeAgent):
      (WebCore::InspectorLayerTreeAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorLayerTreeAgent::layersForNode):
      (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderObjectHierarchy):
      (WebCore::InspectorLayerTreeAgent::gatherLayersUsingRenderLayerHierarchy):
      (WebCore::InspectorLayerTreeAgent::buildObjectForLayer):
      (WebCore::InspectorLayerTreeAgent::buildObjectForIntRect):
      (WebCore::InspectorLayerTreeAgent::reasonsForCompositingLayer):
      * inspector/InspectorLayerTreeAgent.h:
      * inspector/InspectorMemoryAgent.cpp:
      (WebCore::InspectorMemoryAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorMemoryAgent::InspectorMemoryAgent):
      * inspector/InspectorMemoryAgent.h:
      * inspector/InspectorOverlay.cpp:
      * inspector/InspectorOverlay.h:
      * inspector/InspectorPageAgent.cpp:
      (WebCore::InspectorPageAgent::resourceTypeJson):
      (WebCore::InspectorPageAgent::cachedResourceTypeJson):
      (WebCore::InspectorPageAgent::InspectorPageAgent):
      (WebCore::InspectorPageAgent::didCreateFrontendAndBackend):
      (WebCore::buildObjectForCookie):
      (WebCore::buildArrayForCookies):
      (WebCore::InspectorPageAgent::getCookies):
      (WebCore::InspectorPageAgent::getResourceTree):
      (WebCore::InspectorPageAgent::searchInResource):
      (WebCore::buildObjectForSearchResult):
      (WebCore::InspectorPageAgent::searchInResources):
      (WebCore::InspectorPageAgent::buildObjectForFrame):
      (WebCore::InspectorPageAgent::buildObjectForFrameTree):
      * inspector/InspectorPageAgent.h:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      (WebCore::InspectorProfilerAgent::createProfileHeader):
      (WebCore::InspectorProfilerAgent::createSnapshotHeader):
      (WebCore::InspectorProfilerAgent::getProfileHeaders):
      (WebCore::InspectorProfilerAgent::getCPUProfile):
      (WebCore::InspectorProfilerAgent::didCreateFrontendAndBackend):
      (WebCore::InspectorProfilerAgent::getObjectByHeapObjectId):
      (WebCore::InspectorProfilerAgent::getHeapObjectId):
      * inspector/InspectorProfilerAgent.h:
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::didCreateFrontendAndBackend):
      (WebCore::buildObjectForTiming):
      (WebCore::buildObjectForResourceRequest):
      (WebCore::buildObjectForResourceResponse):
      (WebCore::buildObjectForCachedResource):
      (WebCore::InspectorResourceAgent::willSendRequest):
      (WebCore::InspectorResourceAgent::didReceiveResponse):
      (WebCore::InspectorResourceAgent::didLoadResourceFromMemoryCache):
      (WebCore::InspectorResourceAgent::buildInitiatorObject):
      (WebCore::InspectorResourceAgent::willSendWebSocketHandshakeRequest):
      (WebCore::InspectorResourceAgent::didReceiveWebSocketHandshakeResponse):
      (WebCore::InspectorResourceAgent::didReceiveWebSocketFrame):
      (WebCore::InspectorResourceAgent::didSendWebSocketFrame):
      (WebCore::InspectorResourceAgent::InspectorResourceAgent):
      * inspector/InspectorResourceAgent.h:
      * inspector/InspectorRuntimeAgent.cpp:
      (WebCore::InspectorRuntimeAgent::InspectorRuntimeAgent):
      (WebCore::buildErrorRangeObject):
      (WebCore::InspectorRuntimeAgent::parse):
      (WebCore::InspectorRuntimeAgent::evaluate):
      (WebCore::InspectorRuntimeAgent::callFunctionOn):
      (WebCore::InspectorRuntimeAgent::getProperties):
      * inspector/InspectorRuntimeAgent.h:
      * inspector/InspectorStyleSheet.cpp:
      (WebCore::buildSourceRangeObject):
      (WebCore::buildMediaObject):
      (WebCore::fillMediaListChain):
      (WebCore::InspectorStyle::buildObjectForStyle):
      (WebCore::InspectorStyle::buildArrayForComputedStyle):
      (WebCore::InspectorStyle::styleWithProperties):
      (WebCore::InspectorStyleSheet::create):
      (WebCore::InspectorStyleSheet::InspectorStyleSheet):
      (WebCore::InspectorStyleSheet::buildObjectForStyleSheet):
      (WebCore::InspectorStyleSheet::buildObjectForStyleSheetInfo):
      (WebCore::selectorsFromSource):
      (WebCore::InspectorStyleSheet::buildObjectForSelectorList):
      (WebCore::InspectorStyleSheet::buildObjectForRule):
      (WebCore::InspectorStyleSheet::buildObjectForStyle):
      (WebCore::InspectorStyleSheet::resourceStyleSheetText):
      (WebCore::InspectorStyleSheet::buildArrayForRuleList):
      (WebCore::InspectorStyleSheetForInlineStyle::create):
      (WebCore::InspectorStyleSheetForInlineStyle::InspectorStyleSheetForInlineStyle):
      * inspector/InspectorStyleSheet.h:
      (WebCore::InspectorCSSId::InspectorCSSId):
      (WebCore::InspectorStyleSheet::canBind):
      * inspector/InspectorStyleTextEditor.cpp:
      * inspector/InspectorTimelineAgent.cpp:
      (WebCore::InspectorTimelineAgent::didCreateFrontendAndBackend):
      (WebCore::toProtocol):
      (WebCore::InspectorTimelineAgent::innerAddRecordToTimeline):
      (WebCore::InspectorTimelineAgent::setDOMCounters):
      (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
      (WebCore::InspectorTimelineAgent::sendEvent):
      * inspector/InspectorTimelineAgent.h:
      (WebCore::InspectorTimelineAgent::TimelineRecordEntry::TimelineRecordEntry):
      * inspector/InspectorWebAgentBase.h: Renamed from Source/WebCore/inspector/InspectorAgentRegistry.h.
      (WebCore::InspectorAgentBase::InspectorAgentBase):
      * inspector/InspectorWorkerAgent.cpp:
      (WebCore::InspectorWorkerAgent::InspectorWorkerAgent):
      (WebCore::InspectorWorkerAgent::didCreateFrontendAndBackend):
      * inspector/InspectorWorkerAgent.h:
      * inspector/InstrumentingAgents.cpp:
      * inspector/NetworkResourcesData.cpp:
      * inspector/PageConsoleAgent.cpp:
      (WebCore::InspectableNode::get):
      * inspector/PageDebuggerAgent.cpp:
      * inspector/PageDebuggerAgent.h:
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::didCreateFrontendAndBackend):
      * inspector/PageRuntimeAgent.h:
      * inspector/ScriptArguments.cpp:
      (WebCore::ScriptArguments::create):
      (WebCore::ScriptArguments::ScriptArguments):
      (WebCore::ScriptArguments::argumentAt):
      (WebCore::ScriptArguments::getFirstArgumentAsString):
      * inspector/ScriptArguments.h:
      * inspector/ScriptCallFrame.cpp:
      (WebCore::ScriptCallFrame::buildInspectorObject):
      * inspector/ScriptCallFrame.h:
      * inspector/ScriptCallStack.cpp:
      (WebCore::ScriptCallStack::buildInspectorArray):
      * inspector/ScriptCallStack.h:
      * inspector/ScriptDebugListener.h:
      * inspector/TimelineRecordFactory.cpp:
      * inspector/TimelineRecordFactory.h:
      (WebCore::TimelineRecordFactory::createWebSocketCreateData):
      (WebCore::TimelineRecordFactory::createGenericWebSocketData):
      * inspector/WorkerConsoleAgent.cpp:
      * inspector/WorkerDebuggerAgent.cpp:
      * inspector/WorkerInspectorController.cpp:
      * inspector/WorkerInspectorController.h:
      * inspector/WorkerRuntimeAgent.cpp:
      (WebCore::WorkerRuntimeAgent::didCreateFrontendAndBackend):
      * inspector/WorkerRuntimeAgent.h:
      * page/Console.cpp:
      * page/ContentSecurityPolicy.cpp:
      * page/Frame.cpp:
      * page/PageConsole.cpp:
      * plugins/PluginView.cpp:
      (WebCore::PluginView::performRequest):
      * testing/Internals.cpp:
      (WebCore::Internals::parserMetaData):
      * testing/Internals.h:
      * workers/SharedWorkerGlobalScope.cpp:
      (WebCore::createConnectEvent):
      * workers/WorkerGlobalScope.cpp:
      (WebCore::WorkerGlobalScope::importScripts):
      * workers/WorkerThread.cpp:
      * xml/XMLTreeViewer.cpp:
      * xml/parser/XMLDocumentParser.cpp:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      
      Source/WebKit:
      
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      
      Source/WebKit/blackberry:
      
      * Api/WebPage.cpp:
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * ewk/ewk_frame.cpp:
      
      Source/WebKit/gtk:
      
      * webkit/webkitwebview.cpp:
      
      Source/WebKit/mac:
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      * WebCoreSupport/WebInspectorClient.mm:
      * WebView/WebFrame.mm:
      * WebView/WebView.mm:
      
      Source/WebKit/win:
      
      * WebFrame.cpp:
      * WebView.cpp:
      
      Source/WebKit2:
      
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::performJavaScriptURLRequest):
      * WebProcess/WebPage/WebInspector.cpp:
      * WebProcess/WebPage/WebInspector.h:
      * WebProcess/WebPage/WebPage.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3198444
  3. 10 Dec, 2013 1 commit
    • commit-queue@webkit.org's avatar
      PageConsole::addMessage should automatically determine column number alongside line number · ec979f8f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114319
      
      Patch by László Langó <lango@inf.u-szeged.hu> on 2013-12-10
      Reviewed by Joseph Pecoraro.
      
      Source/WebCore:
      
      * dom/InlineStyleSheetOwner.cpp:
      (WebCore::InlineStyleSheetOwner::InlineStyleSheetOwner):
      * dom/ScriptElement.cpp:
      (WebCore::ScriptElement::ScriptElement):
      * dom/ScriptableDocumentParser.h:
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::styleAttributeChanged):
      * html/parser/HTMLDocumentParser.cpp:
      (WebCore::HTMLDocumentParser::didReceiveParsedChunkFromBackgroundParser):
      (WebCore::HTMLDocumentParser::pumpPendingSpeculations):
      * html/parser/HTMLDocumentParser.h:
      * inspector/InspectorResourceAgent.cpp:
      (WebCore::InspectorResourceAgent::buildInitiatorObject):
      * page/Console.cpp:
      (WebCore::internalAddMessage):
      * page/PageConsole.cpp:
      (WebCore::PageConsole::printSourceURLAndPosition):
      (WebCore::PageConsole::addMessage):
      * page/PageConsole.h:
      * xml/parser/XMLDocumentParser.h:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::XMLDocumentParser::error):
      
      LayoutTests:
      
      * inspector-protocol/page/deny-X-FrameOption-expected.txt: Added.
      * inspector-protocol/page/deny-X-FrameOption.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec979f8f
  4. 30 Sep, 2013 1 commit
    • weinig@apple.com's avatar
      Cleanup PageThrottler and PageConsole a bit · f2ead0f7
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122085
      
      Reviewed by Anders Carlsson.
      
      * html/HTMLMediaElement.h:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::completed):
      * loader/FrameLoader.h:
      * loader/SubresourceLoader.cpp:
      (WebCore::SubresourceLoader::checkForHTTPStatusCodeError):
      (WebCore::SubresourceLoader::didFinishLoading):
      (WebCore::SubresourceLoader::didFail):
      (WebCore::SubresourceLoader::willCancel):
      * loader/SubresourceLoader.h:
      Store the PageActivityAssertionToken as a std::unique_ptr.
      
      * page/Page.cpp:
      (WebCore::Page::Page):
      Use createOwned and pass this by reference for the PageThrottler and PageConsole.
      (WebCore::Page::~Page):
      Remove unnecessary clearing of an OwnPtr that is about to be destroyed.
      * page/Page.h:
      Make m_pageThrottler const and return it as a reference.
      
      * page/PageActivityAssertionToken.cpp:
      (WebCore::PageActivityAssertionToken::PageActivityAssertionToken):
      (WebCore::PageActivityAssertionToken::~PageActivityAssertionToken):
      * page/PageActivityAssertionToken.h:
      Take the PageThrottler by reference in the constructor. It is never null.
      
      * page/PageConsole.cpp:
      (WebCore::PageConsole::PageConsole):
      (WebCore::PageConsole::~PageConsole):
      (WebCore::PageConsole::addMessage):
      * page/PageConsole.h:
      Pass and store the Page as a reference and remove an extraneous null check. Remove
      the create function.
      
      * page/PageThrottler.cpp:
      (WebCore::PageThrottler::PageThrottler):
      (WebCore::PageThrottler::~PageThrottler):
      (WebCore::PageThrottler::createActivityToken):
      (WebCore::PageThrottler::throttlePage):
      (WebCore::PageThrottler::unthrottlePage):
      (WebCore::PageThrottler::addActivityToken):
      (WebCore::PageThrottler::removeActivityToken):
      * page/PageThrottler.h:
      Pass and store the Page as a reference. Move the creation of PageActivityAssertionToken here
      to aid encapsulation.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2ead0f7
  5. 19 Sep, 2013 1 commit
    • ap@apple.com's avatar
      Layout Test http/tests/security/canvas-remote-read-remote-image-redirect.html is flaky · 8fa93cc1
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121458
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      The code to automagically produce line numbers is quite fragile. Added some FIXMEs,
      and added an issue that was making reporting flaky for code is JS event handlers
      executed while parsing was paused.
      
      * page/PageConsole.cpp: (WebCore::PageConsole::addMessage): Use actual "script is
      running" check instead of "parsing a script element" one.
      
      LayoutTests:
      
      * fast/frames/sandboxed-iframe-attribute-parsing-06-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-07-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-08-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-09-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-10-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-11-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-12-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-13-expected.txt:
      * fast/frames/sandboxed-iframe-attribute-parsing-14-expected.txt:
      * fast/frames/sandboxed-iframe-parsing-space-characters-expected.txt:
      * fast/frames/sandboxed-iframe-scripting-04-expected.txt:
      * http/tests/security/contentSecurityPolicy/sandbox-empty-expected.txt:
      * http/tests/security/contentSecurityPolicy/sandbox-empty-subframe-expected.txt:
      * http/tests/security/contentSecurityPolicy/sandbox-in-http-header-control-expected.txt:
      * http/tests/security/contentSecurityPolicy/sandbox-in-http-header-expected.txt:
      * http/tests/security/contentSecurityPolicy/sandbox-invalid-header-expected.txt:
      * http/tests/security/isolatedWorld/sandboxed-iframe-expected.txt:
      * media/video-controls-no-scripting-expected.txt:
      We now get a line number for blocked inline scripts, which is a progression.
      It is the line number for the closing </script>, which is not ideal, but better
      than nothing.
      
      * http/tests/security/mixedContent/insecure-script-in-iframe-expected.txt:
      * http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe-expected.txt:
      Also a progression - we now get a line number for offending <script>.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fa93cc1
  6. 14 Sep, 2013 1 commit
    • weinig@apple.com's avatar
      Replace ScriptState with JSC::ExecState · 4da3e8de
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121336
      
      Reviewed by Darin Adler.
      
      * Modules/indexeddb/IDBCursor.h:
      * Modules/indexeddb/IDBObjectStore.h:
      * bindings/js/JSInjectedScriptHostCustom.cpp:
      * bindings/js/JSInjectedScriptManager.cpp:
      * bindings/js/JSNodeCustom.cpp:
      * bindings/js/JSNodeFilterCondition.h:
      * bindings/js/ScriptController.cpp:
      * bindings/js/ScriptDebugServer.cpp:
      * bindings/js/ScriptDebugServer.h:
      * bindings/js/ScriptEventListener.cpp:
      * bindings/js/ScriptEventListener.h:
      * bindings/js/ScriptFunctionCall.cpp:
      * bindings/js/ScriptFunctionCall.h:
      * bindings/js/ScriptObject.cpp:
      * bindings/js/ScriptObject.h:
      * bindings/js/ScriptProfiler.cpp:
      * bindings/js/ScriptProfiler.h:
      * bindings/js/ScriptState.cpp:
      * bindings/js/ScriptState.h:
      * bindings/js/ScriptValue.cpp:
      * bindings/js/ScriptValue.h:
      * bindings/js/SerializedScriptValue.cpp:
      * bindings/js/SerializedScriptValue.h:
      * dom/Document.cpp:
      * dom/Document.h:
      * dom/NodeFilter.cpp:
      * dom/NodeFilter.h:
      * dom/NodeFilterCondition.cpp:
      * dom/NodeFilterCondition.h:
      * dom/NodeIterator.cpp:
      * dom/NodeIterator.h:
      * dom/ScriptExecutionContext.cpp:
      * dom/ScriptExecutionContext.h:
      * dom/Traversal.cpp:
      * dom/Traversal.h:
      * dom/TreeWalker.cpp:
      * dom/TreeWalker.h:
      * inspector/ConsoleMessage.cpp:
      * inspector/ConsoleMessage.h:
      * inspector/InjectedScript.h:
      * inspector/InjectedScriptBase.cpp:
      * inspector/InjectedScriptBase.h:
      * inspector/InjectedScriptCanvasModule.cpp:
      * inspector/InjectedScriptCanvasModule.h:
      * inspector/InjectedScriptHost.cpp:
      * inspector/InjectedScriptHost.h:
      * inspector/InjectedScriptManager.cpp:
      * inspector/InjectedScriptManager.h:
      * inspector/InjectedScriptModule.cpp:
      * inspector/InjectedScriptModule.h:
      * inspector/InspectorAgent.cpp:
      * inspector/InspectorCanvasAgent.cpp:
      * inspector/InspectorCanvasAgent.h:
      * inspector/InspectorConsoleAgent.cpp:
      * inspector/InspectorConsoleAgent.h:
      * inspector/InspectorConsoleInstrumentation.h:
      * inspector/InspectorDOMAgent.cpp:
      * inspector/InspectorDebuggerAgent.cpp:
      * inspector/InspectorDebuggerAgent.h:
      * inspector/InspectorFrontendClientLocal.cpp:
      * inspector/InspectorFrontendHost.cpp:
      * inspector/InspectorIndexedDBAgent.cpp:
      * inspector/InspectorInstrumentation.cpp:
      * inspector/InspectorInstrumentation.h:
      * inspector/PageConsoleAgent.cpp:
      * inspector/PageDebuggerAgent.cpp:
      * inspector/PageRuntimeAgent.cpp:
      * inspector/PageRuntimeAgent.h:
      * inspector/ScriptArguments.cpp:
      * inspector/ScriptArguments.h:
      * inspector/ScriptDebugListener.h:
      * inspector/WorkerDebuggerAgent.cpp:
      * inspector/WorkerRuntimeAgent.cpp:
      * page/Console.cpp:
      * page/Console.h:
      * page/ContentSecurityPolicy.cpp:
      * page/ContentSecurityPolicy.h:
      * page/PageConsole.cpp:
      * page/PageConsole.h:
      * workers/WorkerGlobalScope.cpp:
      * workers/WorkerGlobalScope.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4da3e8de
  7. 19 Aug, 2013 1 commit
  8. 11 Aug, 2013 1 commit
  9. 17 May, 2013 1 commit
    • akling@apple.com's avatar
      Page::chrome() should return a reference. · bd774814
      akling@apple.com authored
      <http://webkit.org/b/116185>
      
      Source/WebCore:
      
      Reviewed by Anders Carlsson.
      
      A Page's chrome() can never be null. Change Page::chrome() to return a reference to reflect this.
      Also, make Page::m_chrome a const member variable so nobody will accidentally set it to null.
      
      Source/WebKit/blackberry:
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit/efl:
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit/gtk:
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit/mac:
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit/qt:
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit/win:
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit2:
      
      Reviewed by Anders Carlsson.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd774814
  10. 13 May, 2013 1 commit
    • andersca@apple.com's avatar
      Stop including UnusedParam.h · ed9bde7b
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=116003
      
      Reviewed by Sam Weinig.
      
      UnusedParam.h is empty now so there's no need to include it anymore.
      
      Source/JavaScriptCore:
      
      * API/APICast.h:
      * API/tests/JSNode.c:
      * API/tests/JSNodeList.c:
      * API/tests/minidom.c:
      * API/tests/testapi.c:
      * assembler/AbstractMacroAssembler.h:
      * assembler/MacroAssemblerCodeRef.h:
      * bytecode/CodeBlock.cpp:
      * heap/HandleStack.h:
      * interpreter/JSStackInlines.h:
      * jit/CompactJITCodeMap.h:
      * jit/ExecutableAllocator.h:
      * parser/SourceProvider.h:
      * runtime/DatePrototype.cpp:
      * runtime/JSNotAnObject.cpp:
      * runtime/JSSegmentedVariableObject.h:
      * runtime/JSVariableObject.h:
      * runtime/Options.cpp:
      * runtime/PropertyOffset.h:
      
      Source/WebCore:
      
      * Modules/encryptedmedia/CDMPrivateAVFoundation.mm:
      * Modules/indexeddb/IDBFactoryBackendImpl.cpp:
      * Modules/indexeddb/IDBObjectStore.cpp:
      * Modules/webdatabase/DatabaseServer.cpp:
      * Modules/webdatabase/DatabaseThread.cpp:
      * bindings/js/JSDOMWindowBase.cpp:
      * bindings/objc/DOMObject.mm:
      * css/CSSCursorImageValue.cpp:
      * css/DeprecatedStyleBuilder.cpp:
      * dom/EventDispatcher.cpp:
      * dom/Node.cpp:
      * editing/AlternativeTextController.h:
      * editing/Editor.cpp:
      * html/HTMLPlugInElement.cpp:
      * html/canvas/CanvasRenderingContext2D.cpp:
      * html/canvas/OESVertexArrayObject.h:
      * html/parser/HTMLConstructionSite.cpp:
      * html/parser/HTMLTokenizer.cpp:
      * html/track/InbandTextTrack.cpp:
      * inspector/InspectorCanvasInstrumentation.h:
      * inspector/InspectorConsoleInstrumentation.h:
      * inspector/InspectorController.cpp:
      * inspector/InspectorCounters.h:
      * inspector/InspectorDatabaseInstrumentation.h:
      * inspector/InspectorInstrumentation.h:
      * loader/DocumentThreadableLoader.cpp:
      * loader/PingLoader.cpp:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * loader/cache/CachedResourceLoader.cpp:
      * loader/mac/DocumentLoaderMac.cpp:
      * page/ChromeClient.h:
      * page/Console.cpp:
      * page/FrameView.cpp:
      * page/PageConsole.cpp:
      * page/animation/AnimationController.cpp:
      * page/animation/ImplicitAnimation.cpp:
      * page/animation/KeyframeAnimation.cpp:
      * platform/LocalizedStrings.cpp:
      * platform/ScrollAnimator.h:
      * platform/ThreadGlobalData.cpp:
      * platform/blackberry/AsyncFileSystemBlackBerry.cpp:
      * platform/graphics/Font.cpp:
      * platform/graphics/GlyphBuffer.h:
      * platform/graphics/Gradient.cpp:
      * platform/graphics/ShadowBlur.cpp:
      * platform/graphics/SimpleFontData.cpp:
      * platform/graphics/SimpleFontData.h:
      * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
      * platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm:
      * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/graphics/blackberry/GradientBlackBerry.cpp:
      * platform/graphics/blackberry/GraphicsContextBlackBerry.cpp:
      * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      * platform/graphics/ca/mac/WebTileLayer.mm:
      * platform/graphics/ca/win/PlatformCAAnimationWin.cpp:
      * platform/graphics/cg/GraphicsContextCG.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/cg/ImageSourceCG.cpp:
      * platform/graphics/clutter/PlatformClutterAnimation.cpp:
      * platform/graphics/filters/ValidatedCustomFilterOperation.cpp:
      * platform/graphics/gstreamer/GStreamerVersioning.cpp:
      * platform/graphics/mac/GraphicsContext3DMac.mm:
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      * platform/graphics/mac/SimpleFontDataMac.mm:
      * platform/graphics/mac/WebGLLayer.mm:
      * platform/graphics/mac/WebLayer.mm:
      * platform/graphics/mac/WebTiledLayer.mm:
      * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
      * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      * platform/graphics/texmap/TextureMapper.h:
      * platform/graphics/wince/ImageBufferWinCE.cpp:
      * platform/mac/PasteboardMac.mm:
      * platform/mac/ScrollAnimatorMac.mm:
      * platform/mac/ScrollViewMac.mm:
      * platform/mac/ScrollbarThemeMac.mm:
      * platform/mac/SharedTimerMac.mm:
      * platform/mac/WebCoreFullScreenPlaceholderView.mm:
      * platform/mac/WebCoreObjCExtras.mm:
      * platform/mac/WebFontCache.mm:
      * platform/mac/WebVideoFullscreenController.mm:
      * platform/mac/WebVideoFullscreenHUDWindowController.mm:
      * platform/mac/WebWindowAnimation.mm:
      * platform/network/blackberry/CredentialStorageBlackBerry.cpp:
      * platform/network/cf/ResourceErrorCF.cpp:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/win/ResourceHandleWin.cpp:
      * platform/text/TextEncodingDetectorICU.cpp:
      * rendering/RenderFlowThread.h:
      * rendering/RenderImage.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderObject.cpp:
      * rendering/RenderTreeAsText.cpp:
      * rendering/svg/RenderSVGResourceClipper.cpp:
      * rendering/svg/RenderSVGResourceFilter.cpp:
      * rendering/svg/RenderSVGResourceGradient.cpp:
      * rendering/svg/RenderSVGResourceMasker.cpp:
      * rendering/svg/SVGRenderSupport.cpp:
      * rendering/svg/SVGTextLayoutEngineSpacing.cpp:
      * workers/WorkerContext.cpp:
      * workers/WorkerScriptLoader.cpp:
      * xml/XMLHttpRequest.cpp:
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      
      Source/WebKit/efl:
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      * ewk/ewk_js.cpp:
      * ewk/ewk_security_origin.cpp:
      * ewk/ewk_view.cpp:
      * ewk/ewk_web_database.cpp:
      
      Source/WebKit/gtk:
      
      * webkit/webkitapplicationcache.cpp:
      
      Source/WebKit/mac:
      
      * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
      * WebView/WebDashboardRegion.mm:
      * WebView/WebFullScreenController.mm:
      
      Source/WebKit/win:
      
      * WebSecurityOrigin.cpp:
      
      Source/WebKit2:
      
      * UIProcess/API/C/WKContext.cpp:
      * UIProcess/API/C/WKInspector.cpp:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/efl/ewk_text_checker.cpp:
      * UIProcess/API/efl/ewk_view.cpp:
      * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
      * UIProcess/API/efl/tests/test_ewk2_view.cpp:
      * UIProcess/mac/WKFullScreenWindowController.mm:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
      
      Source/WTF:
      
      * wtf/Atomics.h:
      * wtf/BoundsCheckedPointer.h:
      * wtf/DateMath.h:
      * wtf/FastMalloc.cpp:
      * wtf/NumberOfCores.cpp:
      * wtf/OSAllocator.h:
      * wtf/OSAllocatorPosix.cpp:
      * wtf/PageAllocation.h:
      * wtf/RefCounted.h:
      * wtf/TCSystemAlloc.cpp:
      * wtf/ThreadingPthreads.cpp:
      * wtf/Vector.h:
      * wtf/dtoa/cached-powers.cc:
      * wtf/dtoa/fixed-dtoa.cc:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ed9bde7b
  11. 25 Apr, 2013 1 commit
    • joepeck@webkit.org's avatar
      Web Inspector: ConsoleMessage should include line and column number where possible · 379c8a1f
      joepeck@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114929
      
      Source/WebCore:
      
        - adds "m_column" to WebCore::ConsoleMessage
        - adds "column" to Console.ConsoleMessage in the inspector protocol
        - set the column number for console.* functions (Console.cpp)
        - set the column number for XSLT errors (XSLTProcessor)
        - plumb columnNumber everywhere else it is needed, set it to 0 and file
          bugs for all cases missing columnNumber that could provide it.
      
      Reviewed by Timothy Hatcher.
      
      Test: inspector/console/console-url-line-column.html
            inspector/console/console-messages-stack-traces.html
      
      * inspector/ConsoleMessage.h:
      * inspector/ConsoleMessage.cpp:
      (WebCore::ConsoleMessage::ConsoleMessage):
      (WebCore::ConsoleMessage::autogenerateMetadata):
      (WebCore::ConsoleMessage::addToFrontend):
      (WebCore::ConsoleMessage::isEqual):
      Add m_column and set it where appropriate.
      
      * inspector/Inspector.json:
      Add column property to Console.ConsoleMessage.
      
      * page/Console.cpp:
      (WebCore::internalAddMessage):
      (WebCore::Console::profile):
      Set columnNumber like lineNumber from the last stack frame.
      (WebCore::Console::groupEnd):
      Line and column are unused in this message type, set both to 0.
      
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::XSLTProcessor::parseErrorFunc):
      * xml/XSLTProcessorQt.cpp:
      (WebCore::XSLTMessageHandler::handleMessage):
      Add real column numbers, the XSLT handlers already had it available.
      
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * css/CSSParser.cpp:
      (WebCore::CSSParser::logError):
      * dom/ScriptExecutionContext.h:
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::addConsoleMessage):
      * dom/Document.cpp:
      (WebCore::Document::logExceptionToConsole):
      (WebCore::Document::addMessage):
      * dom/Document.h:
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::addMessageToConsole):
      (WebCore::InspectorConsoleAgent::stopTiming):
      (WebCore::InspectorConsoleAgent::didFinishXHRLoading):
      (WebCore::InspectorConsoleAgent::didReceiveResponse):
      (WebCore::InspectorConsoleAgent::didFailLoading):
      * inspector/InspectorConsoleAgent.h:
      * inspector/InspectorConsoleInstrumentation.h:
      (WebCore::InspectorInstrumentation::addMessageToConsole):
      (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsole):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::addMessageToConsoleImpl):
      (WebCore::InspectorInstrumentation::addStartProfilingMessageToConsoleImpl):
      (WebCore::InspectorInstrumentation::addProfileImpl):
      * inspector/InspectorInstrumentation.h:
      (InspectorInstrumentation):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::addProfile):
      (WebCore::InspectorProfilerAgent::addProfileFinishedMessageToConsole):
      (WebCore::InspectorProfilerAgent::addStartProfilingMessageToConsole):
      (WebCore::InspectorProfilerAgent::start):
      (WebCore::InspectorProfilerAgent::stop):
      * inspector/InspectorProfilerAgent.h:
      (InspectorProfilerAgent):
      * loader/EmptyClients.h:
      (WebCore::EmptyChromeClient::addMessageToConsole):
      * page/ChromeClient.h:
      (WebCore::ChromeClient::addMessageToConsole):
      * page/ContentSecurityPolicy.cpp:
      (WebCore::ContentSecurityPolicy::logToConsole):
      * page/PageConsole.cpp:
      (WebCore::PageConsole::addMessage):
      * page/PageConsole.h:
      * workers/DefaultSharedWorkerRepository.cpp:
      (SharedWorkerProxy):
      (WebCore::postExceptionTask):
      (WebCore::SharedWorkerProxy::postExceptionToWorkerObject):
      (WebCore::postConsoleMessageTask):
      (WebCore::SharedWorkerProxy::postConsoleMessageToWorkerObject):
      * workers/SharedWorkerContext.cpp:
      (WebCore::SharedWorkerContext::logExceptionToConsole):
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::logExceptionToConsole):
      (WebCore::WorkerContext::addConsoleMessage):
      (WebCore::WorkerContext::addMessage):
      (WebCore::WorkerContext::addMessageToWorkerConsole):
      * workers/WorkerContext.h:
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::WorkerExceptionTask::create):
      (WebCore::WorkerExceptionTask::WorkerExceptionTask):
      (WebCore::WorkerExceptionTask::performTask):
      (WorkerExceptionTask):
      (WebCore::WorkerMessagingProxy::postExceptionToWorkerObject):
      (WebCore::postConsoleMessageTask):
      (WebCore::WorkerMessagingProxy::postConsoleMessageToWorkerObject):
      * workers/WorkerMessagingProxy.h:
      (WorkerMessagingProxy):
      * workers/WorkerReportingProxy.h:
      (WorkerReportingProxy):
      Plumb columnNumber through where appropriate. File bugs where missing.
      
      Source/WebKit/blackberry:
      
      Reviewed by Timothy Hatcher.
      
      * Api/DumpRenderTreeClient.h:
      * Api/WebPageClient.h:
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      (WebCore::ChromeClientBlackBerry::addMessageToConsole):
      * WebCoreSupport/ChromeClientBlackBerry.h:
      (ChromeClientBlackBerry):
      
      Source/WebKit/efl:
      
      Reviewed by Timothy Hatcher.
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      (WebCore::ChromeClientEfl::addMessageToConsole):
      * WebCoreSupport/ChromeClientEfl.h:
      (ChromeClientEfl):
      
      Source/WebKit/gtk:
      
      Reviewed by Timothy Hatcher.
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::ChromeClient::addMessageToConsole):
      * WebCoreSupport/ChromeClientGtk.h:
      (ChromeClient):
      
      Source/WebKit/mac:
      
      Reviewed by Timothy Hatcher.
      
      * WebCoreSupport/WebChromeClient.h:
      * WebCoreSupport/WebChromeClient.mm:
      (WebChromeClient::addMessageToConsole):
      
      Source/WebKit/qt:
      
      Reviewed by Timothy Hatcher.
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::addMessageToConsole):
      * WebCoreSupport/ChromeClientQt.h:
      
      Source/WebKit/win:
      
      Reviewed by Timothy Hatcher.
      
      * WebCoreSupport/WebChromeClient.cpp:
      (WebChromeClient::addMessageToConsole):
      * WebCoreSupport/WebChromeClient.h:
      
      Source/WebKit/wince:
      
      Reviewed by Timothy Hatcher.
      
      * WebCoreSupport/ChromeClientWinCE.cpp:
      (WebKit::ChromeClientWinCE::addMessageToConsole):
      * WebCoreSupport/ChromeClientWinCE.h:
      
      Source/WebKit2:
      
      Reviewed by Timothy Hatcher.
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::addMessageToConsole):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      
      LayoutTests:
      
      Update a test that was outputting the url and line number of console
      method calls, to output the column number as well. Added a test that
      verifies that console API messages have stack traces if appropriate.
      
      Reviewed by Timothy Hatcher.
      
      * inspector/console/console-url-and-line-expected.txt: Removed.
      * inspector/console/console-url-line-column-expected.txt: Added.
      * inspector/console/console-url-line-column.html: Renamed from LayoutTests/inspector/console/console-url-and-line.html.
      * inspector/console/console-messages-stack-traces-expected.txt: Added.
      * inspector/console/console-messages-stack-traces.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      379c8a1f
  12. 05 Apr, 2013 1 commit
    • rniwa@webkit.org's avatar
      Remove Chromium code from WebCore/page · 70c7d4da
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=114013
      
      Reviewed by Anders Carlsson.
      
      Removed.
      
      * page/Console.cpp:
      (WebCore::Console::time):
      (WebCore::Console::timeEnd):
      * page/EventHandler.cpp:
      (WebCore::shouldGesturesTriggerActive):
      (WebCore::EventHandler::handleMouseReleaseEvent):
      (WebCore):
      (WebCore::EventHandler::sendScrollEventToView):
      * page/FeatureObserver.cpp:
      (WebCore::FeatureObserver::updateMeasurements):
      * page/FrameView.cpp:
      (WebCore::FrameView::layout):
      (WebCore::FrameView::useSlowRepaints):
      * page/PageConsole.cpp:
      * page/PageGroup.cpp:
      (WebCore::PageGroup::isLinkVisited):
      (WebCore::PageGroup::addVisitedLink):
      * page/Settings.cpp:
      (WebCore):
      * page/android: Removed.
      * page/chromium: Removed.
      * page/chromium/ChromeClientChromium.h: Removed.
      * page/chromium/DragControllerChromium.cpp: Removed.
      * page/chromium/EventHandlerChromium.cpp: Removed.
      * page/scrolling/ScrollingCoordinator.cpp:
      (WebCore::ScrollingCoordinator::create):
      (WebCore):
      * page/scrolling/ScrollingCoordinator.h:
      (ScrollingCoordinator):
      * page/scrolling/ScrollingTree.cpp:
      (WebCore):
      * page/scrolling/ScrollingTree.h:
      (ScrollingTree):
      * page/scrolling/chromium: Removed.
      * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp: Removed.
      * page/scrolling/chromium/ScrollingCoordinatorChromium.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      70c7d4da
  13. 20 Mar, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Web Inspector: Plumbing CSS warnings · c1c289ee
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111334
      
      Patch by Sergey Ryazanov <serya@chromium.org> on 2013-03-20
      Reviewed by Pavel Feldman.
      
      Adding a framework for plumbing CSS warnings from CSSParser/grammar to the Inspector console.
      
      * css/CSSParser.cpp:
      (WebCore::CSSParser::CSSParser):
      (WebCore::CSSParser::parseSheet):
      (WebCore::CSSParser::syntaxError):
      (WebCore):
      (WebCore::CSSParser::isLoggingErrors):
      (WebCore::CSSParser::logError):
      * css/CSSParser.h:
      (CSSParser):
      (CSSParser::Location):
      (WebCore):
      * css/StyleSheetContents.cpp:
      (WebCore::StyleSheetContents::parseAuthorStyleSheet):
      (WebCore::StyleSheetContents::parseString):
      (WebCore::StyleSheetContents::parseStringAtLine):
      * css/StyleSheetContents.h:
      (StyleSheetContents):
      * dom/StyleElement.cpp:
      (WebCore::StyleElement::createSheet):
      * page/PageConsole.cpp:
      (WebCore::PageConsole::addMessage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1c289ee
  14. 19 Mar, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Web Inspector: split Console into two entities, a web-facing bound object and page console. · 7195ba53
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=111578
      
      Patch by Sergey Ryazanov <serya@chromium.org> on 2013-03-19
      Reviewed by Vsevolod Vlasov.
      
      Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.order:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.vcxproj/WebCore.vcxproj.filters:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * bindings/v8/custom/V8CustomXPathNSResolver.cpp:
      (WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):
      * dom/Document.cpp:
      (WebCore::Document::addConsoleMessage):
      (WebCore::Document::addMessage):
      * inspector/PageDebuggerAgent.cpp:
      (WebCore::PageDebuggerAgent::muteConsole):
      (WebCore::PageDebuggerAgent::unmuteConsole):
      * inspector/PageRuntimeAgent.cpp:
      (WebCore::PageRuntimeAgent::muteConsole):
      (WebCore::PageRuntimeAgent::unmuteConsole):
      * page/Console.cpp:
      (WebCore::internalAddMessage):
      * page/Console.h:
      (WebCore):
      (Console):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::pageConsole):
      (WebCore):
      (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
      (WebCore::DOMWindow::printErrorMessage):
      * page/DOMWindow.h:
      (WebCore):
      (DOMWindow):
      * page/Page.cpp:
      (WebCore::Page::Page):
      * page/Page.h:
      (WebCore):
      (WebCore::Page::console):
      (Page):
      * page/PageConsole.cpp: Added.
      (WebCore::PageConsole::PageConsole):
      (WebCore):
      (WebCore::PageConsole::~PageConsole):
      (WebCore::PageConsole::printSourceURLAndLine):
      (WebCore::PageConsole::printMessageSourceAndLevelPrefix):
      (WebCore::PageConsole::addMessage):
      (WebCore::PageConsole::mute):
      (WebCore::PageConsole::unmute):
      (WebCore::PageConsole::shouldPrintExceptions):
      (WebCore::PageConsole::setShouldPrintExceptions):
      * page/PageConsole.h: Copied from Source/WebCore/page/Console.h.
      (WebCore):
      (PageConsole):
      (WebCore::PageConsole::create):
      (WebCore::PageConsole::page):
      * xml/XSLStyleSheetLibxslt.cpp:
      (WebCore::XSLStyleSheet::parseString):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::XSLTProcessor::parseErrorFunc):
      (WebCore::docLoaderFunc):
      
      Source/WebKit/mac:
      
      * Misc/WebCoreStatistics.mm:
      (+[WebCoreStatistics shouldPrintExceptions]):
      (+[WebCoreStatistics setShouldPrintExceptions:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146208 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7195ba53