1. 13 Sep, 2012 1 commit
    • loislo@chromium.org's avatar
      Web Inspector: NMI: migrate core instrumentation code to WTF namespace · 41ab4de1
      loislo@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96511
      
      Reviewed by Yury Semikhatsky.
      
      After moving core NMI code to WTF namespace I removed forward declarations
      of MemoryObjectInfo and MemoryInstrumentation from WebCore headers and add
      forward declaration into wtf/Forward.h
      
      Source/WebCore:
      
      * bindings/v8/DOMDataStore.h:
      (WebCore):
      * bindings/v8/ScriptProfiler.h:
      (WebCore):
      * bindings/v8/V8DOMMap.h:
      (WebCore):
      * bindings/v8/V8PerIsolateData.h:
      (WebCore):
      * bindings/v8/V8ValueCache.h:
      (WebCore):
      * css/CSSProperty.h:
      * css/CSSRule.h:
      (WebCore):
      * css/CSSSelectorList.h:
      (WebCore):
      * css/CSSStyleDeclaration.h:
      (WebCore):
      * css/CSSStyleSheet.h:
      (WebCore):
      * css/CSSValue.h:
      * css/MediaList.h:
      (WebCore):
      * css/MediaQuery.h:
      * css/MediaQueryExp.h:
      * css/StylePropertySet.h:
      (WebCore):
      * css/StyleResolver.h:
      * css/StyleRule.h:
      (WebCore):
      * css/StyleRuleImport.h:
      (WebCore):
      * css/StyleSheetContents.h:
      (WebCore):
      * css/WebKitCSSKeyframeRule.h:
      * css/WebKitCSSKeyframesRule.h:
      (WebCore):
      * css/WebKitCSSMixFunctionValue.h:
      * dom/DocumentEventQueue.h:
      (WebCore):
      * dom/ElementAttributeData.h:
      (WebCore):
      * dom/Event.h:
      (WebCore):
      * dom/Node.h:
      (WebCore):
      * dom/WebCoreMemoryInstrumentation.cpp:
      (WTF):
      (WTF::WebCore::KURL):
      * dom/WebCoreMemoryInstrumentation.h:
      (WebCore):
      (WTF):
      * inspector/MemoryInstrumentationImpl.h:
      * loader/DocumentLoader.h:
      (WebCore):
      * loader/FrameLoader.h:
      (WebCore):
      * loader/ResourceLoader.h:
      (WebCore):
      * loader/SubstituteData.h:
      * loader/cache/CachedCSSStyleSheet.h:
      (WebCore):
      * loader/cache/CachedRawResource.h:
      (WebCore):
      * loader/cache/CachedResource.h:
      (WebCore):
      * loader/cache/CachedResourceHandle.h:
      * loader/cache/CachedResourceLoader.h:
      (WebCore):
      * loader/cache/CachedScript.h:
      (WebCore):
      * loader/cache/CachedShader.h:
      * loader/cache/CachedXSLStyleSheet.h:
      (WebCore):
      * loader/cache/MemoryCache.h:
      (WebCore):
      * page/Frame.h:
      (WebCore):
      * platform/SharedBuffer.h:
      * platform/graphics/CrossfadeGeneratedImage.h:
      (WebCore):
      * platform/graphics/Image.h:
      (WebCore):
      * platform/network/FormData.h:
      (WebCore):
      * platform/network/ResourceRequestBase.h:
      * platform/network/ResourceResponseBase.h:
      * rendering/style/RenderStyle.h:
      (WebCore):
      * rendering/style/StyleRareInheritedData.h:
      (WebCore):
      * rendering/style/StyleRareNonInheritedData.h:
      (WebCore):
      
      Source/WTF:
      
      * wtf/Forward.h:
      (WTF):
      * wtf/MemoryInstrumentation.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41ab4de1
  2. 30 Aug, 2012 1 commit
    • benjamin@webkit.org's avatar
      Replace JSC::UString by WTF::String · cff06e46
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95271
      
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-08-30
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore: 
      
      Having JSC::UString and WTF::String increase the complexity of working on WebKit, and
      add useless conversions in the bindings. It also cause some code bloat.
      
      The performance advantages of UString have been ported over in previous patches. This patch
      is the last step: getting rid of UString.
      
      In addition to the simplified code, this also reduce the binary size by 15kb on x86_64.
      
      * API/OpaqueJSString.cpp:
      (OpaqueJSString::ustring):
      * runtime/Identifier.h:
      (JSC::Identifier::ustring):
      To avoid changing everything at once, the function named ustring() were kept as is. They
      will be renamed in a follow up patch.
      
      * runtime/JSString.h:
      (JSC::JSString::string):
      (JSC::JSValue::toWTFString):
      (JSC::inlineJSValueNotStringtoString):
      (JSC::JSValue::toWTFStringInline):
      Since JSValue::toString() already exist (and return the JSString), the direct accessor is renamed
      to ::toWTFString(). We may change ::string() to ::jsString() and ::toWTFString() to ::toString()
      in the future.
      
      * runtime/StringPrototype.cpp:
      (JSC::substituteBackreferencesSlow): Replace the use of UString::getCharacters<>() by String::getCharactersWithUpconvert<>().
      
      Source/WebCore: 
      
      Update the code to use String instead of UString.
      
      On x86_64, this reduces the binary size by 22kb.
      
      Since it is no longer possible to differenciate JSC::jsString() and WebCore::jsString() by the input
      types, WebCore::jsString() is renated to WebCore::jsStringWithCache().
      
      Since the cache is using a PtrHash, JSC::jsString() is used in place of the old WebCore::jsString() when
      the string is generated locally. This is because the cache can never match in those cases.
      
      Source/WebKit/blackberry: 
      
      Replace UString by String.
      
      * WebCoreSupport/ClientExtension.cpp:
      * WebCoreSupport/PagePopupBlackBerry.cpp:
      (WebCore::PagePopupBlackBerry::installDomFunction):
      
      Source/WebKit/efl: 
      
      Replace UString by String.
      
      * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
      (DumpRenderTreeSupportEfl::sendWebIntentResponse):
      * ewk/ewk_frame.cpp:
      (ewk_frame_script_execute):
      
      Source/WebKit/gtk: 
      
      Replace UString by String.
      
      * gdom/ConvertToGCharPrivate.h:
      (copyAsGchar):
      
      Source/WebKit/mac: 
      
      Get rid of UString, replace it by String, and simplify the code when possible.
      
      On x86_64, this reduces the binary size by 7kb.
      
      * Plugins/Hosted/NetscapePluginHostProxy.mm:
      (identifierFromIdentifierRep):
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::addValueToArray):
      (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
      * Plugins/Hosted/ProxyInstance.mm:
      (WebKit::ProxyRuntimeMethod::create):
      (WebKit::ProxyRuntimeMethod::finishCreation):
      (WebKit::ProxyInstance::getPropertyNames):
      (WebKit::ProxyInstance::methodsNamed):
      (WebKit::ProxyInstance::fieldNamed):
      * WebView/WebFrame.mm:
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
      * WebView/WebScriptDebugDelegate.mm:
      (-[WebScriptCallFrame functionName]):
      (-[WebScriptCallFrame evaluateWebScript:]):
      * WebView/WebScriptDebugger.h:
      (WTF):
      (JSC):
      (WebScriptDebugger):
      * WebView/WebScriptDebugger.mm:
      (toNSURL):
      (WebScriptDebugger::sourceParsed):
      * WebView/WebView.mm:
      (aeDescFromJSValue):
      
      Source/WebKit/qt: 
      
      Replace UString by String.
      
      * Api/qwebelement.cpp:
      (QWebElement::evaluateJavaScript):
      
      Source/WebKit/win: 
      
      Replace UString by String.
      
      * WebFrame.cpp:
      (WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
      * WebView.cpp:
      (WebView::stringByEvaluatingJavaScriptFromString):
      
      Source/WebKit/wx: 
      
      Update the #includes to use the correct types.
      
      * WebFrame.cpp:
      * WebView.cpp:
      
      Source/WebKit2: 
      
      Update to code to switch from UString to String.
      
      * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
      (WebKit::JSNPMethod::finishCreation):
      * WebProcess/Plugins/Netscape/JSNPMethod.h:
      (WebKit::JSNPMethod::create):
      (JSNPMethod):
      * WebProcess/Plugins/Netscape/JSNPObject.cpp:
      (WebKit::npIdentifierFromIdentifier):
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      (WebKit::NPRuntimeObjectMap::evaluate):
      (WebKit::NPRuntimeObjectMap::moveGlobalExceptionToExecState):
      
      Source/WTF: 
      
      * wtf/Platform.h: Useless edit to force a full build. This is needed for some bots for some reason.
      * wtf/text/WTFString.h: Export a symbol that was exported on UString and needed in WebCore.
      
      Add String::getCharactersWithUpconvert<>(), which is similar to String::getCharacters<>() but with the same
      behaviors as UString::getCharacters<>().
      
      String::getCharactersWithUpconvert<>() is useful when manipulating multiple strings, it allow writting code
      using 16bits characters if any of the input String is not 8bit.
      
      Tools: 
      
      Get rid of UString.
      
      * DumpRenderTree/efl/WorkQueueItemEfl.cpp:
      * gdb/webkit.py:
      (WTFStringPrinter.to_string):
      (JSCIdentifierPrinter.to_string):
      (JSCJSStringPrinter.to_string):
      (add_pretty_printers):
      
      Websites/webkit.org: 
      
      Update the coding style to avoid mentioning a class that no longer exist.
      
      * coding/coding-style.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cff06e46
  3. 19 Jun, 2012 1 commit
    • adamk@chromium.org's avatar
      Pass ScriptValue by const ref where possible · 2f9fa62f
      adamk@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=89531
      
      Reviewed by Kentaro Hara.
      
      Previously ScriptValue was sometimes passed by value, sometimes by const ref.
      
      For consistency and optimality, pass by const ref everywhere (except where
      ScriptValue is returned from non-accessor methods).
      
      No new tests, no change in behavior.
      
      * bindings/js/ScriptFunctionCall.h:
      (ScriptCallback):
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::getHeapObjectId):
      * bindings/js/ScriptProfiler.h:
      (ScriptProfiler):
      * bindings/js/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::setException):
      * bindings/js/WorkerScriptController.h:
      (WorkerScriptController):
      * bindings/v8/ScriptFunctionCall.cpp:
      (WebCore::ScriptCallback::ScriptCallback):
      * bindings/v8/ScriptFunctionCall.h:
      (ScriptCallback):
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::getHeapObjectId):
      (WebCore):
      * bindings/v8/ScriptProfiler.h:
      (ScriptProfiler):
      * bindings/v8/ScriptValue.h:
      (WebCore::ScriptValue::operator==):
      (WebCore::ScriptValue::operator!=):
      * bindings/v8/WorkerScriptController.cpp:
      (WebCore::WorkerScriptController::setException):
      * bindings/v8/WorkerScriptController.h:
      (WorkerScriptController):
      * css/MediaQueryListListener.h:
      (WebCore::MediaQueryListListener::create):
      (WebCore::MediaQueryListListener::MediaQueryListListener):
      * dom/CustomEvent.cpp:
      (WebCore::CustomEvent::initCustomEvent):
      * dom/CustomEvent.h:
      (CustomEvent):
      (WebCore::CustomEvent::detail):
      * dom/MessageEvent.h:
      (WebCore::MessageEvent::dataAsScriptValue):
      * dom/PopStateEvent.h:
      (WebCore::PopStateEvent::state):
      * inspector/InjectedScript.cpp:
      (WebCore::InjectedScript::wrapObject):
      * inspector/InjectedScript.h:
      (InjectedScript):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f9fa62f
  4. 11 May, 2012 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: add Profiler.getHeapObjectId command · 503c0f87
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=86211
      
      Reviewed by Pavel Feldman.
      
      Added Profiler.getHeapObjectId command to the protocol which allows to convert remote
      object id to heap snapshot object id.
      
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::getHeapObjectId):
      (WebCore):
      * bindings/js/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::getHeapObjectId):
      (WebCore):
      * bindings/v8/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * inspector/InjectedScript.cpp:
      (WebCore::InjectedScript::findObjectById):
      (WebCore):
      * inspector/InjectedScript.h:
      (InjectedScript):
      * inspector/InjectedScriptSource.js:
      (.):
      * inspector/Inspector.json:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::getHeapObjectId):
      (WebCore):
      * inspector/InspectorProfilerAgent.h:
      (InspectorProfilerAgent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@116768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      503c0f87
  5. 25 Apr, 2012 1 commit
    • mhahnenberg@apple.com's avatar
      WebCore shouldn't call collectAllGarbage directly · 34edae48
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=84897
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore:
      
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Exported symbol
      for reportAbanondedObjectGraph so WebCore can use it.
      * heap/Heap.h: Ditto.
      
      Source/WebCore:
      
      No new tests.
      
      Currently, GCController calls Heap::collectAllGarbage directly, which leads
      to an overload of collections as the timer in GCController and the timer in
      GCActivityCallback compete for collection time and fire independently. As a
      result, we end up doing almost 600 full collections during an in-browser run
      of SunSpider, or 20 full collections on a single load of TechCrunch.
      
      We can do better by preventing WebCore from calling collectAllGarbage directly
      and instead going through Heap::reportAbandonedObjectGraph, since that is what
      WebCore is trying to do--notify the Heap that a lot of garbage may have just
      been generated when we left a page.
      
      * WebCore.exp.in:
      * bindings/js/GCController.cpp: Removed all timer stuff.
      (WebCore::GCController::GCController):
      (WebCore::GCController::garbageCollectSoon): Changed to call Heap::reportAbandonedObjectGraph.
      (WebCore::GCController::garbageCollectNow): Changed to still directly call collectAllGarbage.
      We will deprecate this function soon hopefully.
      * bindings/js/GCController.h: Removed timer stuff.
      (GCController):
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::collectGarbage): Changed to call garbageCollectSoon.
      
      Source/WebKit2:
      
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::didClose): Changed to call garbageCollectSoon. This is the
      function that causes us to do so much collection on page navigation.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@115288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34edae48
  6. 29 Feb, 2012 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: enable Profiles panel for workers · f58fc046
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=79908
      
      Introduced worker profiler agent. Enabled script profiling for
      workers.
      
      Reviewed by Pavel Feldman.
      
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::startForPage):
      (WebCore):
      (WebCore::ScriptProfiler::startForWorkerContext):
      (WebCore::ScriptProfiler::stopForPage):
      (WebCore::ScriptProfiler::stopForWorkerContext):
      * bindings/js/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::startForPage):
      (WebCore):
      (WebCore::ScriptProfiler::startForWorkerContext):
      (WebCore::ScriptProfiler::stopForPage):
      (WebCore::ScriptProfiler::stopForWorkerContext):
      * bindings/v8/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore):
      (PageProfilerAgent):
      (WebCore::PageProfilerAgent::PageProfilerAgent):
      (WebCore::PageProfilerAgent::~PageProfilerAgent):
      (WebCore::PageProfilerAgent::startProfiling):
      (WebCore::PageProfilerAgent::stopProfiling):
      (WebCore::InspectorProfilerAgent::create):
      (WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::~WorkerProfilerAgent):
      (WebCore::WorkerProfilerAgent::startProfiling):
      (WebCore::WorkerProfilerAgent::stopProfiling):
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      (WebCore::InspectorProfilerAgent::start):
      (WebCore::InspectorProfilerAgent::stop):
      * inspector/InspectorProfilerAgent.h:
      (WebCore):
      (InspectorProfilerAgent):
      * inspector/WorkerInspectorController.cpp:
      (WebCore::WorkerInspectorController::WorkerInspectorController):
      (WebCore::WorkerInspectorController::connectFrontend):
      (WebCore::WorkerInspectorController::disconnectFrontend):
      (WebCore::WorkerInspectorController::restoreInspectorStateFromCookie):
      * inspector/WorkerInspectorController.h:
      (WebCore):
      (WorkerInspectorController):
      * inspector/front-end/ProfilesPanel.js:
      * inspector/front-end/inspector.js:
      (WebInspector._createPanels):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f58fc046
  7. 08 Feb, 2012 1 commit
    • yurys@chromium.org's avatar
      Web Inspector: inspected object wrapper should be released by InjectedScript when popover closes · a1270f83
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77972
      
      When object popover is shown the object under cursor is resolved and its
      wrapper is put into 'popover' object wrapper group. The group is discarded
      when the popover closes.
      
      Reviewed by Pavel Feldman.
      
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      * bindings/js/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      (WebCore):
      * bindings/v8/ScriptProfiler.h:
      (WebCore):
      (ScriptProfiler):
      * inspector/Inspector.json:
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::getObjectByHeapObjectId):
      * inspector/InspectorProfilerAgent.h:
      (InspectorProfilerAgent):
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.DetailedHeapshotView.prototype._resolveObjectForPopover):
      * inspector/front-end/JavaScriptSourceFrame.js:
      (WebInspector.JavaScriptSourceFrame):
      (WebInspector.JavaScriptSourceFrame.prototype._resolveObjectForPopover):
      (WebInspector.JavaScriptSourceFrame.prototype._onHidePopover):
      * inspector/front-end/ObjectPopoverHelper.js:
      (WebInspector.ObjectPopoverHelper):
      (WebInspector.ObjectPopoverHelper.prototype._showObjectPopover):
      (WebInspector.ObjectPopoverHelper.prototype._onHideObjectPopover):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1270f83
  8. 17 Oct, 2011 1 commit
    • mnaganov@chromium.org's avatar
      Web Inspector: [Chromium] Add an ability to look up and explore an object from a heap profile. · 90b24e89
      mnaganov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=61179
      
      This is exteremely helpful when dealing with DOM wrappers, as
      their properties are mostly implemented with getters and thus not
      stored in heap snapshots.
      
      Reviewed by Pavel Feldman.
      
      * English.lproj/localizedStrings.js:
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      * bindings/js/ScriptProfiler.h:
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      * bindings/v8/ScriptProfiler.h:
      * inspector/Inspector.json:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::create):
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      (WebCore::InspectorProfilerAgent::getObjectByHeapObjectId):
      * inspector/InspectorProfilerAgent.h:
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGridNode.prototype.hasHoverMessage.false.queryObjectContent):
      (WebInspector.HeapSnapshotGenericObjectNode):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent.else.formatResult):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.shortenWindowURL):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.DetailedHeapshotView.prototype._showObjectPopover):
      * inspector/front-end/HeapSnapshot.js:
      (WebInspector.HeapSnapshotNode.prototype.get canBeQueried):
      (WebInspector.HeapSnapshotNode.prototype.get flags):
      (WebInspector.HeapSnapshotNode.prototype.get isDOMWindow):
      (WebInspector.HeapSnapshot.prototype._init):
      (WebInspector.HeapSnapshot.prototype.dispose):
      (WebInspector.HeapSnapshot.prototype._flagsOfNode):
      (WebInspector.HeapSnapshot.prototype._calculateFlags):
      (WebInspector.HeapSnapshot.prototype.updateStaticData):
      (WebInspector.HeapSnapshotNodesProvider.prototype._serialize):
      * inspector/front-end/HeapSnapshotProxy.js:
      (WebInspector.HeapSnapshotProxy.prototype.get nodeFlags):
      * inspector/front-end/RemoteObject.js:
      (WebInspector.RemoteObject.fromError):
      * inspector/front-end/heapProfiler.css:
      (.detailed-heapshot-view tr:not(.selected) td.object-column span.highlight):
      
      * inspector/profiler/heap-snapshot-expected.txt:
      * inspector/profiler/heap-snapshot-test.js:
      (initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockWithDOM):
      (initialize_HeapSnapshotTest):
      * inspector/profiler/heap-snapshot.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90b24e89
  9. 13 Oct, 2011 2 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r97362. · 33998592
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/97362
      https://bugs.webkit.org/show_bug.cgi?id=70039
      
      Relies on V8 APIs that have been reverted upstream. (Requested
      by dglazkov on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-10-13
      
      Source/WebCore:
      
      * English.lproj/localizedStrings.js:
      * bindings/js/ScriptProfiler.cpp:
      * bindings/js/ScriptProfiler.h:
      * bindings/v8/ScriptProfiler.cpp:
      * bindings/v8/ScriptProfiler.h:
      * inspector/Inspector.json:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::create):
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      * inspector/InspectorProfilerAgent.h:
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGridNode.prototype.hasHoverMessage.false.hoverMessage):
      (WebInspector.HeapSnapshotGenericObjectNode):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.hoverMessage):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.shortenWindowURL):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.DetailedHeapshotView.prototype._showStringContentPopover):
      * inspector/front-end/HeapSnapshot.js:
      (WebInspector.HeapSnapshot.prototype._init):
      (WebInspector.HeapSnapshot.prototype.dispose):
      (WebInspector.HeapSnapshot.prototype.updateStaticData):
      (WebInspector.HeapSnapshotNodesProvider.prototype._serialize):
      * inspector/front-end/HeapSnapshotProxy.js:
      * inspector/front-end/RemoteObject.js:
      * inspector/front-end/heapProfiler.css:
      
      LayoutTests:
      
      * inspector/profiler/heap-snapshot-expected.txt:
      * inspector/profiler/heap-snapshot-test.js:
      (initialize_HeapSnapshotTest):
      * inspector/profiler/heap-snapshot.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33998592
    • mnaganov@chromium.org's avatar
      Web Inspector: [Chromium] Add an ability to look up and explore an object from a heap profile. · 32d0638d
      mnaganov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=61179
      
      This is exteremely helpful when dealing with DOM wrappers, as
      their properties are mostly implemented with getters and thus not
      stored in heap snapshots.
      
      Reviewed by Pavel Feldman.
      
      * English.lproj/localizedStrings.js:
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      * bindings/js/ScriptProfiler.h:
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      * bindings/v8/ScriptProfiler.h:
      * inspector/Inspector.json:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::create):
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      (WebCore::InspectorProfilerAgent::getObjectByHeapObjectId):
      * inspector/InspectorProfilerAgent.h:
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGridNode.prototype.hasHoverMessage.false.queryObjectContent):
      (WebInspector.HeapSnapshotGenericObjectNode):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent.else.formatResult):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.shortenWindowURL):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.DetailedHeapshotView.prototype._showObjectPopover):
      * inspector/front-end/HeapSnapshot.js:
      (WebInspector.HeapSnapshotNode.prototype.get canBeQueried):
      (WebInspector.HeapSnapshotNode.prototype.get flags):
      (WebInspector.HeapSnapshotNode.prototype.get isDOMWindow):
      (WebInspector.HeapSnapshot.prototype._init):
      (WebInspector.HeapSnapshot.prototype.dispose):
      (WebInspector.HeapSnapshot.prototype._flagsOfNode):
      (WebInspector.HeapSnapshot.prototype._calculateFlags):
      (WebInspector.HeapSnapshot.prototype.updateStaticData):
      (WebInspector.HeapSnapshotNodesProvider.prototype._serialize):
      * inspector/front-end/HeapSnapshotProxy.js:
      (WebInspector.HeapSnapshotProxy.prototype.get nodeFlags):
      * inspector/front-end/RemoteObject.js:
      (WebInspector.RemoteObject.fromError):
      * inspector/front-end/heapProfiler.css:
      (.detailed-heapshot-view tr:not(.selected) td.object-column span.highlight):
      
      * inspector/profiler/heap-snapshot-expected.txt:
      * inspector/profiler/heap-snapshot-test.js:
      (initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockWithDOM):
      (initialize_HeapSnapshotTest):
      * inspector/profiler/heap-snapshot.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32d0638d
  10. 10 Mar, 2011 1 commit
    • pfeldman@chromium.org's avatar
      2011-03-10 Greg Simon <gregsimon@chromium.org> · b35e6870
      pfeldman@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: Need new graphic icon for garbage collect button.
              https://bugs.webkit.org/show_bug.cgi?id=55794
      
              No new tests: gc tests are flaky due to non-determinisic
              behavior of collection APIs (more notes in bug)
      
              * English.lproj/localizedStrings.js:
              * WebCore.gypi:
              * bindings/js/ScriptProfiler.cpp:
              (WebCore::ScriptProfiler::collectGarbage):
              * bindings/js/ScriptProfiler.h:
              * bindings/v8/ScriptProfiler.cpp:
              (WebCore::ScriptProfiler::collectGarbage):
              * bindings/v8/ScriptProfiler.h:
              * inspector/Inspector.idl:
              * inspector/InspectorProfilerAgent.cpp:
              (WebCore::InspectorProfilerAgent::collectGarbage):
              * inspector/InspectorProfilerAgent.h:
              * inspector/front-end/Images/garbageCollectButtonGlyph.png: Added.
              * inspector/front-end/TimelinePanel.js:
              (WebInspector.TimelinePanel.prototype.get statusBarItems):
              (WebInspector.TimelinePanel.prototype._createStatusbarButtons):
              (WebInspector.TimelinePanel.prototype._garbageCollectButtonClicked):
              * inspector/front-end/inspector.css:
              (.garbage-collect-status-bar-item .glyph):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b35e6870
  11. 27 Jan, 2011 3 commits
    • yurys@chromium.org's avatar
      2011-01-27 Yury Semikhatsky <yurys@chromium.org> · 591972aa
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: store all settings related to the agents on the frontend side
              https://bugs.webkit.org/show_bug.cgi?id=53174
      
              * http/tests/inspector/console-xhr-logging.html: since the setting doesn't change on the front-end
              side there is no need to check it after modifying backend's value.
              * inspector/report-protocol-errors.html: use the new signature of disableDebugger method.
      2011-01-27  Yury Semikhatsky  <yurys@chromium.org>
      
              Reviewed by Pavel Feldman.
      
              Web Inspector: store all settings related to the agents on the frontend side
              https://bugs.webkit.org/show_bug.cgi?id=53174
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScriptDebugServer.cpp:
              * bindings/js/ScriptDebugServer.h:
              * bindings/js/ScriptProfiler.cpp:
              * bindings/js/ScriptProfiler.h:
              * bindings/v8/ScriptDebugServer.cpp:
              * bindings/v8/ScriptDebugServer.h:
              * bindings/v8/ScriptProfiler.cpp:
              * bindings/v8/ScriptProfiler.h:
              * inspector/Inspector.idl:
              * inspector/InspectorAgent.cpp: profiler and debugger enablement state is now stored
              on the front-end side and will be pushed to the backend when the frontend is loaded.
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::disconnectFrontend):
              (WebCore::InspectorAgent::restoreDebugger):
              (WebCore::InspectorAgent::restoreProfiler):
              (WebCore::InspectorAgent::enableProfiler):
              (WebCore::InspectorAgent::disableProfiler):
              (WebCore::InspectorAgent::showAndEnableDebugger):
              (WebCore::InspectorAgent::enableDebugger):
              (WebCore::InspectorAgent::disableDebugger):
              * inspector/InspectorAgent.h:
              * inspector/InspectorConsoleAgent.cpp: XHR failures will be logged to the console only
              if the front-end was opened during current browser session and XHR logging is turned on
              there.
              (WebCore::InspectorConsoleAgent::setMonitoringXHREnabled):
              (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
              * inspector/InspectorDebuggerAgent.cpp:
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
              (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
              * inspector/InspectorProfilerAgent.cpp:
              (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
              (WebCore::InspectorProfilerAgent::startUserInitiatedProfiling):
              * inspector/InspectorSettings.cpp: Removed.
              * inspector/InspectorSettings.h: Removed.
              * inspector/InspectorState.cpp:
              (WebCore::InspectorState::InspectorState):
              * inspector/InspectorState.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.consoleMessagesCleared):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher):
              (WebInspector.ConsoleView.prototype._handleContextMenuEvent.itemAction):
              (WebInspector.ConsoleView.prototype._handleContextMenuEvent):
              * inspector/front-end/ProfilesPanel.js:
              (WebInspector.ProfilesPanel.prototype._toggleProfiling):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype._toggleDebugging):
              * inspector/front-end/Settings.js:
              (WebInspector.Settings):
              * inspector/front-end/inspector.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76792 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      591972aa
    • yurys@chromium.org's avatar
      2011-01-27 Sheriff Bot <webkit.review.bot@gmail.com> · ffb351e8
      yurys@chromium.org authored
              Unreviewed, rolling out r76770.
              http://trac.webkit.org/changeset/76770
              https://bugs.webkit.org/show_bug.cgi?id=53229
      
              Some inspector tests fail (Requested by yurys on #webkit).
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScriptDebugServer.cpp:
              (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled):
              * bindings/js/ScriptDebugServer.h:
              * bindings/js/ScriptProfiler.cpp:
              (WebCore::ScriptProfiler::isProfilerAlwaysEnabled):
              * bindings/js/ScriptProfiler.h:
              * bindings/v8/ScriptDebugServer.cpp:
              (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled):
              * bindings/v8/ScriptDebugServer.h:
              * bindings/v8/ScriptProfiler.cpp:
              (WebCore::ScriptProfiler::isProfilerAlwaysEnabled):
              * bindings/v8/ScriptProfiler.h:
              * inspector/Inspector.idl:
              * inspector/InspectorAgent.cpp:
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::disconnectFrontend):
              (WebCore::InspectorAgent::restoreDebugger):
              (WebCore::InspectorAgent::restoreProfiler):
              (WebCore::InspectorAgent::ensureSettingsLoaded):
              (WebCore::InspectorAgent::enableProfiler):
              (WebCore::InspectorAgent::disableProfiler):
              (WebCore::InspectorAgent::showAndEnableDebugger):
              (WebCore::InspectorAgent::enableDebugger):
              (WebCore::InspectorAgent::disableDebugger):
              * inspector/InspectorAgent.h:
              (WebCore::InspectorAgent::settings):
              * inspector/InspectorConsoleAgent.cpp:
              (WebCore::InspectorConsoleAgent::setMonitoringXHREnabled):
              (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
              * inspector/InspectorDebuggerAgent.cpp:
              (WebCore::InspectorDebuggerAgent::isDebuggerAlwaysEnabled):
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
              (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
              * inspector/InspectorProfilerAgent.cpp:
              (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
              (WebCore::InspectorProfilerAgent::startUserInitiatedProfiling):
              * inspector/InspectorSettings.cpp: Added.
              (WebCore::InspectorSettings::InspectorSettings):
              (WebCore::InspectorSettings::getBoolean):
              (WebCore::InspectorSettings::setBoolean):
              (WebCore::InspectorSettings::getLong):
              (WebCore::InspectorSettings::setLong):
              (WebCore::InspectorSettings::registerBoolean):
              (WebCore::InspectorSettings::registerLong):
              * inspector/InspectorSettings.h: Copied from Source/WebCore/bindings/v8/ScriptProfiler.h.
              * inspector/InspectorState.cpp:
              (WebCore::InspectorState::InspectorState):
              * inspector/InspectorState.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.monitoringXHRStateChanged):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher):
              (WebInspector.ConsoleView.prototype._handleContextMenuEvent):
              * inspector/front-end/ProfilesPanel.js:
              (WebInspector.ProfilesPanel.prototype._toggleProfiling):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype._toggleDebugging):
              * inspector/front-end/Settings.js:
              (WebInspector.Settings):
              * inspector/front-end/inspector.js:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76775 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ffb351e8
    • yurys@chromium.org's avatar
      2011-01-26 Yury Semikhatsky <yurys@chromium.org> · 84d95409
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: store all settings related to the agents on the frontend side
              https://bugs.webkit.org/show_bug.cgi?id=53174
      
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.exp.in:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * inspector/Inspector.idl:
              * inspector/InspectorAgent.cpp: profiler and debugger enablement state is now stored
              on the front-end side and will be pushed to the backend when the frontend is loaded.
              (WebCore::InspectorAgent::InspectorAgent):
              (WebCore::InspectorAgent::disconnectFrontend):
              (WebCore::InspectorAgent::restoreDebugger):
              (WebCore::InspectorAgent::restoreProfiler):
              (WebCore::InspectorAgent::enableProfiler):
              (WebCore::InspectorAgent::disableProfiler):
              (WebCore::InspectorAgent::showAndEnableDebugger):
              (WebCore::InspectorAgent::enableDebugger):
              (WebCore::InspectorAgent::disableDebugger):
              * inspector/InspectorAgent.h:
              * inspector/InspectorConsoleAgent.cpp: XHR failures will be logged to the console only
              if the front-end was opened during current browser session and XHR logging is turned on
              there.
              (WebCore::InspectorConsoleAgent::setMonitoringXHREnabled):
              (WebCore::InspectorConsoleAgent::setConsoleMessagesEnabled):
              * inspector/InspectorInstrumentation.cpp:
              (WebCore::InspectorInstrumentation::identifierForInitialRequestImpl):
              (WebCore::InspectorInstrumentation::didLoadResourceFromMemoryCacheImpl):
              * inspector/InspectorProfilerAgent.cpp:
              (WebCore::InspectorProfilerAgent::enable):
              (WebCore::InspectorProfilerAgent::startUserInitiatedProfiling):
              * inspector/InspectorProfilerAgent.h:
              * inspector/InspectorSettings.cpp: Removed.
              * inspector/InspectorSettings.h: Removed.
              * inspector/InspectorState.cpp:
              (WebCore::InspectorState::InspectorState):
              * inspector/InspectorState.h:
              * inspector/front-end/ConsoleView.js:
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher.dispatcher.consoleMessagesCleared):
              (WebInspector.ConsoleView.prototype._registerConsoleDomainDispatcher):
              (WebInspector.ConsoleView.prototype._handleContextMenuEvent.itemAction):
              (WebInspector.ConsoleView.prototype._handleContextMenuEvent):
              * inspector/front-end/ProfilesPanel.js:
              (WebInspector.ProfilesPanel.prototype._toggleProfiling):
              * inspector/front-end/ScriptsPanel.js:
              (WebInspector.ScriptsPanel.prototype._toggleDebugging):
              * inspector/front-end/Settings.js:
              (WebInspector.Settings):
              * inspector/front-end/inspector.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      84d95409
  12. 08 Jan, 2011 1 commit
  13. 23 Aug, 2010 1 commit
  14. 04 Aug, 2010 1 commit
    • yurys@chromium.org's avatar
      2010-08-04 Yury Semikhatsky <yurys@chromium.org> · c603af63
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: serialize CPU profiles to InspectorValues instead of
              using JS wrappers.
              https://bugs.webkit.org/show_bug.cgi?id=43475
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScriptProfile.h:
              * bindings/js/ScriptProfiler.cpp:
              (WebCore::ScriptProfiler::stop):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/v8/ScriptProfile.cpp:
              (WebCore::buildInspectorObjectFor):
              (WebCore::ScriptProfile::buildInspectorObjectForHead):
              * bindings/v8/ScriptProfile.h:
              * inspector/Inspector.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::addProfile):
              (WebCore::InspectorController::addProfileFinishedMessageToConsole):
              (WebCore::InspectorController::getProfileHeaders):
              (WebCore::InspectorController::getProfile):
              (WebCore::InspectorController::createProfileHeader):
              * inspector/InspectorController.h:
              * inspector/InspectorFrontend.cpp:
              * inspector/InspectorFrontend.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c603af63
  15. 16 Apr, 2010 1 commit
    • barraclough@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=37675 · 49a688c5
      barraclough@apple.com authored
      Remove casts/constructors to/from JSC::UString type from WebCore::String
              
      Reviewed by Sam Weinig & Oliver Hunt.
      
      WebCore's strings should not know about JSC::UString, this should be abstracted
      away in the bindings.  Add explicit conversion methods rather than relying on
      overloaded cast operators / constructors being implicitly called.
      
      This patch only changes the class String, once this has landed StringImpl, and
      hopefully AtomicString too, should follow suit.
      
      WebCore: 
      
      This patch adds:
          WebCore::identifierToString
          WebCore::ustringToString
          WebCore::stringToUString
      
      - to JSDOMBindings.h, and updates code to call these methods.
      
      * WebCore.base.exp:
      * WebCore.order:
      * bindings/js/CachedScriptSourceProvider.h:
      (WebCore::CachedScriptSourceProvider::CachedScriptSourceProvider):
      * bindings/js/JSAudioConstructor.cpp:
      (WebCore::constructAudio):
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      (WebCore::JSCSSStyleDeclaration::nameGetter):
      * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
      (WebCore::toHTMLCanvasStyle):
      (WebCore::JSCanvasRenderingContext2D::setFillColor):
      (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
      (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
      (WebCore::JSCanvasRenderingContext2D::setShadow):
      (WebCore::JSCanvasRenderingContext2D::fillText):
      (WebCore::JSCanvasRenderingContext2D::strokeText):
      * bindings/js/JSClipboardCustom.cpp:
      (WebCore::JSClipboard::types):
      (WebCore::JSClipboard::clearData):
      (WebCore::JSClipboard::getData):
      (WebCore::JSClipboard::setData):
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::identifierToString):
      (WebCore::ustringToString):
      (WebCore::stringToUString):
      (WebCore::valueToStringWithNullCheck):
      (WebCore::valueToStringWithUndefinedOrNullCheck):
      (WebCore::reportException):
      * bindings/js/JSDOMBinding.h:
      * bindings/js/JSDOMFormDataCustom.cpp:
      (WebCore::JSDOMFormData::append):
      * bindings/js/JSDOMWindowCustom.cpp:
      (WebCore::namedItemGetter):
      (WebCore::JSDOMWindow::setLocation):
      (WebCore::JSDOMWindow::openDatabase):
      * bindings/js/JSDatabaseCustom.cpp:
      (WebCore::JSDatabase::changeVersion):
      * bindings/js/JSDocumentCustom.cpp:
      (WebCore::JSDocument::setLocation):
      * bindings/js/JSEventListener.cpp:
      (WebCore::JSEventListener::handleEvent):
      * bindings/js/JSEventSourceConstructor.cpp:
      (WebCore::constructEventSource):
      * bindings/js/JSHTMLAllCollectionCustom.cpp:
      (WebCore::callHTMLAllCollection):
      * bindings/js/JSHTMLCanvasElementCustom.cpp:
      (WebCore::JSHTMLCanvasElement::getContext):
      * bindings/js/JSHTMLCollectionCustom.cpp:
      (WebCore::callHTMLCollection):
      * bindings/js/JSHTMLDocumentCustom.cpp:
      (WebCore::JSHTMLDocument::nameGetter):
      (WebCore::documentWrite):
      * bindings/js/JSInjectedScriptHostCustom.cpp:
      (WebCore::InjectedScriptHost::createInjectedScript):
      * bindings/js/JSInspectorFrontendHostCustom.cpp:
      (WebCore::JSInspectorFrontendHost::showContextMenu):
      * bindings/js/JSLazyEventListener.cpp:
      (WebCore::JSLazyEventListener::initializeJSFunction):
      * bindings/js/JSLocationCustom.cpp:
      (WebCore::JSLocation::setHref):
      (WebCore::JSLocation::setProtocol):
      (WebCore::JSLocation::setHost):
      (WebCore::JSLocation::setHostname):
      (WebCore::JSLocation::setPathname):
      (WebCore::JSLocation::setSearch):
      (WebCore::JSLocation::setHash):
      (WebCore::JSLocation::replace):
      (WebCore::JSLocation::assign):
      * bindings/js/JSMessageEventCustom.cpp:
      (WebCore::JSMessageEvent::initMessageEvent):
      * bindings/js/JSNamedNodeMapCustom.cpp:
      (WebCore::JSNamedNodeMap::canGetItemsForName):
      (WebCore::JSNamedNodeMap::nameGetter):
      * bindings/js/JSOptionConstructor.cpp:
      (WebCore::constructHTMLOptionElement):
      * bindings/js/JSSQLResultSetRowListCustom.cpp:
      (WebCore::JSSQLResultSetRowList::item):
      * bindings/js/JSSQLTransactionCustom.cpp:
      (WebCore::JSSQLTransaction::executeSql):
      * bindings/js/JSSharedWorkerConstructor.cpp:
      (WebCore::constructSharedWorker):
      * bindings/js/JSStorageCustom.cpp:
      (WebCore::JSStorage::canGetItemsForName):
      (WebCore::JSStorage::nameGetter):
      (WebCore::JSStorage::deleteProperty):
      (WebCore::JSStorage::getOwnPropertyNames):
      (WebCore::JSStorage::putDelegate):
      * bindings/js/JSStyleSheetListCustom.cpp:
      (WebCore::JSStyleSheetList::canGetItemsForName):
      (WebCore::JSStyleSheetList::nameGetter):
      * bindings/js/JSWebKitCSSMatrixConstructor.cpp:
      (WebCore::constructWebKitCSSMatrix):
      * bindings/js/JSWebSocketConstructor.cpp:
      (WebCore::constructWebSocket):
      * bindings/js/JSWebSocketCustom.cpp:
      (WebCore::JSWebSocket::send):
      * bindings/js/JSWorkerConstructor.cpp:
      (WebCore::constructWorker):
      * bindings/js/JSWorkerContextCustom.cpp:
      (WebCore::JSWorkerContext::importScripts):
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      (WebCore::JSXMLHttpRequest::open):
      (WebCore::JSXMLHttpRequest::setRequestHeader):
      (WebCore::JSXMLHttpRequest::send):
      (WebCore::JSXMLHttpRequest::overrideMimeType):
      * bindings/js/JSXSLTProcessorCustom.cpp:
      (WebCore::JSXSLTProcessor::setParameter):
      (WebCore::JSXSLTProcessor::getParameter):
      (WebCore::JSXSLTProcessor::removeParameter):
      * bindings/js/ScheduledAction.cpp:
      (WebCore::ScheduledAction::create):
      * bindings/js/ScriptCallFrame.cpp:
      (WebCore::ScriptCallFrame::ScriptCallFrame):
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::evaluateInWorld):
      * bindings/js/ScriptDebugServer.cpp:
      (WebCore::ScriptDebugServer::hasBreakpoint):
      (WebCore::ScriptDebugServer::dispatchDidParseSource):
      (WebCore::ScriptDebugServer::dispatchFailedToParseSource):
      (WebCore::ScriptDebugServer::sourceParsed):
      * bindings/js/ScriptEventListener.cpp:
      (WebCore::getEventListenerHandlerBody):
      * bindings/js/ScriptFunctionCall.cpp:
      (WebCore::ScriptFunctionCall::appendArgument):
      (WebCore::ScriptFunctionCall::call):
      (WebCore::ScriptFunctionCall::construct):
      * bindings/js/ScriptObject.cpp:
      (WebCore::ScriptObject::set):
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::start):
      (WebCore::ScriptProfiler::stop):
      * bindings/js/ScriptString.h:
      (WebCore::ScriptString::operator String):
      (WebCore::ScriptString::ustring):
      (WebCore::ScriptString::operator+=):
      * bindings/js/ScriptValue.cpp:
      (WebCore::ScriptValue::getString):
      * bindings/js/ScriptValue.h:
      (WebCore::ScriptValue::toString):
      * bindings/js/SerializedScriptValue.cpp:
      (WebCore::SerializedObject::set):
      (WebCore::SerializingTreeWalker::convertIfTerminal):
      (WebCore::DeserializingTreeWalker::putProperty):
      * bindings/js/StringSourceProvider.h:
      (WebCore::StringSourceProvider::StringSourceProvider):
      * bindings/objc/WebScriptObject.mm:
      (-[WebScriptObject callWebScriptMethod:withArguments:]):
      (-[WebScriptObject setValue:forKey:]):
      (-[WebScriptObject valueForKey:]):
      (-[WebScriptObject removeWebScriptKey:]):
      * bindings/scripts/CodeGeneratorJS.pm:
      * bridge/IdentifierRep.cpp:
      (WebCore::IdentifierRep::get):
      * bridge/c/c_utility.cpp:
      (JSC::Bindings::identifierFromNPIdentifier):
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::scriptImported):
      (WebCore::InspectorController::addProfileFinishedMessageToConsole):
      (WebCore::InspectorController::createProfileHeader):
      * inspector/InspectorResource.cpp:
      (WebCore::InspectorResource::sourceString):
      * inspector/JavaScriptCallFrame.cpp:
      (WebCore::JavaScriptCallFrame::functionName):
      * platform/KURL.h:
      (WebCore::KURL::operator const String&):
      * platform/text/AtomicString.cpp:
      (WebCore::AtomicString::operator UString):
      * platform/text/AtomicString.h:
      * platform/text/PlatformString.h:
      * platform/text/String.cpp:
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginHostProxy.mm:
      (identifierFromIdentifierRep):
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::addValueToArray):
      (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
      * Plugins/Hosted/ProxyInstance.mm:
      (WebKit::ProxyInstance::getPropertyNames):
      * WebView/WebFrame.mm:
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
      (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
      * WebView/WebScriptDebugDelegate.mm:
      (-[WebScriptCallFrame evaluateWebScript:]):
      * WebView/WebScriptDebugger.mm:
      (toNSURL):
      * WebView/WebView.mm:
      (aeDescFromJSValue):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57738 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      49a688c5
  16. 03 Feb, 2010 1 commit
    • eric@webkit.org's avatar
      2010-02-03 Mikhail Naganov <mnaganov@chromium.org> · cd8a5d51
      eric@webkit.org authored
              Reviewed by Pavel Feldman.
      
              Start unforking debugger and profiler code.
      
              Remove custom implementation of Console.
              Add 'ScriptProfiler' and 'ScriptProfile' types.
              Start migration to engine-neutral types in InspectorController.
      
              https://bugs.webkit.org/show_bug.cgi?id=34481
      
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSBindingsAllInOne.cpp:
              * bindings/js/JSConsoleCustom.cpp:
              * bindings/js/ScriptProfile.h: Added.
              * bindings/js/ScriptProfiler.cpp: Added.
              (WebCore::ScriptProfiler::start):
              (WebCore::ScriptProfiler::stop):
              * bindings/js/ScriptProfiler.h: Added.
              * bindings/scripts/CodeGeneratorV8.pm:
              * bindings/v8/ScriptProfile.h: Added.
              (WebCore::ScriptProfile::create):
              (WebCore::ScriptProfile::~ScriptProfile):
              (WebCore::ScriptProfile::title):
              (WebCore::ScriptProfile::uid):
              (WebCore::ScriptProfile::ScriptProfile):
              * bindings/v8/ScriptProfiler.cpp: Added.
              (WebCore::ScriptProfiler::start):
              (WebCore::ScriptProfiler::stop):
              * bindings/v8/ScriptProfiler.h: Added.
              * bindings/v8/custom/V8ConsoleCustom.cpp: Removed.
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::endGroup):
              (WebCore::InspectorController::show):
              (WebCore::InspectorController::setDOMStorageItem):
              (WebCore::InspectorController::addProfile):
              (WebCore::InspectorController::addProfileFinishedMessageToConsole):
              (WebCore::InspectorController::addStartProfilingMessageToConsole):
              (WebCore::InspectorController::createProfileHeader):
              (WebCore::InspectorController::getCurrentUserInitiatedProfileName):
              (WebCore::InspectorController::startUserInitiatedProfiling):
              (WebCore::InspectorController::stopUserInitiatedProfiling):
              (WebCore::InspectorController::enableDebugger):
              (WebCore::InspectorController::specialPanelForJSName):
              * inspector/InspectorController.h:
              (WebCore::InspectorController::searchingForNodeInPage):
              * page/Console.cpp:
              (WebCore::Console::profile):
              (WebCore::Console::profileEnd):
              * page/Console.h:
              (WebCore::):
              (WebCore::Console::create):
              (WebCore::Console::profiles):
              * page/Console.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd8a5d51
  17. 12 Aug, 2009 1 commit
    • eric@webkit.org's avatar
      2009-08-12 Maxime Simon <simon.maxime@gmail.com> · 511e5da2
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [Haiku] Adding eight simple files to WebCore/platform/graphics/haiku.
              https://bugs.webkit.org/show_bug.cgi?id=28122
      
              * platform/graphics/haiku/ColorHaiku.cpp: Added.
              (WebCore::Color::Color):
              (WebCore::Color::operator rgb_color):
              (WebCore::focusRingColor):
              * platform/graphics/haiku/FloatPointHaiku.cpp: Added.
              (WebCore::FloatPoint::FloatPoint):
              (WebCore::FloatPoint::operator BPoint):
              * platform/graphics/haiku/FloatRectHaiku.cpp: Added.
              (WebCore::FloatRect::FloatRect):
              (WebCore::FloatRect::operator BRect):
              * platform/graphics/haiku/GradientHaiku.cpp: Added.
              (WebCore::Gradient::platformDestroy):
              (WebCore::Gradient::platformGradient):
              (WebCore::Gradient::fill):
              * platform/graphics/haiku/IntPointHaiku.cpp: Added.
              (WebCore::IntPoint::IntPoint):
              (WebCore::IntPoint::operator BPoint):
              * platform/graphics/haiku/IntRectHaiku.cpp: Added.
              (WebCore::IntRect::IntRect):
              (WebCore::IntRect::operator BRect):
              * platform/graphics/haiku/IntSizeHaiku.cpp: Added.
              (WebCore::IntSize::IntSize):
              (WebCore::IntSize::operator BSize):
              * platform/graphics/haiku/PathHaiku.cpp: Added.
              (WebCore::Path::Path):
              (WebCore::Path::~Path):
              (WebCore::Path::operator=):
              (WebCore::Path::hasCurrentPoint):
              (WebCore::Path::contains):
              (WebCore::Path::translate):
              (WebCore::Path::boundingRect):
              (WebCore::Path::moveTo):
              (WebCore::Path::addLineTo):
              (WebCore::Path::addQuadCurveTo):
              (WebCore::Path::addBezierCurveTo):
              (WebCore::Path::addArcTo):
              (WebCore::Path::closeSubpath):
              (WebCore::Path::addArc):
              (WebCore::Path::addRect):
              (WebCore::Path::addEllipse):
              (WebCore::Path::clear):
              (WebCore::Path::isEmpty):
              (WebCore::Path::debugString):
              (WebCore::Path::apply):
              (WebCore::Path::transform):
              (WebCore::Path::strokeBoundingRect):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47142 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      511e5da2
  18. 07 Aug, 2009 1 commit
    • abarth@webkit.org's avatar
      2009-08-07 Maxime Simon <simon.maxime@gmail.com> · 4c9b811d
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Added four Haiku-specific files for WebCore:
              PopupMenuHaiku.cpp, ScreenHaiku.cpp,
              SearchPopupMenuHaiku.cpp and SoundHaiku.cpp
              https://bugs.webkit.org/show_bug.cgi?id=28080
      
              * platform/haiku/PopupMenuHaiku.cpp: Added.
              (WebCore::PopupMenu::PopupMenu):
              (WebCore::PopupMenu::~PopupMenu):
              (WebCore::PopupMenu::show):
              (WebCore::PopupMenu::hide):
              (WebCore::PopupMenu::updateFromElement):
              (WebCore::PopupMenu::itemWritingDirectionIsNatural):
              * platform/haiku/ScreenHaiku.cpp: Added.
              (WebCore::screenRect):
              (WebCore::screenAvailableRect):
              (WebCore::screenDepth):
              (WebCore::screenDepthPerComponent):
              (WebCore::screenIsMonochrome):
              * platform/haiku/SearchPopupMenuHaiku.cpp: Added.
              (WebCore::SearchPopupMenu::SearchPopupMenu):
              (WebCore::SearchPopupMenu::saveRecentSearches):
              (WebCore::SearchPopupMenu::loadRecentSearches):
              (WebCore::SearchPopupMenu::enabled):
              * platform/haiku/SoundHaiku.cpp: Added.
              (WebCore::systemBeep):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c9b811d
  19. 16 Jul, 2009 1 commit
    • abarth@webkit.org's avatar
      2009-07-16 Maxime Simon <simon.maxime@gmail.com> · c459ecc2
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Added Haiku-specific files for WebCore/page/.
              https://bugs.webkit.org/show_bug.cgi?id=26949
      
              Adding three new files, DragControllerHaiku.cpp, EventHandlerHaiku.cpp
              and FrameHaiku.cpp
      
              * page/haiku/DragControllerHaiku.cpp: Added.
              (WebCore::DragController::isCopyKeyDown):
              (WebCore::DragController::dragOperation):
              (WebCore::DragController::maxDragImageSize):
              (WebCore::DragController::cleanupAfterSystemDrag):
              * page/haiku/EventHandlerHaiku.cpp: Added.
              (WebCore::isKeyboardOptionTab):
              (WebCore::EventHandler::invertSenseOfTabsToLinks):
              (WebCore::EventHandler::tabsToAllControls):
              (WebCore::EventHandler::focusDocumentView):
              (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
              (WebCore::EventHandler::passMouseDownEventToWidget):
              (WebCore::EventHandler::eventActivatedView):
              (WebCore::EventHandler::passSubframeEventToSubframe):
              (WebCore::EventHandler::passWheelEventToWidget):
              (WebCore::EventHandler::createDraggingClipboard):
              (WebCore::EventHandler::passMousePressEventToSubframe):
              (WebCore::EventHandler::passMouseMoveEventToSubframe):
              (WebCore::EventHandler::passMouseReleaseEventToSubframe):
              (WebCore::EventHandler::accessKeyModifiers):
              * page/haiku/FrameHaiku.cpp: Added.
              (WebCore::Frame::dragImageForSelection):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@46011 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c459ecc2
  20. 06 Aug, 2008 1 commit
    • eric@webkit.org's avatar
      Reviewed by Cameron Zwarich. · 0683d949
      eric@webkit.org authored
              Move more methods from Frame into ScriptController
              https://bugs.webkit.org/show_bug.cgi?id=20294
      
              Finally finish more of the work which Darin started long ago
              Move a few more Frame methods into ScriptController.
              I also took this opportunity to clean up some of the plugin
              code as well, and moved some of that into ScriptController.
      
              I removed Frame::clearScriptController() and ScriptController::clear() is now clearWindowShell()
      
              No functional changes, thus no test cases.
      
              * GNUmakefile.am:
              * WebCore.NPAPI.exp:
              * WebCore.base.exp:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScriptController.cpp:
              (WebCore::ScriptController::ScriptController):
              (WebCore::ScriptController::~ScriptController):
              (WebCore::ScriptController::bindingRootObject):
              (WebCore::ScriptController::createRootObject):
              (WebCore::ScriptController::windowScriptNPObject):
              (WebCore::ScriptController::createScriptObjectForPluginElement): New method.
              (WebCore::ScriptController::clearPlatformScriptObjects):
              (WebCore::ScriptController::disconnectPlatformScriptObjects):
              (WebCore::ScriptController::cleanupScriptObjectsForPlugin):
              (WebCore::ScriptController::clearScriptObjects):
              * bindings/js/ScriptController.h:
              (WebCore::ScriptController::sourceURL):
              (WebCore::ScriptController::clearFormerWindow):
              * bindings/js/ScriptControllerGtk.cpp: Copied from WebCore/page/gtk/FrameGtk.cpp.
              (WebCore::Frame::createScriptInstanceForWidget):
              * bindings/js/ScriptControllerMac.mm: Added.
              (WebCore::ScriptController::createScriptInstanceForWidget):
              (WebCore::ScriptController::windowScriptObject):
              (WebCore::ScriptController::clearPlatformScriptObjects):
              (WebCore::ScriptController::disconnectPlatformScriptObjects):
              (WebCore::updateRenderingForBindings):
              (WebCore::ScriptController::initJavaJSBindings):
              * bindings/js/ScriptControllerQt.cpp: Copied from WebCore/page/gtk/FrameGtk.cpp.
              (WebCore::ScriptController::createScriptInstanceForWidget):
              * bindings/js/ScriptControllerWin.cpp: Copied from WebCore/svg/graphics/cg/SVGResourceMaskerCg.cpp.
              (WebCore::ScriptController::createScriptInstanceForWidget):
              * bindings/objc/DOM.mm:
              (-[DOMNode KJS::Bindings::]):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bridge/jni/jni_jsobject.mm:
              (createRootObject):
              * html/HTMLAppletElement.cpp:
              (WebCore::HTMLAppletElement::renderWidgetForJSBindings):
              * html/HTMLAppletElement.h:
              * html/HTMLEmbedElement.cpp:
              (WebCore::findWidgetRenderer):
              (WebCore::HTMLEmbedElement::renderWidgetForJSBindings):
              * html/HTMLEmbedElement.h:
              * html/HTMLObjectElement.cpp:
              (WebCore::HTMLObjectElement::~HTMLObjectElement):
              (WebCore::HTMLObjectElement::renderWidgetForJSBindings):
              (WebCore::HTMLObjectElement::detach):
              * html/HTMLObjectElement.h:
              * html/HTMLPlugInElement.cpp:
              (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
              (WebCore::HTMLPlugInElement::detach):
              (WebCore::HTMLPlugInElement::getInstance):
              (WebCore::HTMLPlugInElement::parseMappedAttribute):
              (WebCore::HTMLPlugInElement::getNPObject):
              * html/HTMLPlugInElement.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::clear):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::~Frame):
              (WebCore::Frame::pageDestroyed):
              (WebCore::FramePrivate::FramePrivate):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/gtk/FrameGtk.cpp:
              * page/mac/FrameMac.mm:
              * page/qt/FrameQt.cpp:
              * page/win/FrameWin.cpp:
              (WebCore::computePageRectsForFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0683d949
  21. 15 Jun, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · 92aaa2a0
      darin@apple.com authored
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSAudioConstructor.h:
              * bindings/js/JSCustomSQLStatementCallback.cpp:
              * bindings/js/JSCustomSQLStatementErrorCallback.cpp:
              * bindings/js/JSCustomSQLTransactionCallback.cpp:
              * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
              * bindings/js/JSCustomVoidCallback.cpp:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/js/JSDOMBinding.cpp: Copied from WebCore/bindings/js/kjs_binding.cpp.
              * bindings/js/JSDOMBinding.h: Copied from WebCore/bindings/js/kjs_binding.h.
              * bindings/js/JSDOMWindowBase.cpp:
              * bindings/js/JSDOMWindowBase.h:
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/js/JSDOMWindowShell.cpp:
              * bindings/js/JSDOMWindowShell.h:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/JSHTMLCollectionCustom.cpp:
              * bindings/js/JSHTMLFrameElementCustom.cpp:
              * bindings/js/JSHTMLFrameSetElementCustom.cpp:
              * bindings/js/JSHTMLIFrameElementCustom.cpp:
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLOptionElementConstructor.h:
              * bindings/js/JSImageConstructor.h:
              * bindings/js/JSLocationCustom.cpp:
              * bindings/js/JSNamedNodeMapCustom.cpp:
              * bindings/js/JSNamedNodesCollection.h:
              * bindings/js/JSNodeFilterCondition.cpp:
              * bindings/js/JSNodeFilterCustom.cpp:
              * bindings/js/JSRGBColor.h:
              * bindings/js/JSSVGPathSegCustom.cpp:
              * bindings/js/JSXMLHttpRequestConstructor.h:
              * bindings/js/JSXSLTProcessorConstructor.h:
              * bindings/js/JSXSLTProcessorCustom.cpp:
              * bindings/js/ScheduledAction.cpp:
              (WebCore::ScheduledAction::execute):
              * bindings/js/ScriptController.cpp: Copied from WebCore/bindings/js/kjs_proxy.cpp.
              * bindings/js/ScriptController.h: Copied from WebCore/bindings/js/kjs_proxy.h.
              * bindings/js/kjs_binding.cpp: Removed.
              * bindings/js/kjs_binding.h: Removed.
              * bindings/js/kjs_events.cpp:
              (WebCore::JSAbstractEventListener::handleEvent):
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_proxy.cpp: Removed.
              * bindings/js/kjs_proxy.h: Removed.
              * bindings/objc/DOMInternal.mm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/jni/jni_jsobject.mm:
              * dom/Document.cpp:
              * dom/EventTarget.cpp:
              * dom/Node.cpp:
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::startElementNs):
              * history/CachedPage.cpp:
              (WebCore::CachedPage::CachedPage):
              (WebCore::CachedPage::restore):
              * html/HTMLPlugInElement.cpp:
              * html/HTMLScriptElement.cpp:
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::processToken):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::executeScript):
              * page/Frame.cpp:
              (WebCore::Frame::scriptProxy):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/InspectorController.cpp:
              * page/JavaScriptDebugServer.cpp:
              * page/JavaScriptProfileNode.cpp:
              * page/Page.cpp:
              * page/gtk/FrameGtk.cpp:
              * page/mac/FrameMac.mm:
              * page/qt/FrameQt.cpp:
              * page/win/FrameWin.cpp:
              * plugins/PluginView.cpp:
              (WebCore::getString):
              * plugins/gtk/PluginViewGtk.cpp:
              * plugins/qt/PluginViewQt.cpp:
              * plugins/win/PluginViewWin.cpp:
              * svg/SVGDocumentExtensions.cpp:
              * xml/XMLHttpRequest.cpp:
      
      WebKit/gtk:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              * webkit/webkitwebframe.cpp:
      
      WebKit/mac:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebView/WebFrame.mm:
              * WebView/WebScriptDebugDelegate.mm:
              * WebView/WebView.mm:
      
      WebKit/qt:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * Api/qwebframe.cpp:
              (QWebFrame::evaluateJavaScript):
              * WebKit_pch.h:
      
      WebKit/win:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebFrame.cpp:
      
      WebKit/wx:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              Rubber stamped by Sam.
      
              - new names for kjs_binding.h and kjs_proxy.h
      
              * WebView.cpp:
      
      WebKitTools:
      
      2008-06-14  Darin Adler  <darin@apple.com>
      
              * Scripts/do-webcore-rename: Moved planned renames into a separate hash
              from the actual renames. Removed many renames that are either done or
              no longer planned.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92aaa2a0
  22. 01 May, 2008 1 commit
  23. 22 Apr, 2008 1 commit
    • weinig@apple.com's avatar
      2008-04-22 Sam Weinig <sam@webkit.org> · f804579a
      weinig@apple.com authored
              Reviewed by Geoffrey Garen.
      
              Make DOMAbstractView have a weak reference to the Frame instead of ref'ing
              the DOMWindow.
      
              To ensure that the WindowScriptObject (which is a DOMAbstractView) stays valid
              after a navigation once the split window is completed, the DOMAbstractView must
              wrap the Frame instead of a DOMWindow since the DOMWindow will change.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOMAbstractView.mm: Added.
              (-[DOMAbstractView dealloc]):
              (-[DOMAbstractView finalize]):
              (-[DOMAbstractView document]):
              (-[DOMAbstractView _disconnectFrame]):
              (-[DOMAbstractView WebCore::]):
              (-[DOMAbstractView _initWithFrame:WebCore::]):
              (+[DOMAbstractView _wrapAbstractView:WebCore::]):
              Add custom implementation to implement weak reference semantics.
      
              * bindings/objc/DOMAbstractViewFrame.h: Added.
              Declare the [DOMAbstractView _disconectFrame] selector.
              * bindings/objc/DOMInternal.h:
              Remove DOMRGBColor Internal category since it is now generated.
      
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              Don't ever create a DOMAbstractView from a JSDOMWindow, only from JSDOMWindowWrapper.
      
              * bindings/scripts/CodeGeneratorObjC.pm:
              Generate internal header for IDLs that want custom implementations.
      
              * css/RGBColor.idl:
              Make this a PODType as it really is in the implementation.
      
              * page/AbstractView.idl:
              This now needs a custom objective-c binding implementation.
      
              * page/Frame.cpp:
              (WebCore::Frame::~Frame):
              disconnect the weak frame reference in the WindowScriptObject.
      
              * page/Frame.h:
              * page/gtk/FrameGtk.cpp:
              (WebCore::Frame::disconnectPlatformScriptObjects): Dummy implementation.
              * page/mac/FrameMac.mm:
              (WebCore::Frame::windowScriptObject): ASSERT that the windowScriptObject is a DOMAbstractView.
              (WebCore::Frame::disconnectPlatformScriptObjects): Disconnect the frame pointer from the windowScriptObject.
              * page/qt/FrameQt.cpp:
              (WebCore::Frame::disconnectPlatformScriptObjects): Dummy implementation.
              * page/win/FrameWin.cpp:
              (WebCore::Frame::disconnectPlatformScriptObjects): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f804579a
  24. 12 Mar, 2008 2 commits
  25. 04 Mar, 2008 1 commit
  26. 04 Feb, 2008 1 commit
  27. 22 Dec, 2007 1 commit
  28. 17 Dec, 2007 1 commit
  29. 04 Dec, 2007 1 commit
    • aroben@apple.com's avatar
      Make the implementation of Frame::setNeedsReapplyStyles cross-platform · 4cfcb8ae
      aroben@apple.com authored
       WebCore:
      
               Make the implementation of Frame::setNeedsReapplyStyles cross-platform
      
               Reviewed by Hyatt.
      
               No change in functionality.
      
               * page/Frame.cpp:
               (WebCore::Frame::setNeedsReapplyStyles): Added. Invalidates the
               FrameView so that FrameView::layout will be called, which ends up
               calling reapplyStyles.
               (WebCore::Frame::needsReapplyStyles): Added.
               (WebCore::Frame::reapplyStyles): Renamed from reparseConfiguration.
               (WebCore::FramePrivate::FramePrivate):
               * page/Frame.h:
               * page/FramePrivate.h: Added new boolean member.
               * page/FrameView.cpp:
               (WebCore::FrameView::layout): Call Frame::reapplyStyles if needed.
               (WebCore::FrameView::needsLayout): Say that we need layout if the
               Frame needs styles reapplied.
               * page/mac/WebCoreFrameBridge.h: Removed setNeedsReapplyStyles.
               * page/mac/WebCoreFrameBridge.mm:
               (-[WebCoreFrameBridge reapplyStylesForDeviceType:]): Updated for
               rename.
      
               * bridge/win/FrameWin.cpp: Removed Frame::setNeedsReapplyStyles.
               * page/gtk/FrameGtk.cpp: Ditto.
               * page/mac/FrameMac.mm: Ditto.
               * page/qt/FrameQt.cpp: Ditto.
               * platform/wx/TemporaryLinkStubs.cpp: Ditto.
      
       WebKit/mac:
      
               Remove -[WebFrameBridge setNeedsReapplyStyles]
      
               This functionality is now WebCore's responsibility.
      
               Reviewed by Hyatt.
      
               * WebCoreSupport/WebFrameBridge.mm:
               * WebKit.order:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28411 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4cfcb8ae
  30. 08 Nov, 2007 1 commit
    • darin@apple.com's avatar
      WebCore: · 02405e32
      darin@apple.com authored
              Reviewed by Steve.
      
              - cut down on notImplemented() functions on Windows
      
              * bridge/AXObjectCache.h: Put #if around the accessibility
              global.
      
              * bridge/win/FrameWin.cpp: (WebCore::Frame::setNeedsReapplyStyles):
              Moved here from TemporaryLinkStubs.
      
              * dom/Document.cpp: (WebCore::Document::lastModified): Re-implemented
              using the ResourceResponse that's now available from the DocumentLoader.
      
              * editing/JSEditor.cpp: (execTranspose): Changed to call transpose() on
              the Editor instead of the obsolete one on the Frame.
      
              * loader/DocumentLoader.h: Removed getResponseModifiedHeader.
              * loader/FrameLoader.h: Removed overrideMediaType.
      
              * loader/gtk/DocumentLoaderGtk.cpp: Removed.
              * loader/mac/DocumentLoaderMac.mm: Removed.
              * loader/qt/DocumentLoaderQt.cpp: Removed.
      
              * page/Frame.cpp: Removed transpose.
              * page/Frame.h: Ditto.
              * page/FrameView.h: Removed updateBorder.
              * page/gtk/FrameGtk.cpp: Removed issueTransposeCommand.
              * page/mac/FrameMac.mm: Ditto.
              * page/mac/WebCoreFrameBridge.h: Removed issueTransposeCommand and
              overrideMediaType.
              * page/qt/FrameQt.cpp: Removed issueTransposeCommand.
      
              * platform/gtk/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled.
              * platform/qt/TemporaryLinkStubs.cpp: Ditto.
              * platform/win/TemporaryLinkStubs.cpp: Removed or moved all but 3 of the stubs.
              * platform/wx/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled,
              issueTransposeCommand, and overrideMediaType.
      
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::ResourceHandle::loadsBlocked): Moved here from TemporaryLinkStubs.
              (WebCore::ResourceHandle::willLoadFromCache): Ditto.
              * platform/win/GraphicsContextWin.cpp:
              (WebCore::GraphicsContextPlatformPrivate::clip): Ditto.
              * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::inWindow): Ditto.
              * platform/win/SystemTimeWin.cpp: (WebCore::userIdleTime): Ditto.
              * platform/win/WidgetWin.cpp: (WebCore::Widget::setIsSelected): Ditto.
      
              * WebCore.pro: Updated for removed files.
              * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
      
      WebKit/mac:
      
              Reviewed by Steve.
      
              - removed some unused WebCore bridge methods
      
              * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
              using the bridge object.
      
      WebKit/win:
      
              Reviewed by Steve.
      
              * Interfaces/IWebUIDelegate.idl: Added the functions needed below.
              * WebChromeClient.cpp:
              (WebChromeClient::setMenubarVisible): Eliminated the notImplemented()
              here by calling through the UI delegate.
              (WebChromeClient::menubarVisible): Ditto.
              (WebChromeClient::runDatabaseSizeLimitPrompt): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02405e32
  31. 23 Sep, 2007 1 commit
    • zecke's avatar
      /: · 2752405f
      zecke authored
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              Renamed files from *Gdk to *Gtk (see #14732) using the
              work of Juan A. Suarez Romero as a base.
      
              GDK -> GTK
      
              * WebKit.pri:
              * WebKit.pro:
      
      JavaScriptCore:
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              Renamed files from *Gdk to *Gtk (see #14732) using the
              work of Juan A. Suarez Romero as a base.
      
              GDK -> GTK 
      
              * JavaScriptCore.pri:
              * kjs/testkjs.pro:
              * pcre/dftables.pro:
              * wtf/Platform.h: PLATFORM(GDK) to PLATFORM(GTK)
      
      WebCore:
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              Renamed files from *Gdk to *Gtk (see #14732) using the
              work of Juan A. Suarez Romero as a base.
      
              GDK -> GTK
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCore.pro:
              * WebCoreSources.bkl:
              * loader/gdk: Removed.
              * loader/gdk/DocumentLoaderGdk.cpp: Removed.
              * loader/gtk: Added.
              * loader/gtk/DocumentLoaderGdk.cpp: Removed.
              * loader/gtk/DocumentLoaderGtk.cpp: Added.
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/gdk: Removed.
              * page/gdk/DragControllerGdk.cpp: Removed.
              * page/gdk/EventHandlerGdk.cpp: Removed.
              * page/gdk/FrameGdk.cpp: Removed.
              * page/gtk: Added.
              * page/gtk/DragControllerGdk.cpp: Removed.
              * page/gtk/DragControllerGtk.cpp: Added.
              * page/gtk/EventHandlerGdk.cpp: Removed.
              * page/gtk/EventHandlerGtk.cpp: Added.
              (WebCore::EventHandler::createDraggingClipboard):
              * page/gtk/FrameGdk.cpp: Removed.
              * page/gtk/FrameGtk.cpp: Added.
              * platform/ContextMenuItem.h:
              * platform/Cursor.h:
              * platform/DragData.h:
              * platform/DragImage.h:
              * platform/FontData.h:
              * platform/NotImplemented.h:
              * platform/PlatformKeyboardEvent.h:
              * platform/PlatformMenuDescription.h:
              * platform/PlatformMouseEvent.h:
              * platform/PlatformWheelEvent.h:
              * platform/ScrollView.h:
              * platform/Widget.h:
              * platform/gdk: Removed.
              * platform/gdk/ClipboardGdk.cpp: Removed.
              * platform/gdk/ClipboardGdk.h: Removed.
              * platform/gdk/ContextMenuGdk.cpp: Removed.
              * platform/gdk/ContextMenuItemGdk.cpp: Removed.
              * platform/gdk/CookieJarGdk.cpp: Removed.
              * platform/gdk/CursorGdk.cpp: Removed.
              * platform/gdk/DragDataGdk.cpp: Removed.
              * platform/gdk/DragImageGdk.cpp: Removed.
              * platform/gdk/FileChooserGdk.cpp: Removed.
              * platform/gdk/FileSystemGdk.cpp: Removed.
              * platform/gdk/FontCacheGdk.cpp: Removed.
              * platform/gdk/FontDataGdk.cpp: Removed.
              * platform/gdk/FontGdk.cpp: Removed.
              * platform/gdk/FontPlatformData.h: Removed.
              * platform/gdk/FontPlatformDataGdk.cpp: Removed.
              * platform/gdk/GlyphPageTreeNodeGdk.cpp: Removed.
              * platform/gdk/KeyEventGdk.cpp: Removed.
              * platform/gdk/KeyboardCodes.h: Removed.
              * platform/gdk/LocalizedStringsGdk.cpp: Removed.
              * platform/gdk/LoggingGdk.cpp: Removed.
              * platform/gdk/MIMETypeRegistryGdk.cpp: Removed.
              * platform/gdk/MouseEventGdk.cpp: Removed.
              * platform/gdk/PasteboardGdk.cpp: Removed.
              * platform/gdk/PlatformScreenGdk.cpp: Removed.
              * platform/gdk/PlatformScrollBar.h: Removed.
              * platform/gdk/PlatformScrollBarGdk.cpp: Removed.
              * platform/gdk/PopupMenuGdk.cpp: Removed.
              * platform/gdk/RenderThemeGdk.cpp: Removed.
              * platform/gdk/RenderThemeGdk.h: Removed.
              * platform/gdk/ScrollViewGdk.cpp: Removed.
              * platform/gdk/SearchPopupMenuGdk.cpp: Removed.
              * platform/gdk/SharedTimerLinux.cpp: Removed.
              * platform/gdk/SoundGdk.cpp: Removed.
              * platform/gdk/SystemTimeLinux.cpp: Removed.
              * platform/gdk/TemporaryLinkStubs.cpp: Removed.
              * platform/gdk/WheelEventGdk.cpp: Removed.
              * platform/gdk/WidgetGdk.cpp: Removed.
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContext::setPlatformFont):
              * platform/graphics/gdk: Removed.
              * platform/graphics/gdk/IconGdk.cpp: Removed.
              * platform/graphics/gdk/ImageGdk.cpp: Removed.
              * platform/graphics/gtk: Added.
              * platform/graphics/gtk/IconGdk.cpp: Removed.
              * platform/graphics/gtk/IconGtk.cpp: Added.
              * platform/graphics/gtk/ImageGdk.cpp: Removed.
              * platform/graphics/gtk/ImageGtk.cpp: Added.
              * platform/gtk: Added.
              * platform/gtk/ClipboardGdk.cpp: Removed.
              * platform/gtk/ClipboardGdk.h: Removed.
              * platform/gtk/ClipboardGtk.cpp: Added.
              (WebCore::ClipboardGtk::ClipboardGtk):
              (WebCore::ClipboardGtk::~ClipboardGtk):
              (WebCore::ClipboardGtk::clearData):
              (WebCore::ClipboardGtk::clearAllData):
              (WebCore::ClipboardGtk::getData):
              (WebCore::ClipboardGtk::setData):
              (WebCore::ClipboardGtk::types):
              (WebCore::ClipboardGtk::dragLocation):
              (WebCore::ClipboardGtk::dragImage):
              (WebCore::ClipboardGtk::setDragImage):
              (WebCore::ClipboardGtk::dragImageElement):
              (WebCore::ClipboardGtk::setDragImageElement):
              (WebCore::ClipboardGtk::createDragImage):
              (WebCore::ClipboardGtk::declareAndWriteDragImage):
              (WebCore::ClipboardGtk::writeURL):
              (WebCore::ClipboardGtk::writeRange):
              (WebCore::ClipboardGtk::hasData):
              * platform/gtk/ClipboardGtk.h: Added.
              * platform/gtk/ContextMenuGdk.cpp: Removed.
              * platform/gtk/ContextMenuGtk.cpp: Added.
              * platform/gtk/ContextMenuItemGdk.cpp: Removed.
              * platform/gtk/ContextMenuItemGtk.cpp: Added.
              * platform/gtk/CookieJarGdk.cpp: Removed.
              * platform/gtk/CookieJarGtk.cpp: Added.
              * platform/gtk/CursorGdk.cpp: Removed.
              * platform/gtk/CursorGtk.cpp: Added.
              * platform/gtk/DragDataGdk.cpp: Removed.
              * platform/gtk/DragDataGtk.cpp: Added.
              * platform/gtk/DragImageGdk.cpp: Removed.
              * platform/gtk/DragImageGtk.cpp: Added.
              * platform/gtk/FileChooserGdk.cpp: Removed.
              * platform/gtk/FileChooserGtk.cpp: Added.
              * platform/gtk/FileSystemGdk.cpp: Removed.
              * platform/gtk/FileSystemGtk.cpp: Added.
              * platform/gtk/FontCacheGdk.cpp: Removed.
              * platform/gtk/FontCacheGtk.cpp: Added.
              * platform/gtk/FontDataGdk.cpp: Removed.
              * platform/gtk/FontDataGtk.cpp: Added.
              * platform/gtk/FontGdk.cpp: Removed.
              * platform/gtk/FontGtk.cpp: Added.
              * platform/gtk/FontPlatformDataGdk.cpp: Removed.
              * platform/gtk/FontPlatformDataGtk.cpp: Added.
              * platform/gtk/GlyphPageTreeNodeGdk.cpp: Removed.
              * platform/gtk/GlyphPageTreeNodeGtk.cpp: Added.
              * platform/gtk/KeyEventGdk.cpp: Removed.
              * platform/gtk/KeyEventGtk.cpp: Added.
              * platform/gtk/LocalizedStringsGdk.cpp: Removed.
              * platform/gtk/LocalizedStringsGtk.cpp: Added.
              * platform/gtk/LoggingGdk.cpp: Removed.
              * platform/gtk/LoggingGtk.cpp: Added.
              * platform/gtk/MIMETypeRegistryGdk.cpp: Removed.
              * platform/gtk/MIMETypeRegistryGtk.cpp: Added.
              * platform/gtk/MouseEventGdk.cpp: Removed.
              * platform/gtk/MouseEventGtk.cpp: Added.
              * platform/gtk/PasteboardGdk.cpp: Removed.
              * platform/gtk/PasteboardGtk.cpp: Added.
              * platform/gtk/PlatformScreenGdk.cpp: Removed.
              * platform/gtk/PlatformScreenGtk.cpp: Added.
              * platform/gtk/PlatformScrollBarGdk.cpp: Removed.
              * platform/gtk/PlatformScrollBarGtk.cpp: Added.
              * platform/gtk/PopupMenuGdk.cpp: Removed.
              * platform/gtk/PopupMenuGtk.cpp: Added.
              * platform/gtk/RenderThemeGdk.cpp: Removed.
              * platform/gtk/RenderThemeGdk.h: Removed.
              * platform/gtk/RenderThemeGtk.cpp: Added.
              (WebCore::theme):
              (WebCore::RenderThemeGtk::RenderThemeGtk):
              (WebCore::RenderThemeGtk::close):
              (WebCore::RenderThemeGtk::addIntrinsicMargins):
              (WebCore::RenderThemeGtk::supportsFocus):
              (WebCore::RenderThemeGtk::determineState):
              (WebCore::RenderThemeGtk::determineShadow):
              (WebCore::RenderThemeGtk::getThemeData):
              (WebCore::RenderThemeGtk::setCheckboxSize):
              (WebCore::RenderThemeGtk::paintCheckbox):
              (WebCore::RenderThemeGtk::setRadioSize):
              (WebCore::RenderThemeGtk::paintRadio):
              (WebCore::RenderThemeGtk::paintButton):
              (WebCore::RenderThemeGtk::adjustTextFieldStyle):
              (WebCore::RenderThemeGtk::paintTextField):
              (WebCore::RenderThemeGtk::paintTextArea):
              (WebCore::RenderThemeGtk::adjustButtonStyle):
              (WebCore::RenderThemeGtk::systemFont):
              (WebCore::RenderThemeGtk::gtkButton):
              (WebCore::RenderThemeGtk::gtkCheckbox):
              (WebCore::RenderThemeGtk::gtkRadioButton):
              (WebCore::RenderThemeGtk::gtkWindowContainer):
              * platform/gtk/RenderThemeGtk.h: Added.
              * platform/gtk/ScrollViewGdk.cpp: Removed.
              * platform/gtk/ScrollViewGtk.cpp: Added.
              * platform/gtk/SearchPopupMenuGdk.cpp: Removed.
              * platform/gtk/SearchPopupMenuGtk.cpp: Added.
              * platform/gtk/SoundGdk.cpp: Removed.
              * platform/gtk/SoundGtk.cpp: Added.
              * platform/gtk/WheelEventGdk.cpp: Removed.
              * platform/gtk/WheelEventGtk.cpp: Added.
              * platform/gtk/WidgetGdk.cpp: Removed.
              * platform/gtk/WidgetGtk.cpp: Added.
              * platform/network/ResourceHandle.h:
      
      WebKitTools:
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              * GdkLauncher: Removed.
              * GdkLauncher/Bakefiles.bkgen: Removed.
              * GdkLauncher/ENV: Removed.
              * GdkLauncher/GdkLauncher.pro: Removed.
              * GdkLauncher/gdklauncher.bkl: Removed.
              * GdkLauncher/main.cpp: Removed.
              * GdkLauncher/mk: Removed.
              * GdkLauncher/simple.svg: Removed.
              * GdkLauncher/text.html: Removed.
              * GtkLauncher: Added.
              * GtkLauncher/GdkLauncher.pro: Removed.
              * GtkLauncher/GtkLauncher.pro: Added.
              * GtkLauncher/main.cpp:
              (updateWindowTitle):
              (main):
              * Scripts/build-webkit:
              * Scripts/regenerate-makefiles:
              * Scripts/run-javascriptcore-tests:
              * Scripts/run-launcher:
              * Scripts/run-webkit-tests:
              * Scripts/webkitdirs.pm:
      
      
      
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2752405f
  32. 21 Sep, 2007 1 commit
  33. 07 Aug, 2007 2 commits
    • zecke's avatar
      WebCore: · da4d5df9
      zecke authored
      2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              Kill class FrameGdk and move the stubs to page/gdk/FrameGdk.cpp and the
              remainings into WebKitGtkFrame.
              The DRT functionality of class FrameGdk is currently lost.
      
              * WebCore.pro:
              * loader/gdk/FrameLoaderClientGdk.cpp:
              * loader/gdk/FrameLoaderClientGdk.h:
              * page/gdk/FrameGdk.cpp: Renamed from WebCore/platform/gdk/FrameGdk.cpp.
              (WebCore::Frame::issueTransposeCommand):
              (WebCore::Frame::cleanupPlatformScriptObjects):
              (WebCore::Frame::dragImageForSelection):
              (WebCore::Frame::dashboardRegionsChanged):
              * platform/gdk/FrameGdk.h: Removed.
              * platform/gdk/TemporaryLinkStubs.cpp: Removed Frame stub, added the loadResourceIntoArray stub
              * platform/gdk/WidgetGdk.cpp:
      
      WebKit:
      2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              Moved code from class FrameGdk into WebKitGtkFrame. Update the
              webkitgrkprivate.h header file to not include FrameGdk.h.
      
              * gtk/Api/webkitgtkframe.cpp:
              * gtk/Api/webkitgtkprivate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da4d5df9
    • zecke's avatar
      WebCore: · a96bd754
      zecke authored
      2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              Remove the event handling code and move it to WebKit/gtk/Api/webkitgtkpage.cpp
      
              * platform/gdk/FrameGdk.cpp:
              * platform/gdk/FrameGdk.h:
      
      WebKit:
      2007-08-08  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              Reimplement GtkWidget::event and handle the keyboard and mouse
              events inside WebKitGtkPage.
      
              * gtk/Api/webkitgtkpage.cpp:
              (FrameGdkExposeData::frame_gdk_expose_child):
              (FrameGdkExposeData::webkit_gtk_page_rendering_area_handle_gdk_event):
              (FrameGdkExposeData::webkit_gtk_page_register_rendering_area_events):
              (FrameGdkExposeData::webkit_gtk_page_class_init):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a96bd754
  34. 23 Jul, 2007 1 commit
    • zecke's avatar
      2007-07-22 Holger Hans Peter Freyther <zecke@selfish.org> · 5604daf5
      zecke authored
              Reviewed by Adam.
      
              Add WebKit/gtk/Api and WebCoreSupport API to the INCLUDEPATH to allow GdkLauncher to be
              build against it.
      
              * WebKit.pri:
      
      
      WebCore:
      2007-07-22  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              WARNING: NO TEST CASES ADDED OR CHANGED
      
              Add the WebKit/Gtk API to the buildsystem, ask qmake to create a
              pkg-config file and install headers and libraries.
      
              Start to emit signals from FrameLoaderClientGdk, hide the kit Frame
              inside the the FrameLoaderClientGdk.
      
              Move ChromeClientGdk to WebKit/gtk/WebCoreSupport
      
              * WebCore.pro:
              * loader/gdk/FrameLoaderClientGdk.cpp:
              * loader/gdk/FrameLoaderClientGdk.h:
              * platform/gdk/ChromeClientGdk.h: Removed.
              * platform/gdk/FrameGdk.cpp: Remove code not belonging here
              * platform/gdk/FrameGdk.h:
              * platform/gdk/ScrollViewGdk.cpp: The gdkDrawable won't exist at that time and it is fine
              * platform/gdk/TemporaryLinkStubs.cpp: Removed ChromeClientGdk stubs
      
      WebKit:
      2007-07-22  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              Add the first API and partial implementation of the WebKit/Gtk port as
              of http://bugs.webkit.org/show_bug.cgi?id=14678.
      
              The delegates of WebView will be modeled as signals. Delegates like the
              WebPolicyDelegate will be implemented as signals with default handlers.
      
              Start moving files to WebKit/gtk/WebCoreSupport.
      
              * gtk: Added.
              * gtk/Api: Added.
              * gtk/Api/headers.pri: Added.
              * gtk/Api/webkitgtk-marshal.list: Added.
              * gtk/Api/webkitgtkdefines.h: Added.
              * gtk/Api/webkitgtkframe.cpp: Added.
              * gtk/Api/webkitgtkframe.h: Added.
              * gtk/Api/webkitgtkframedata.cpp: Added.
              * gtk/Api/webkitgtkframedata.h: Added.
              * gtk/Api/webkitgtkglobal.cpp: Added.
              * gtk/Api/webkitgtkglobal.h: Added.
              * gtk/Api/webkitgtknetworkrequest.cpp: Added.
              * gtk/Api/webkitgtknetworkrequest.h: Added.
              * gtk/Api/webkitgtkpage.cpp: Added.
              * gtk/Api/webkitgtkpage.h: Added.
              * gtk/Api/webkitgtkprivate.cpp: Added.
              * gtk/Api/webkitgtkprivate.h: Added.
              * gtk/Api/webkitgtksettings.cpp: Added.
              * gtk/Api/webkitgtksettings.h: Added.
              * gtk/WebCoreSupport: Added.
              * gtk/WebCoreSupport/ChromeClientGdk.cpp: Added.
              (WebCore::ChromeClientGdk::ChromeClientGdk):
              (WebCore::ChromeClientGdk::chromeDestroyed):
              (WebCore::ChromeClientGdk::windowRect):
              (WebCore::ChromeClientGdk::setWindowRect):
              (WebCore::ChromeClientGdk::pageRect):
              (WebCore::ChromeClientGdk::scaleFactor):
              (WebCore::ChromeClientGdk::focus):
              (WebCore::ChromeClientGdk::unfocus):
              (WebCore::ChromeClientGdk::createWindow):
              (WebCore::ChromeClientGdk::createModalDialog):
              (WebCore::ChromeClientGdk::show):
              (WebCore::ChromeClientGdk::canRunModal):
              (WebCore::ChromeClientGdk::runModal):
              (WebCore::ChromeClientGdk::setToolbarsVisible):
              (WebCore::ChromeClientGdk::toolbarsVisible):
              (WebCore::ChromeClientGdk::setStatusbarVisible):
              (WebCore::ChromeClientGdk::statusbarVisible):
              (WebCore::ChromeClientGdk::setScrollbarsVisible):
              (WebCore::ChromeClientGdk::scrollbarsVisible):
              (WebCore::ChromeClientGdk::setMenubarVisible):
              (WebCore::ChromeClientGdk::menubarVisible):
              (WebCore::ChromeClientGdk::setResizable):
              (WebCore::ChromeClientGdk::closeWindowSoon):
              (WebCore::ChromeClientGdk::canTakeFocus):
              (WebCore::ChromeClientGdk::takeFocus):
              (WebCore::ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
              (WebCore::ChromeClientGdk::runBeforeUnloadConfirmPanel):
              (WebCore::ChromeClientGdk::addMessageToConsole):
              (WebCore::ChromeClientGdk::runJavaScriptAlert):
              (WebCore::ChromeClientGdk::runJavaScriptConfirm):
              (WebCore::ChromeClientGdk::runJavaScriptPrompt):
              (WebCore::ChromeClientGdk::setStatusbarText):
              (WebCore::ChromeClientGdk::shouldInterruptJavaScript):
              (WebCore::ChromeClientGdk::tabsToLinks):
              (WebCore::ChromeClientGdk::windowResizerRect):
              (WebCore::ChromeClientGdk::addToDirtyRegion):
              (WebCore::ChromeClientGdk::scrollBackingStore):
              (WebCore::ChromeClientGdk::updateBackingStore):
              (WebCore::ChromeClientGdk::mouseDidMoveOverElement):
              (WebCore::ChromeClientGdk::setToolTip):
              (WebCore::ChromeClientGdk::print):
              * gtk/WebCoreSupport/ChromeClientGdk.h: Added.
      
      WebKitTools:
      2007-07-22  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              Make the GdkLauncher use the new WebKit/Gtk API. Change webkitdirs.pm to
              honor --qmakearg for the Gdk/Gtk build as well.
      
              * GdkLauncher/main.cpp: Switch to the new API
              * Scripts/webkitdirs.pm: Allow to specify --qmakearg, e.g. to control the WEBKIT_{INC,LIB}_DIR 
      
      
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5604daf5
  35. 04 Mar, 2007 1 commit
    • kjk's avatar
      WebCore: · 65a9f5ed
      kjk authored
              Reviewed by Nikolas Zimmermann.
      
              Move ScrollView stubs to ScrollViewGdk.cpp
      
              * platform/gdk/FrameGdk.h: remove comment that no longer makes sense
              * platform/gdk/ScrollViewGdk.cpp:
              (WebCore::ScrollView::addChild):
              (WebCore::ScrollView::removeChild):
              (WebCore::ScrollView::scrollPointRecursively):
              (WebCore::ScrollView::inWindow):
              (WebCore::ScrollView::wheelEvent):
              (WebCore::ScrollView::updateScrollbars):
              (WebCore::ScrollView::updateScrollInfo):
              (WebCore::ScrollView::windowToContents):
              (WebCore::ScrollView::contentsToWindow):
              (WebCore::ScrollView::scrollbarUnderMouse):
              * platform/gdk/TemporaryLinkStubs.cpp:
      
        WebKitTools:
      
              Reviewed by Nikolas Zimmermann.
      
              Load a url given on a command line in a way that also
              works for local (file://) urls.
      
              * GdkLauncher/main.cpp:
              (main):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      65a9f5ed