1. 06 Mar, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Introduce new message sources for logging. · c79ed84a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=110968
      
      Patch by Dmitry Zvorygin <zvorygin@chromium.org> on 2013-03-06
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Added SecurityMessageSource, RenderingMessageSource, StorageMessageSource, AppCacheMessageSource, CSSMessageSource.
      Changed some logging lines to contain more descriptive message source.
      
      * Modules/webdatabase/DatabaseBase.cpp:
      (WebCore::DatabaseBase::logErrorMessage):
      * Modules/webdatabase/DatabaseManager.cpp:
      (WebCore::DatabaseManager::logErrorMessage):
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::fail):
      * bindings/ScriptControllerBase.cpp:
      (WebCore::ScriptController::canExecuteScripts):
      * css/MediaList.cpp:
      (WebCore::addResolutionWarningMessageToConsole):
      * dom/Document.cpp:
      (WebCore::Document::processHttpEquiv):
      * dom/ScriptElement.cpp:
      (WebCore::ScriptElement::executeScript):
      (WebCore::ScriptElement::notifyFinished):
      * dom/ViewportArguments.cpp:
      (WebCore::reportViewportWarning):
      * html/HTMLFormControlElement.cpp:
      (WebCore::shouldAutofocus):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::validateInteractively):
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::parseAttribute):
      * html/canvas/CanvasRenderingContext2D.cpp:
      (WebCore::CanvasRenderingContext2D::getImageData):
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore):
      (WebCore::WebGLRenderingContext::printWarningToConsole):
      * html/parser/XSSAuditor.cpp:
      (WebCore::XSSAuditor::init):
      * html/parser/XSSAuditorDelegate.cpp:
      (WebCore::XSSAuditorDelegate::didBlockScript):
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageSourceValue):
      * inspector/Inspector.json:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::submitForm):
      (WebCore::FrameLoader::reportLocalLoadFailed):
      (WebCore::createWindow):
      * loader/ImageLoader.cpp:
      (WebCore::ImageLoader::notifyFinished):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::responseReceived):
      * loader/MixedContentChecker.cpp:
      (WebCore::MixedContentChecker::logWarning):
      * loader/TextTrackLoader.cpp:
      (WebCore::TextTrackLoader::corsPolicyPreventedLoad):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::abort):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::printAccessDeniedMessage):
      * page/Console.cpp:
      (WebCore::printMessageSourceAndLevelPrefix):
      * page/ConsoleTypes.h:
      * page/ContentSecurityPolicy.cpp:
      (WebCore::ContentSecurityPolicy::logToConsole):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
      * page/PointerLockController.cpp:
      (WebCore::PointerLockController::requestPointerLock):
      * svg/SVGDocumentExtensions.cpp:
      (WebCore::reportMessage):
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebChromeClient.mm:
      * WebView/WebUIDelegatePrivate.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c79ed84a
  2. 26 Feb, 2013 1 commit
    • commit-queue@webkit.org's avatar
      Merged Tip and Debug log levels for web console. · c588b484
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=109919
      
      Patch by Dmitry Zvorygin <zvorygin@chromium.org> on 2013-02-26
      Reviewed by Pavel Feldman.
      
      In every component either TIP or DEBUG level was used for reporting,
      but not both. This patch is prerequisite for Web Inspector console log filtering.
      
      Source/WebCore:
      
      * css/MediaList.cpp:
      (WebCore::addResolutionWarningMessageToConsole):
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageLevelValue):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::abort):
      * page/Console.cpp:
      (WebCore::printMessageSourceAndLevelPrefix):
      * page/ConsoleTypes.h:
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::XSLTProcessor::parseErrorFunc):
      * xml/XSLTProcessorQt.cpp:
      (WebCore::XSLTMessageHandler::handleMessage):
      
      Source/WebKit/chromium:
      
      * public/WebConsoleMessage.h:
      * src/AssertMatchingEnums.cpp:
      * src/WebFrameImpl.cpp:
      (WebKit::WebFrameImpl::addMessageToConsole):
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebChromeClient.mm:
      (stringForMessageLevel):
      * WebView/WebUIDelegatePrivate.h:
      
      Source/WebKit/wx:
      
      * WebView.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@144064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c588b484
  3. 11 Dec, 2012 1 commit
    • mkwst@chromium.org's avatar
      Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector. · 236e8984
      mkwst@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=66371
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      We can simplify console message generation a bit, as nothing outside the
      Console object itself will generate messages of any type other than
      LogMessageType. This patch refactors the externally-facing API endpoints
      on ScriptExecutionContext and Console to drop the MessageType parameter,
      moves the MessageType enum into a new InspectorConsoleTypes.h header,
      and updates all the call sites (and ChromeClients) to drop the parameter
      from their interfaces.
      
      As a temporary bandage for ports using this interface, this patch
      includes aliases for the new methods that retain the old interface.
      I'll remove them in a future patch.
      
      Here, we only refactor an internal interface. No tests should break.
      
      * GNUmakefile.list.am:
      * Target.pri:
      * WebCore.gypi:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
          We added a new file! OMG!
      * Modules/webaudio/AudioBufferSourceNode.cpp:
      (WebCore::AudioBufferSourceNode::looping):
      (WebCore::AudioBufferSourceNode::setLooping):
      * Modules/webdatabase/AbstractDatabase.cpp:
      (WebCore::AbstractDatabase::logErrorMessage):
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::connect):
      (WebCore::WebSocket::send):
      (WebCore::WebSocket::close):
      (WebCore::WebSocket::setBinaryType):
      * Modules/websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::fail):
      (WebCore::WebSocketChannel::didFailSocketStream):
      * bindings/js/JSCustomXPathNSResolver.cpp:
      (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
      * bindings/v8/custom/V8CustomXPathNSResolver.cpp:
      (WebCore::V8CustomXPathNSResolver::lookupNamespaceURI):
      * css/MediaList.cpp:
      (WebCore::addResolutionWarningMessageToConsole):
      * dom/Document.cpp:
      (WebCore::Document::logExceptionToConsole):
      (WebCore::Document::processHttpEquiv):
      (WebCore::Document::addMessage):
      * dom/Document.h:
      (Document):
      * dom/ScriptElement.cpp:
      (WebCore::ScriptElement::notifyFinished):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::AddConsoleMessageTask::performTask):
      (WebCore::ScriptExecutionContext::addConsoleMessage):
      * dom/ScriptExecutionContext.h:
      (ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::AddConsoleMessageTask::create):
      (WebCore::ScriptExecutionContext::AddConsoleMessageTask::AddConsoleMessageTask):
      * dom/ViewportArguments.cpp:
      (WebCore::reportViewportWarning):
      * fileapi/WebKitBlobBuilder.cpp:
      (WebCore::BlobBuilder::append):
      * html/HTMLFormControlElement.cpp:
      (WebCore::shouldAutofocus):
      * html/HTMLFormElement.cpp:
      (WebCore::HTMLFormElement::validateInteractively):
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::parseAttribute):
      * html/HTMLTrackElement.cpp:
      (WebCore::HTMLTrackElement::canLoadUrl):
      * html/canvas/CanvasRenderingContext2D.cpp:
      (WebCore::CanvasRenderingContext2D::getImageData):
      * html/canvas/WebGLRenderingContext.cpp:
      (WebCore):
      (WebCore::WebGLRenderingContext::printWarningToConsole):
      * html/parser/XSSAuditor.cpp:
      (WebCore::XSSAuditor::init):
      (WebCore::XSSAuditor::filterToken):
      * inspector/ConsoleAPITypes.h: Added.
      (WebCore):
      * inspector/ConsoleMessage.h:
      * inspector/InspectorConsoleAgent.h:
      * inspector/InspectorDebuggerAgent.h:
      * inspector/InspectorInstrumentation.cpp:
      (WebCore):
      * inspector/InspectorInstrumentation.h:
      * inspector/InspectorProfilerAgent.cpp:
      * loader/EmptyClients.h:
      (WebCore::EmptyChromeClient::addMessageToConsole):
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::reportLocalLoadFailed):
      (WebCore::FrameLoader::shouldInterruptLoadForXFrameOptions):
      * loader/ImageLoader.cpp:
      (WebCore::ImageLoader::notifyFinished):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::didReceiveResponse):
      * loader/MixedContentChecker.cpp:
      (WebCore::MixedContentChecker::logWarning):
      * loader/TextTrackLoader.cpp:
      (WebCore::TextTrackLoader::corsPolicyPreventedLoad):
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::abort):
      (WebCore::ApplicationCacheGroup::didReceiveResponse):
      (WebCore::ApplicationCacheGroup::didFinishLoading):
      (WebCore::ApplicationCacheGroup::didFail):
      (WebCore::ApplicationCacheGroup::didReceiveManifestResponse):
      (WebCore::ApplicationCacheGroup::didFinishLoadingManifest):
      (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
      * loader/cache/CachedResourceLoader.cpp:
      (WebCore::CachedResourceLoader::printAccessDeniedMessage):
      * page/ChromeClient.h:
      (ChromeClient):
          Drop LogMessageType from everywhere.
      * page/Console.cpp:
      (WebCore::Console::addMessage):
      (WebCore::internalAddMessage):
      (WebCore::Console::error):
      (WebCore::Console::log):
      (WebCore::Console::warn):
      (WebCore::Console::dir):
      (WebCore::Console::dirxml):
      (WebCore::Console::clear):
      (WebCore::Console::trace):
      (WebCore::Console::assertCondition):
      * page/Console.h:
      (Console):
          Create a new internalAddMessage that's used for the various
          Console message types. Everything else routes through
          ::addMessage.
      * page/ConsoleTypes.h:
          Drop MessageTypes from this file, add it to ConsoleAPIType.h
      * page/ContentSecurityPolicy.cpp:
      (WebCore::ContentSecurityPolicy::logToConsole):
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::dispatchMessageEventWithOriginCheck):
      (WebCore::DOMWindow::printErrorMessage):
      * page/EventSource.cpp:
      (WebCore::EventSource::didReceiveResponse):
      * svg/SVGDocumentExtensions.cpp:
      (WebCore::reportMessage):
      * workers/DefaultSharedWorkerRepository.cpp:
      (SharedWorkerProxy):
      (WebCore::postConsoleMessageTask):
      (WebCore::SharedWorkerProxy::postConsoleMessageToWorkerObject):
      * workers/SharedWorkerContext.cpp:
      (WebCore::SharedWorkerContext::logExceptionToConsole):
      * workers/WorkerContext.cpp:
      (WebCore::WorkerContext::addMessage):
      (WebCore::WorkerContext::addMessageToWorkerConsole):
      * workers/WorkerContext.h:
      (WorkerContext):
      * workers/WorkerMessagingProxy.cpp:
      (WebCore::postConsoleMessageTask):
      (WebCore::WorkerMessagingProxy::postConsoleMessageToWorkerObject):
      * workers/WorkerMessagingProxy.h:
      (WorkerMessagingProxy):
      * workers/WorkerReportingProxy.h:
      (WorkerReportingProxy):
      * xml/XMLHttpRequest.cpp:
      (WebCore::logConsoleError):
      (WebCore::XMLHttpRequest::send):
      * xml/XSLTProcessorLibxslt.cpp:
      (WebCore::XSLTProcessor::parseErrorFunc):
      * xml/XSLTProcessorQt.cpp:
      (WebCore::XSLTMessageHandler::handleMessage):
          Drop LogMessageType from everywhere.
      
      Source/WebKit/blackberry:
      
      Drops WebCore::MessageType from the addMessageToConsole method.
      
      * WebCoreSupport/ChromeClientBlackBerry.cpp:
      (WebCore::ChromeClientBlackBerry::addMessageToConsole):
      * WebCoreSupport/ChromeClientBlackBerry.h:
      (ChromeClientBlackBerry):
      
      Source/WebKit/chromium:
      
      Drops WebCore::MessageType from the addMessageToConsole method, and all
      the ancilliary places it touches.
      
      Aliases postConsoleMessageToWorkerObject with the old interface in
      order to maintain back-compat. Will remove it in a future patch once
      Chromium is updated.
      
      * public/WebSharedWorkerClient.h:
      (WebSharedWorkerClient):
      (WebKit::WebSharedWorkerClient::postConsoleMessageToWorkerObject):
      * src/ChromeClientImpl.cpp:
      * src/ChromeClientImpl.h:
      (ChromeClientImpl):
      * src/WebFrameImpl.cpp:
      (WebKit::WebFrameImpl::addMessageToConsole):
      * src/WebPagePopupImpl.cpp:
      * src/WebSharedWorkerImpl.cpp:
      (WebKit::WebSharedWorkerImpl::postConsoleMessageToWorkerObject):
      (WebKit::WebSharedWorkerImpl::postConsoleMessageTask):
      * src/WebSharedWorkerImpl.h:
      (WebSharedWorkerImpl):
      * src/WebWorkerClientImpl.cpp:
      (WebKit::WebWorkerClientImpl::postConsoleMessageToWorkerObject):
      * src/WebWorkerClientImpl.h:
      (WebWorkerClientImpl):
      
      Source/WebKit/efl:
      
      Drops WebCore::MessageType from the addMessageToConsole method.
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      (WebCore::ChromeClientEfl::addMessageToConsole):
      * WebCoreSupport/ChromeClientEfl.h:
      (ChromeClientEfl):
      
      Source/WebKit/gtk:
      
      Drops WebCore::MessageType from the addMessageToConsole method.
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::ChromeClient::addMessageToConsole):
      * WebCoreSupport/ChromeClientGtk.h:
      (ChromeClient):
      
      Source/WebKit/mac:
      
      Drops WebCore::MessageType from the addMessageToConsole method.
      
      * WebCoreSupport/WebChromeClient.h:
      (WebChromeClient):
      * WebCoreSupport/WebChromeClient.mm:
      (WebChromeClient::addMessageToConsole):
      
      Source/WebKit/qt:
      
      Drops WebCore::MessageType from the addMessageToConsole method.
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::addMessageToConsole):
      * WebCoreSupport/ChromeClientQt.h:
      (ChromeClientQt):
      
      Source/WebKit/win:
      
      Drops WebCore::MessageType from the addMessageToConsole method.
      
      * WebCoreSupport/WebChromeClient.cpp:
      (WebChromeClient::addMessageToConsole):
      * WebCoreSupport/WebChromeClient.h:
      (WebChromeClient):
      
      Source/WebKit/wince:
      
      Drops WebCore::MessageType from the addMessageToConsole method.
      
      * WebCoreSupport/ChromeClientWinCE.cpp:
      (WebKit::ChromeClientWinCE::addMessageToConsole):
      * WebCoreSupport/ChromeClientWinCE.h:
      (ChromeClientWinCE):
      
      Source/WebKit2:
      
      Drops WebCore::MessageLevel from the addMessageToConsole method.
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::addMessageToConsole):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      (WebChromeClient):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      236e8984
  4. 03 Dec, 2012 1 commit
    • caseq@chromium.org's avatar
      Web Inspector: make it possible to fliter out messages from console.{time,timeEnd}() · a6066099
      caseq@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=103781
      
      Reviewed by Yury Semikhatsky.
      
      - make console messages produced by console.timeEnd() TimingMessageType & DebugMessageLevel;
      - add console filter for Debug messages;
      
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageTypeValue):
      * inspector/Inspector.json:
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::stopTiming):
      * inspector/front-end/ConsoleMessage.js:
      (WebInspector.ConsoleMessageImpl.prototype.toMessageElement):
      * inspector/front-end/ConsoleView.js:
      (WebInspector.ConsoleView.prototype.):
      (WebInspector.ConsoleView.prototype.filter):
      * inspector/front-end/inspector.css:
      (.console-warning-level, .console-error-level, .console-log-level, .console-debug-level):
      (.filter-all .console-debug-level, .filter-debug .console-debug-level):
      (.filter-all .console-debug-level.repeated-message, .filter-debug .console-debug-level.repeated-message):
      * page/ConsoleTypes.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6066099
  5. 06 Nov, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Added console.clear() method · 8e628316
      commit-queue@webkit.org authored
      Web Inspector: add console.clear()
      https://bugs.webkit.org/show_bug.cgi?id=101021
      
      Patch by Andrey Lushnikov <lushnikov@google.com> on 2012-11-06
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      Adds native implementation of console.clear
      
      Test: inspector/console/console-clear-function.html
      
      * English.lproj/localizedStrings.js: Adds 'Console was cleared' string
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageTypeValue): Adds ClearMessageType
      * inspector/Inspector.json:
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::addMessageToConsole):
      * inspector/front-end/ConsoleMessage.js:
      (WebInspector.ConsoleMessageImpl.prototype._formatMessage): Display strategy for "clear" message
      * inspector/front-end/ConsoleModel.js:
      * inspector/front-end/inspector.css:
      (.console-info): Adds style for the 'console was cleared' message
      * page/Console.cpp: backend binging for console.clear()
      (WebCore::Console::clear):
      (WebCore):
      * page/Console.h:
      (Console):
      * page/Console.idl: Adds 'clear' message to protocol
      * page/ConsoleTypes.h:
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebChromeClient.mm:
      (stringForMessageType): Added ClearMessageType case to switch
      
      LayoutTests:
      
      * inspector/console/console-clear-function-expected.txt: Added.
      * inspector/console/console-clear-function.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e628316
  6. 20 Sep, 2011 1 commit
    • pfeldman@chromium.org's avatar
      Web Inspector: streamline Console's MessageType and MessageSource semantics. · 818376c5
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68342
      
      Source/WebCore:
      
      This change fixes semantics of the MessageSource and MessageType:
      MessageSource is now the source of the message (be it Network, HTML
      parser or Console API). MessageType is only defined for the Console API
      messages and contains the name of the API call (log, dir, dirxml, etc.).
      Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
      private to the inspector.
      
      Reviewed by Tony Gentilcore.
      
      * dom/Document.cpp:
      (WebCore::Document::logExceptionToConsole):
      * inspector/ConsoleMessage.cpp:
      (WebCore::messageSourceValue):
      (WebCore::messageTypeValue):
      (WebCore::ConsoleMessage::addToFrontend):
      * inspector/Inspector.json:
      * inspector/InspectorConsoleAgent.cpp:
      (WebCore::InspectorConsoleAgent::didReceiveResponse):
      (WebCore::InspectorConsoleAgent::didFailLoading):
      * inspector/front-end/ConsoleMessage.js:
      (WebInspector.ConsoleMessage.createTextMessage):
      (WebInspector.ConsoleMessage.prototype._formatMessage):
      (WebInspector.ConsoleMessage.prototype.toString):
      * page/Console.cpp:
      (WebCore::printMessageSourceAndLevelPrefix):
      (WebCore::Console::addMessage):
      (WebCore::Console::dir):
      (WebCore::Console::dirxml):
      (WebCore::Console::group):
      (WebCore::Console::groupCollapsed):
      (WebCore::Console::groupEnd):
      * page/ConsoleTypes.h:
      * websockets/WebSocketChannel.cpp:
      (WebCore::WebSocketChannel::didFailSocketStream):
      
      Source/WebKit/mac:
      
      This change fixes semantics of the MessageSource and MessageType:
      MessageSource is now the source of the message (be it Network, HTML
      parser or Console API). MessageType is only defined for the Console API
      messages and contains the name of the API call (log, dir, dirxml, etc.).
      Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
      private to the inspector.
      
      Reviewed by Tony Gentilcore.
      
      * WebCoreSupport/WebChromeClient.mm:
      (stringForMessageSource):
      (stringForMessageType):
      * WebView/WebUIDelegatePrivate.h:
      
      LayoutTests:
      
      This change fixes semantics of the MessageSource and MessageType:
      MessageSource is now the source of the message (be it Network, HTML
      parser or Console API). MessageType is only defined for the Console API
      messages and contains the name of the API call (log, dir, dirxml, etc.).
      Subsequent https://bugs.webkit.org/show_bug.cgi?id=66371 will make MessageType
      private to the inspector.
      
      Reviewed by Tony Gentilcore.
      
      * inspector/protocol/console-agent-expected.txt:
      * platform/chromium/http/tests/inspector/console-resource-errors-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      818376c5
  7. 11 May, 2011 1 commit
    • weinig@apple.com's avatar
      2011-05-11 Sam Weinig <sam@webkit.org> · f25e6ff1
      weinig@apple.com authored
              Reviewed by Eric Seidel.
      
              Stop including Console.h just to get Console enum types
              https://bugs.webkit.org/show_bug.cgi?id=60607
      
              Move MessageSource, MessageType and MessageLevel into its own
              header and cleanup surrounding classes.
      
              * Api/qwebelement.cpp:
      2011-05-11  Sam Weinig  <sam@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Stop including Console.h just to get Console enum types
              https://bugs.webkit.org/show_bug.cgi?id=60607
      
              Move MessageSource, MessageType and MessageLevel into its own
              header and cleanup surrounding classes.
      
              * GNUmakefile.list.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/v8/V8Proxy.cpp:
              * dom/ScriptExecutionContext.h:
              * html/HTMLFormElement.cpp:
              * html/parser/XSSFilter.cpp:
              * inspector/ConsoleMessage.h:
              * inspector/InjectedScriptHost.h:
              * inspector/InspectorAgent.h:
              * inspector/InspectorConsoleAgent.h:
              * inspector/InspectorFrontendHost.h:
              * inspector/InspectorInstrumentation.cpp:
              * inspector/InspectorInstrumentation.h:
              * loader/EmptyClients.h:
              * loader/FrameLoader.cpp:
              * loader/MainResourceLoader.cpp:
              * loader/appcache/ApplicationCacheGroup.cpp:
              * page/ChromeClient.h:
              * page/Console.cpp:
              (WebCore::Console::~Console):
              * page/Console.h:
              * page/ConsoleTypes.h: Added.
              * page/ContentSecurityPolicy.cpp:
              * page/Geolocation.h:
              * workers/WorkerReportingProxy.h:
              * xml/XMLHttpRequest.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f25e6ff1
  8. 14 Mar, 2011 1 commit
    • bweinstein@apple.com's avatar
      FileSystemWin.cpp needs listDirectory() implementation · 2093aad2
      bweinstein@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=56331
      <rdar://problem/9126635>
              
      Reviewed by Adam Roben and Gavin Barraclough.
      
      Source/JavaScriptCore: 
      
      Give StringConcatenate the ability to deal with const UChar*'s as a String type to append.
      
      * wtf/text/StringConcatenate.h:
      
      Source/WebCore: 
      
      Move PathWalker from an inline class in WebKit2 to its own class in WebCore,
      so it can be used from both WebCore and WebKit2.
              
      Implement FileSystemWin::listDirectory using PathWalker to populate the Vector
      of paths matching the passed in pattern.
      
      * WebCore.vcproj/WebCore.vcproj:
      * platform/win/FileSystemWin.cpp:
      (WebCore::listDirectory): Call through to PathWalker.
      * platform/win/PathWalker.cpp: Added.
      (WebCore::PathWalker::PathWalker): Moved from WebKit2. Added a second argument
          for the pattern to pass to the Windows File APIs.
      (WebCore::PathWalker::~PathWalker): Moved from WebKit2.
      (WebCore::PathWalker::isValid): Ditto.
      (WebCore::PathWalker::data): Ditto.
      (WebCore::PathWalker::step): Ditto.
      * platform/win/PathWalker.h: Added.
      
      Source/WebKit2: 
      
      Move PathWalker down into WebCore, and call the PathWalker in WebCore
      (that now has a second argument, the pattern to take).
      
      * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
      (WebKit::PluginInfoStore::pluginPathsInDirectory):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@81065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2093aad2
  9. 02 Mar, 2011 1 commit
    • bweinstein@apple.com's avatar
      Source/WebCore: Part of WebKit2: Need a way to send notifications to client when cookies change · a95f4c4d
      bweinstein@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=55427
      <rdar://problem/9056027>
              
      Reviewed by Adam Roben.
      
      Add functions on CookieStorage that allow listening for changes in cookies. When
      the cookies are changed, they call through to CookiesStrategy::notifyCookiesChanged.
      
      No change in behavior requiring tests.
      
      * platform/CookiesStrategy.h: Added.
      (WebCore::CookiesStrategy::~CookiesStrategy):
      
      * platform/PlatformStrategies.h:
      (WebCore::PlatformStrategies::cookiesStrategy):
      (WebCore::PlatformStrategies::PlatformStrategies):
      
      * platform/network/CookieStorage.h: Add new function declarations.
      
      * platform/network/cf/CookieStorageCFNet.cpp:
      (WebCore::notifyCookiesChangedOnMainThread): Call through to CookiesStrategy::notifyCookiesChanged.
      (WebCore::notifyCookiesChanged): Call notifyCookiesChangedOnMainThread on the main thread.
      (WebCore::beginObservingCookieChanges): Set up cookie observers on the loader run loop.
      (WebCore::finishObservingCookieChanges): Remove our cookie observers from the loader run loop.
      
      * platform/network/mac/CookieStorageMac.mm:
      (-[CookieStorageObjCAdapter notifyCookiesChangedOnMainThread]): Call through to CookiesStrategy::notifyCookiesChanged.
      (-[CookieStorageObjCAdapter cookiesChangedNotificationHandler:]): Call notifyCookiesChangedOnMainThread on 
          the main thread.
      (-[CookieStorageObjCAdapter registerForCookieChangeNotifications]): Set up the observer for cookie change notifications.
      (-[CookieStorageObjCAdapter unregisterForCookieChangeNotifications]): Remove the observer for cookie change notifications.
      (WebCore::beginObservingCookieChanges): Create our CookieStorageObjCAdapter, and call registerForCookieChangeNotifications.
      (WebCore::finishObservingCookieChanges): Call unregisterForCookieChangeNotifications.
              
      Add new file.
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj: Set role on files we need to include in WebKit to private.
      
      Source/WebKit/mac: Part of WebKit2: Need a way to send notifications to client when cookies change
      https://bugs.webkit.org/show_bug.cgi?id=55427
      <rdar://problem/9056027>
              
      Reviewed by Adam Roben.
      
      Add stubs for CookiesStrategy on Mac WebKit1.
      
      * WebCoreSupport/WebPlatformStrategies.h:
      * WebCoreSupport/WebPlatformStrategies.mm:
      (WebPlatformStrategies::createCookiesStrategy):
      (WebPlatformStrategies::notifyCookiesChanged):
      
      Source/WebKit/qt: Part of WebKit2: Need a way to send notifications to client when cookies change
      https://bugs.webkit.org/show_bug.cgi?id=55427
      <rdar://problem/9056027>
              
      Reviewed by Adam Roben.
      
      Add stubs for CookiesStrategy on Qt WebKit1.
      
      * WebCoreSupport/WebPlatformStrategies.cpp:
      (WebPlatformStrategies::createCookiesStrategy):
      (WebPlatformStrategies::notifyCookiesChanged):
      * WebCoreSupport/WebPlatformStrategies.h:
      
      Source/WebKit/win: Part of WebKit2: Need a way to send notifications to client when cookies change
      https://bugs.webkit.org/show_bug.cgi?id=55427
      <rdar://problem/9056027>
              
      Reviewed by Adam Roben.
      
      Add stubs for CookiesStrategy on Windows WebKit1.
      
      * WebCoreSupport/WebPlatformStrategies.cpp:
      (WebPlatformStrategies::createCookiesStrategy):
      (WebPlatformStrategies::notifyCookiesChanged):
      * WebCoreSupport/WebPlatformStrategies.h:
      
      Source/WebKit2: Part of WebKit2: Need a way to send notifications to client when cookies change
      https://bugs.webkit.org/show_bug.cgi?id=55427
      <rdar://problem/9056027>
      
      Reviewed by Adam Roben.
      
      * WebProcess/Cookies/WebCookieManager.cpp:
      (WebKit::WebCookieManager::dispatchDidModifyCookies): Add a stub with a FIXME to send a 
          message to the UI process.
      
      * WebProcess/Cookies/WebCookieManager.h:
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::WebPlatformStrategies::createCookiesStrategy):
      (WebKit::WebPlatformStrategies::notifyCookiesChanged): Call WebCookieManager::dispatchDidModifyCookies.
      * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a95f4c4d
  10. 15 Jan, 2011 1 commit
    • abarth@webkit.org's avatar
      Move WebKit2 into Source · be159d97
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=52438
      
      Rubber-stamped by Eric Seidel.
      
      .: 
      
      Update reference to WebKit2.
      
      * DerivedSources.pro:
      * GNUmakefile.am:
      * Makefile:
      * Source/cmake/WebKitPackaging.cmake:
      * WebKit.pro:
      * configure.ac:
      
      Source/WebCore: 
      
      * WebCore.pro:
      
      Source/WebKit2: 
      
      * DerivedSources.pro:
      * GNUmakefile.am:
      * WebKit2.pro:
      * WebProcess.pro:
      * win/WebKit2.vcproj:
      * win/WebKit2WebProcess.vcproj:
      
      Tools: 
      
      * MiniBrowser/qt/MiniBrowser.pro:
      * Scripts/build-webkit:
      * Scripts/do-file-rename:
      * Scripts/do-webcore-rename:
      * Scripts/test-webkitpy:
      * Scripts/webkitdirs.pm:
      * Scripts/webkitpy/style/checker.py:
      * WebKitTestRunner/DerivedSources.pro:
      * WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro:
      * WebKitTestRunner/qt/WebKitTestRunner.pro:
      
      WebKit/win: 
      
      Update reference to WebKit2.
      
      * WebKit.vcproj/WebKit.sln:
      
      Websites/bugs.webkit.org: 
      
      Remove WebKit2 from the list of top-level source directories.
      
      * PrettyPatch/PrettyPatch.rb:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be159d97
  11. 13 Jan, 2011 1 commit
    • enrica@apple.com's avatar
      Source/WebCore: WebKit2: Add support for drag and drop · 9d9813d0
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=52343
      <rdar://problem/7660558>
                     
      Reviewed by Darin Adler.
      
      This patch contains the changes required to support dropping content
      in WebKit on the Mac. The DragData class has been extended to provide
      additional context from the application (keyboard state, modal windows, etc.)
      as well as information of the drag pasteboard being used.
      The support for WebKit as drag source will be added with a separate patch.
      
      * WebCore.exp.in:
      * page/DragController.cpp:
      (WebCore::DragController::dragIsMove): Added DragData parameter.
      (WebCore::DragController::tryDocumentDrag): Modified call to dragIsMove.
      (WebCore::DragController::concludeEditDrag): Same as above.
      * page/DragController.h: Added parameter to isCopyKeyDown.
      * page/mac/DragControllerMac.mm:
      The following methods have been modified to use the information stored
      in the DragData class.
      (WebCore::DragController::isCopyKeyDown):
      (WebCore::DragController::dragOperation):
      * platform/DragData.h:
      (WebCore::DragData::flags):
      * platform/DragData.cpp: Added default flags parameter to the constructor.
      * platform/mac/DragDataMac.mm:
      (WebCore::DragData::DragData): Added constructor that receives the name of the pasteboard to use.
      (WebCore::DragData::canSmartReplace):
      (WebCore::DragData::containsColor):
      (WebCore::DragData::containsFiles):
      (WebCore::DragData::asFilenames):
      (WebCore::DragData::containsPlainText):
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsCompatibleContent):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      All the following files have been modified to add the DragData
      parameter to isCopyKeyDown. I plan to improve this in the future
      and make isCopyKeyDown not platform specific.
      * page/android/DragControllerAndroid.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/brew/DragControllerBrew.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/chromium/DragControllerChromium.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/efl/DragControllerEfl.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/gtk/DragControllerGtk.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/haiku/DragControllerHaiku.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/mac/DragControllerMac.mm:
      (WebCore::DragController::isCopyKeyDown):
      (WebCore::DragController::dragOperation):
      * page/qt/DragControllerQt.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/win/DragControllerWin.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/wx/DragControllerWx.cpp:
      (WebCore::DragController::isCopyKeyDown):
      
      WebKit/mac: WebKit2: Add support for drag and drop
      https://bugs.webkit.org/show_bug.cgi?id=52343
      <rdar://problem/7660558>
              
      Reviewed by Darin Adler.
      
      The DragData class has been extended to provide
      additional context from the application (keyboard state, modal windows, etc.)
      as well as information of the drag pasteboard being used.
      These are the changes to align the behavior for WebKit.
      
      * WebView/WebView.mm:
      (-[WebView applicationFlags:]): Added.
      (-[WebView draggingEntered:]): Added parameter to the DragData constructor.
      (-[WebView draggingUpdated:]): Added parameter to the DragData constructor.
      (-[WebView draggingExited:]): Added parameter to the DragData constructor.
      (-[WebView performDragOperation:]): Added parameter to the DragData constructor.
      
      WebKit2: WebKit2: Add support for drag and drop
      https://bugs.webkit.org/show_bug.cgi?id=52343
      <rdar://problem/7660558>
                     
      Reviewed by Darin Adler.
      
      This patch contains the changes required to support dropping content
      in WebKit on the Mac. The DragData class has been extended to provide
      additional context from the application (keyboard state, modal windows, etc.)
      as well as information of the drag pasteboard being used.
      The support for WebKit as drag source will be added with a separate patch.
      
      * Shared/DragControllerAction.h: Added.
      * UIProcess/API/mac/WKView.mm:
      Added implemention of the methods required to add suport for a drop target.
      To maintain asynchronous communication with the WebProcess, we always return
      the previous calculated value for the drag operation.
      (-[WKView _registerDraggedTypes]):
      (-[WKView initWithFrame:contextRef:pageGroupRef:]):
      (-[WKView applicationFlags:]):
      (-[WKView draggingEntered:]):
      (-[WKView draggingUpdated:]):
      (-[WKView draggingExited:]):
      (-[WKView prepareForDragOperation:]):
      (-[WKView performDragOperation:]):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::performDragControllerAction):
      (WebKit::WebPageProxy::didPerformDragControllerAction):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::dragOperation):
      (WebKit::WebPageProxy::resetDragOperation):
      * UIProcess/WebPageProxy.messages.in:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebDragClient.cpp:
      (WebKit::WebDragClient::willPerformDragDestinationAction):
      (WebKit::WebDragClient::willPerformDragSourceAction):
      (WebKit::WebDragClient::actionMaskForDrag):
      (WebKit::WebDragClient::dragSourceActionMaskForPoint):
      (WebKit::WebDragClient::startDrag):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::performDragControllerAction):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d9813d0
  12. 27 Sep, 2010 1 commit
    • weinig@apple.com's avatar
      Move shared WebKit2 API (used by both bundle and main API) to WebKit2/Shared/API · e7ef4326
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=46587
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      - Moves shared types (WKArrayRef, WKDictionaryRef, etc) to Shared/API/c.
      - Removes WKBundleBase.h and moves all opaque type declarations to WKBase.h (which
        moves to Shared/API/c).
      - Adds WKSharedAPICast.h which includes shared API casting logic and is included
        by both WKAPICast.h and WKBundleAPICast.h now. Moved to using macros for API 
        mappings to reduce verbosity.
      - Move windows c API files from UIProcess/API/win to UIProcess/API/C/win.
      
      * Shared/API: Added.
      * Shared/API/c: Added.
      * Shared/API/c/WKArray.cpp: Copied from UIProcess/API/C/WKArray.cpp.
      * Shared/API/c/WKArray.h: Copied from UIProcess/API/C/WKArray.h.
      * Shared/API/c/WKBase.h: Copied from UIProcess/API/C/WKBase.h.
      * Shared/API/c/WKCertificateInfo.cpp: Copied from UIProcess/API/C/WKCertificateInfo.cpp.
      * Shared/API/c/WKCertificateInfo.h: Copied from UIProcess/API/C/WKCertificateInfo.h.
      * Shared/API/c/WKData.cpp: Copied from UIProcess/API/C/WKData.cpp.
      * Shared/API/c/WKData.h: Copied from UIProcess/API/C/WKData.h.
      * Shared/API/c/WKDictionary.cpp: Copied from UIProcess/API/C/WKDictionary.cpp.
      * Shared/API/c/WKDictionary.h: Copied from UIProcess/API/C/WKDictionary.h.
      * Shared/API/c/WKError.cpp: Copied from UIProcess/API/C/WKError.cpp.
      * Shared/API/c/WKError.h: Copied from UIProcess/API/C/WKError.h.
      * Shared/API/c/WKMutableArray.cpp: Copied from UIProcess/API/C/WKMutableArray.cpp.
      * Shared/API/c/WKMutableArray.h: Copied from UIProcess/API/C/WKMutableArray.h.
      * Shared/API/c/WKMutableDictionary.cpp: Copied from UIProcess/API/C/WKMutableDictionary.cpp.
      * Shared/API/c/WKMutableDictionary.h: Copied from UIProcess/API/C/WKMutableDictionary.h.
      * Shared/API/c/WKNumber.cpp: Copied from UIProcess/API/C/WKNumber.cpp.
      * Shared/API/c/WKNumber.h: Copied from UIProcess/API/C/WKNumber.h.
      * Shared/API/c/WKSerializedScriptValue.cpp: Copied from UIProcess/API/C/WKSerializedScriptValue.cpp.
      * Shared/API/c/WKSerializedScriptValue.h: Copied from UIProcess/API/C/WKSerializedScriptValue.h.
      * Shared/API/c/WKSharedAPICast.h: Copied from UIProcess/API/C/WKAPICast.h.
      * Shared/API/c/WKString.cpp: Copied from UIProcess/API/C/WKString.cpp.
      * Shared/API/c/WKString.h: Copied from UIProcess/API/C/WKString.h.
      * Shared/API/c/WKType.cpp: Copied from UIProcess/API/C/WKType.cpp.
      * Shared/API/c/WKType.h: Copied from UIProcess/API/C/WKType.h.
      * Shared/API/c/WKURL.cpp: Copied from UIProcess/API/C/WKURL.cpp.
      * Shared/API/c/WKURL.h: Copied from UIProcess/API/C/WKURL.h.
      * Shared/API/c/WKURLRequest.cpp: Copied from UIProcess/API/C/WKURLRequest.cpp.
      * Shared/API/c/WKURLRequest.h: Copied from UIProcess/API/C/WKURLRequest.h.
      * Shared/API/c/WKURLResponse.cpp: Copied from UIProcess/API/C/WKURLResponse.cpp.
      * Shared/API/c/WKURLResponse.h: Copied from UIProcess/API/C/WKURLResponse.h.
      * Shared/API/c/cf: Copied from UIProcess/API/C/cf.
      * Shared/API/c/mac: Copied from UIProcess/API/C/mac.
      * Shared/API/c/win: Added.
      * Shared/API/c/win/WKBaseWin.h: Copied from UIProcess/API/win/WKBaseWin.h.
      * Shared/API/c/win/WKCertificateInfoWin.cpp: Copied from UIProcess/API/C/win/WKCertificateInfoWin.cpp.
      * Shared/API/c/win/WKCertificateInfoWin.h: Copied from UIProcess/API/C/win/WKCertificateInfoWin.h.
      * UIProcess/API/C/WKAPICast.h: Replaced.
      * UIProcess/API/C/WKArray.cpp: Removed.
      * UIProcess/API/C/WKArray.h: Removed.
      * UIProcess/API/C/WKBase.h: Removed.
      * UIProcess/API/C/WKCertificateInfo.cpp: Removed.
      * UIProcess/API/C/WKCertificateInfo.h: Removed.
      * UIProcess/API/C/WKData.cpp: Removed.
      * UIProcess/API/C/WKData.h: Removed.
      * UIProcess/API/C/WKDictionary.cpp: Removed.
      * UIProcess/API/C/WKDictionary.h: Removed.
      * UIProcess/API/C/WKError.cpp: Removed.
      * UIProcess/API/C/WKError.h: Removed.
      * UIProcess/API/C/WKMutableArray.cpp: Removed.
      * UIProcess/API/C/WKMutableArray.h: Removed.
      * UIProcess/API/C/WKMutableDictionary.cpp: Removed.
      * UIProcess/API/C/WKMutableDictionary.h: Removed.
      * UIProcess/API/C/WKNumber.cpp: Removed.
      * UIProcess/API/C/WKNumber.h: Removed.
      * UIProcess/API/C/WKSerializedScriptValue.cpp: Removed.
      * UIProcess/API/C/WKSerializedScriptValue.h: Removed.
      * UIProcess/API/C/WKString.cpp: Removed.
      * UIProcess/API/C/WKString.h: Removed.
      * UIProcess/API/C/WKType.cpp: Removed.
      * UIProcess/API/C/WKType.h: Removed.
      * UIProcess/API/C/WKURL.cpp: Removed.
      * UIProcess/API/C/WKURL.h: Removed.
      * UIProcess/API/C/WKURLRequest.cpp: Removed.
      * UIProcess/API/C/WKURLRequest.h: Removed.
      * UIProcess/API/C/WKURLResponse.cpp: Removed.
      * UIProcess/API/C/WKURLResponse.h: Removed.
      * UIProcess/API/C/cf: Removed.
      * UIProcess/API/C/cf/WKStringCF.cpp: Removed.
      * UIProcess/API/C/cf/WKStringCF.h: Removed.
      * UIProcess/API/C/cf/WKURLCF.cpp: Removed.
      * UIProcess/API/C/cf/WKURLCF.h: Removed.
      * UIProcess/API/C/cf/WKURLRequestCF.cpp: Removed.
      * UIProcess/API/C/cf/WKURLRequestCF.h: Removed.
      * UIProcess/API/C/cf/WKURLResponseCF.cpp: Removed.
      * UIProcess/API/C/cf/WKURLResponseCF.h: Removed.
      * UIProcess/API/C/mac: Removed.
      * UIProcess/API/C/mac/WKCertificateInfoMac.h: Removed.
      * UIProcess/API/C/mac/WKCertificateInfoMac.mm: Removed.
      * UIProcess/API/C/mac/WKURLRequestNS.h: Removed.
      * UIProcess/API/C/mac/WKURLRequestNS.mm: Removed.
      * UIProcess/API/C/mac/WKURLResponseNS.h: Removed.
      * UIProcess/API/C/mac/WKURLResponseNS.mm: Removed.
      * UIProcess/API/C/win/WKAPICastWin.h: Copied from UIProcess/API/win/WKAPICastWin.h.
      * UIProcess/API/C/win/WKBaseWin.h: Copied from UIProcess/API/win/WKBaseWin.h.
      * UIProcess/API/C/win/WKCertificateInfoWin.cpp: Removed.
      * UIProcess/API/C/win/WKCertificateInfoWin.h: Removed.
      * UIProcess/API/C/win/WKView.cpp: Copied from UIProcess/API/win/WKView.cpp.
      * UIProcess/API/C/win/WKView.h: Copied from UIProcess/API/win/WKView.h.
      * UIProcess/API/win: Removed.
      * UIProcess/API/win/WKAPICastWin.h: Removed.
      * UIProcess/API/win/WKBaseWin.h: Removed.
      * UIProcess/API/win/WKView.cpp: Removed.
      * UIProcess/API/win/WKView.h: Removed.
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/API/c/WKBundle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
      * WebProcess/InjectedBundle/API/c/WKBundleBase.h: Removed.
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
      * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
      * WebProcess/InjectedBundle/API/c/WKBundleInitialize.h:
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
      * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      
      WebKitTools: 
      
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7ef4326
  13. 02 Sep, 2010 1 commit
  14. 09 Apr, 2010 2 commits
    • weinig@apple.com's avatar
      Add WebKit2/UIProcess directory. · b945598b
      weinig@apple.com authored
      Patch by Anders Carlsson <andersca@apple.com> on 2010-04-08
      Reviewed by Sam Weinig.
      
      * UIProcess: Added.
      * UIProcess/API: Added.
      * UIProcess/API/C: Added.
      * UIProcess/API/C/WKAPICast.h: Added.
      * UIProcess/API/C/WKBase.h: Added.
      * UIProcess/API/C/WKContext.cpp: Added.
      * UIProcess/API/C/WKContext.h: Added.
      * UIProcess/API/C/WKFrame.cpp: Added.
      * UIProcess/API/C/WKFrame.h: Added.
      * UIProcess/API/C/WKFramePolicyListener.cpp: Added.
      * UIProcess/API/C/WKFramePolicyListener.h: Added.
      * UIProcess/API/C/WKPage.cpp: Added.
      * UIProcess/API/C/WKPage.h: Added.
      * UIProcess/API/C/WKPageNamespace.cpp: Added.
      * UIProcess/API/C/WKPageNamespace.h: Added.
      * UIProcess/API/C/WKPreferences.cpp: Added.
      * UIProcess/API/C/WKPreferences.h: Added.
      * UIProcess/API/C/WebKit2.h: Added.
      * UIProcess/API/mac: Added.
      * UIProcess/API/mac/PageClientImpl.h: Added.
      * UIProcess/API/mac/PageClientImpl.mm: Added.
      * UIProcess/API/mac/WKView.h: Added.
      * UIProcess/API/mac/WKView.mm: Added.
      * UIProcess/API/mac/WKViewInternal.h: Added.
      * UIProcess/API/win: Added.
      * UIProcess/API/win/WKAPICastWin.h: Added.
      * UIProcess/API/win/WKBaseWin.h: Added.
      * UIProcess/API/win/WKView.cpp: Added.
      * UIProcess/API/win/WKView.h: Added.
      * UIProcess/Launcher: Added.
      * UIProcess/Launcher/WebProcessLauncher.h: Added.
      * UIProcess/Launcher/mac: Added.
      * UIProcess/Launcher/mac/WebProcessLauncher.mm: Added.
      * UIProcess/Launcher/win: Added.
      * UIProcess/Launcher/win/WebProcessLauncher.cpp: Added.
      * UIProcess/PageClient.h: Added.
      * UIProcess/ProcessModel.h: Added.
      * UIProcess/ResponsivenessTimer.cpp: Added.
      * UIProcess/ResponsivenessTimer.h: Added.
      * UIProcess/ScriptReturnValueCallback.cpp: Added.
      * UIProcess/ScriptReturnValueCallback.h: Added.
      * UIProcess/WebContext.cpp: Added.
      * UIProcess/WebContext.h: Added.
      * UIProcess/WebFramePolicyListenerProxy.cpp: Added.
      * UIProcess/WebFramePolicyListenerProxy.h: Added.
      * UIProcess/WebFrameProxy.cpp: Added.
      * UIProcess/WebFrameProxy.h: Added.
      * UIProcess/WebLoaderClient.cpp: Added.
      * UIProcess/WebLoaderClient.h: Added.
      * UIProcess/WebPageNamespace.cpp: Added.
      * UIProcess/WebPageNamespace.h: Added.
      * UIProcess/WebPageProxy.cpp: Added.
      * UIProcess/WebPageProxy.h: Added.
      * UIProcess/WebPolicyClient.cpp: Added.
      * UIProcess/WebPolicyClient.h: Added.
      * UIProcess/WebPreferences.cpp: Added.
      * UIProcess/WebPreferences.h: Added.
      * UIProcess/WebProcessManager.cpp: Added.
      * UIProcess/WebProcessManager.h: Added.
      * UIProcess/WebProcessProxy.cpp: Added.
      * UIProcess/WebProcessProxy.h: Added.
      * UIProcess/WebUIClient.cpp: Added.
      * UIProcess/WebUIClient.h: Added.
      * UIProcess/mac: Added.
      * UIProcess/mac/DrawingAreaProxy.h: Added.
      * UIProcess/mac/DrawingAreaProxy.mm: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Added.
      * UIProcess/win: Added.
      * UIProcess/win/DrawingAreaProxy.cpp: Added.
      * UIProcess/win/DrawingAreaProxy.h: Added.
      * UIProcess/win/WebView.cpp: Added.
      * UIProcess/win/WebView.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b945598b
    • weinig@apple.com's avatar
      Add WebKit2/Platform directory. · be9b95ca
      weinig@apple.com authored
      Reviewed by Anders Carlsson.
      
      * Platform: Added.
      * Platform/CoreIPC: Added.
      * Platform/CoreIPC/ArgumentDecoder.cpp: Added.
      * Platform/CoreIPC/ArgumentDecoder.h: Added.
      * Platform/CoreIPC/ArgumentEncoder.cpp: Added.
      * Platform/CoreIPC/ArgumentEncoder.h: Added.
      * Platform/CoreIPC/Arguments.h: Added.
      * Platform/CoreIPC/Attachment.cpp: Added.
      * Platform/CoreIPC/Attachment.h: Added.
      * Platform/CoreIPC/Connection.cpp: Added.
      * Platform/CoreIPC/Connection.h: Added.
      * Platform/CoreIPC/MessageID.h: Added.
      * Platform/CoreIPC/mac: Added.
      * Platform/CoreIPC/mac/ConnectionMac.cpp: Added.
      * Platform/CoreIPC/mac/MachPort.h: Added.
      * Platform/CoreIPC/win: Added.
      * Platform/CoreIPC/win/ConnectionWin.cpp: Added.
      * Platform/PlatformProcessIdentifier.h: Added.
      * Platform/RunLoop.cpp: Added.
      * Platform/RunLoop.h: Added.
      * Platform/WorkItem.h: Added.
      * Platform/WorkQueue.cpp: Added.
      * Platform/WorkQueue.h: Added.
      * Platform/mac: Added.
      * Platform/mac/RunLoopMac.mm: Added.
      * Platform/mac/WorkQueueMac.cpp: Added.
      * Platform/win: Added.
      * Platform/win/RunLoopWin.cpp: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be9b95ca
  15. 04 Mar, 2010 2 commits
    • ossy@webkit.org's avatar
      [Qt] Unreviewed buildfix after r55542 on Windows. · cf04bd9d
      ossy@webkit.org authored
      * WebCore.pro:
       - plugins/win/PluginDatabaseWin.cpp removed.
       - platform/win/WebCoreInstanceHandle.cpp added.
      
      * platform/win/WebCoreInstanceHandle.cpp: Remove explicit qualification in namespace declaration to make gcc happy.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf04bd9d
    • bdakin@apple.com's avatar
      WebCore: This fixes the layering violation I committed yesterday by moving · a67418ff
      bdakin@apple.com authored
      Page::instanceHandle into its own file just in the WebCore 
      namespace.
      
      Reviewed by Anders Carlsson.
      
      Added WebCoreInstanceHandle.h + .cpp and removed PageWin.cpp
      * WebCore.vcproj/WebCore.vcproj:
      * page/win/PageWin.cpp: Removed.
      
      Remove all instance handle code from Page.
      * page/Page.h:
      
      New files.
      * platform/win/WebCoreInstanceHandle.cpp: Added.
      * platform/win/WebCoreInstanceHandle.h: Added.
      (WebCore::setInstanceHandle):
      (WebCore::instanceHandle):
      
      Switch to WebCore::instanceHandle() instead of 
      Page::instanceHandle() and include the new header.
      * platform/graphics/win/WKCACFLayerRenderer.cpp:
      (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
      * platform/win/PasteboardWin.cpp:
      (WebCore::Pasteboard::Pasteboard):
      * platform/win/PopupMenuWin.cpp:
      (WebCore::PopupMenu::show):
      (WebCore::PopupMenu::registerClass):
      * platform/win/SharedTimerWin.cpp:
      (WebCore::initializeOffScreenTimerWindow):
      * plugins/win/PluginViewWin.cpp:
      (WebCore::registerPluginView):
      (WebCore::PluginView::platformStart):
      
      WebKit/win: WebCore::Page::setInstanceHandle() is now just 
      WebCore::setInstanceHandle()
      
      Reviewed by Anders Carlsson.
      
      * WebKitDLL.cpp:
      (DllMain):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55542 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a67418ff
  16. 07 Jan, 2010 1 commit
    • mitz@apple.com's avatar
      Added Font::typesettingFeatures() and deployed it · 8c85d97b
      mitz@apple.com authored
      Reviewed by Sam Weinig.
      
      No change in funcitonality
      
      * WebCore.xcodeproj/project.pbxproj: Added TypesettingFeatures.h.
      * platform/graphics/Font.h:
      (WebCore::Font::typesettingFeatures): Added. Determines the typesetting
          features from the text redndering mode.
      * platform/graphics/FontFastPath.cpp:
      (WebCore::Font::canUseGlyphCache): Use typesettingFeatures().
      * platform/graphics/SimpleFontData.h:
      * platform/graphics/TypesettingFeatures.h: Added.
      * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
      (WebCore::disableLigatures): Take TypesettingFeatures instead of
          TextRenderingMode.
      (WebCore::initializeATSUStyle): Ditto.
      (WebCore::ComplexTextController::collectComplexTextRunsForCharactersATSUI):
          Use typesettingFeatures().
      * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
      (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
          Ditto.
      * platform/graphics/mac/SimpleFontDataMac.mm:
      (WebCore::SimpleFontData::getCFStringAttributes): Take
          TypesettingFeatures instead of TextRenderingMode.
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::findNextLineBreak): Use TypesettingFeatures().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c85d97b
  17. 19 Dec, 2009 1 commit
    • weinig@apple.com's avatar
      Add Mac WebKit side of the client based geolocation provider. · d633d844
      weinig@apple.com authored
      Reviewed by Dan Bernstein.
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac: 
      
      * Misc/WebKitErrors.m:
      (registerErrors): Add Geolocation errors.
      * Misc/WebKitErrorsPrivate.h:
      * WebCoreSupport/WebGeolocationControllerClient.h: Added.
      (WebGeolocationControllerClient::webView):
      * WebCoreSupport/WebGeolocationControllerClient.mm: Added.
      (WebGeolocationControllerClient::WebGeolocationControllerClient):
      (WebGeolocationControllerClient::startUpdating):
      (WebGeolocationControllerClient::stopUpdating):
      (WebGeolocationControllerClient::lastPosition):
      Add implementation of the WebGeolocationControllerClient.
      
      * WebView/WebGeolocationPosition.h: Added.
      * WebView/WebGeolocationPosition.mm: Added.
      (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
      (core):
      (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
      * WebView/WebGeolocationPositionInternal.h: Added.
      Add an Objective-C wrapper for GeolocationPosition.
       
      * WebView/WebView.mm:
      (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Set the GeolocationControllerClient.
      (-[WebView _setGeolocationProvider:]): Set the GeolocationProvider
      (-[WebView _geolocationProvider]): Return the GeolocationProvider.
      (-[WebView _geolocationDidChangePosition:]): Notify WebCore that the position changed.
      (-[WebView _geolocationDidFailWithError:]): Notify WebCore that an error occured.
      * WebView/WebViewData.h:
      * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d633d844
  18. 20 Nov, 2009 1 commit
    • ap@apple.com's avatar
      Reviewed by Darin Adler. · 13f65f3f
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=31690
              Make SocketStreamHandleCFNet work on Windows
      
              * WebCore.vcproj/WebCore.vcproj: Added LoaderRunLoopCF.
      
              * platform/network/ResourceHandle.h: Removed loaderRunLoop().
      
              * platform/network/cf/LoaderRunLoopCF.cpp: Added.
              (WebCore::emptyPerform):
              (WebCore::runLoaderThread):
              (WebCore::loaderRunLoop):
              * platform/network/cf/LoaderRunLoopCF.h: Added.
              Moved the run loop that we use for CFNetwork from ResourceHandle to its own file, because
              it's needed for more than just resource loading.
      
              * platform/network/cf/ResourceHandleCFNet.cpp: Use loaderRunLoop() from its new location.
      
              * platform/network/cf/DNSCFNet.cpp: (WebCore::DNSResolveQueue::resolve): Ditto.
      
              * platform/network/cf/SocketStreamHandle.h: Added static callbacks for forwarding events to
              main thread.
              * platform/network/cf/SocketStreamHandleCFNet.cpp:
              (WebCore::SocketStreamHandle::SocketStreamHandle): Use loaderRunLoop() on Windows instead of
              inoperable main run loop.
      
              (WebCore::MainThreadEventCallbackInfo::MainThreadEventCallbackInfo): 
              (WebCore::SocketStreamHandle::readStreamCallback):
              (WebCore::SocketStreamHandle::writeStreamCallback):
              (WebCore::SocketStreamHandle::readStreamCallbackMainThread):
              (WebCore::SocketStreamHandle::writeStreamCallbackMainThread):
              Forward stream events to main thread on Windows.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13f65f3f
  19. 10 Nov, 2009 2 commits
    • ap@apple.com's avatar
      Reviewed by Dan Bernstein. · 2ab1e6a4
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=31312
              Decouple authentication panel callbacks from ResourceHandle
      
              No change in functionality.
      
              SocketStreamHandle also needs to request credentials, so it's not appropriate to store
              ResourceHandle as delegate.
      
      WebCore:
              * WebCore.vcproj/WebCore.vcproj:
              * platform/network/AuthenticationClient.h: Added.
              Added a new interface for listening to authentication panel notifications.
      
              * WebCore.xcodeproj/project.pbxproj: Added AuthenticationClient.h. Let Visual Studio do what
              it wants with the project file.
      
              (WebCore::AuthenticationClient::ref): Using our usual method of exposing refcounting on an
              interface class.
              (WebCore::AuthenticationClient::deref): Ditto.
      
              * platform/network/ResourceHandle.h:
              (WebCore::ResourceHandle::refAuthenticationClient): Ditto.
              (WebCore::ResourceHandle::derefAuthenticationClient): Ditto.
      
              * platform/network/cf/AuthenticationCF.cpp:
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/cf/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              * platform/network/chromium/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              * platform/network/curl/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              Keeping a reference to AuthenticationClient, not to ResourceHandle.
      
      WebKit:
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              * WebURLAuthenticationChallenge.cpp:
              (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
              (WebURLAuthenticationChallenge::sender):
              * WebURLAuthenticationChallengeSender.cpp:
              (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
              (WebURLAuthenticationChallengeSender::createInstance):
              (WebURLAuthenticationChallengeSender::authenticationClient):
              * WebURLAuthenticationChallengeSender.h:
              * WebURLAuthenticationChallengeSenderCFNet.cpp:
              (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge):
              (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge):
              (WebURLAuthenticationChallengeSender::useCredential):
              Adjusted for WebCore changes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ab1e6a4
    • mitz@apple.com's avatar
      WebCore: WebCore part of making full-screen video pause during scrubbing. · 362023c1
      mitz@apple.com authored
      Reviewed by Eric Carlson and Darin Adler.
      
      * WebCore.Video.exp: Sorted and added HTMLMediaElement::beginScrubbing()
      and HTMLMediaElement::endScrubbing().
      
      WebKit/mac: WebKit part of making full-screen video pause during scrubbing.
      
      Reviewed by Eric Carlson and Darin Adler.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Added _isScrubbing
      ivar.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController dealloc]): Assert that
      _isScrubbing is NO.
      (-[WebVideoFullscreenHUDWindowController endScrubbing]): Call
      HTMLMediaElement::endScrubbing().
      (-[WebVideoFullscreenHUDWindowController timelinePositionChanged:]):
      If scrubbing has just begun, call HTMLMediaElement::beginScrubbing()
      and schedule -endScrubbing to be called when mouse tracking ends.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      362023c1
  20. 09 Nov, 2009 1 commit
    • mitz@apple.com's avatar
      Made the full-screen video HUD appear when playback stops, such as when · e0ff32d3
      mitz@apple.com authored
      the end of the video is reached.
      
      Reviewed by Eric Carlson.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Cleaned up.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Updated
      for the renaming of -updateRate to -updatePlayButton.
      (-[WebVideoFullscreenHUDWindowController updatePlayButton]): Renamed
      -updateRate to this.
      (-[WebVideoFullscreenHUDWindowController updateRate]): This method now
      responds to changes to the playback rate by updating the play button
      and showing or hiding the HUD as necessary.
      (-[WebVideoFullscreenHUDWindowController togglePlaying:]): Now only
      toggles playing. UI updates are driven by -updateRate being called.
      (-[WebVideoFullscreenHUDWindowController playing]): Cleaned up.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0ff32d3
  21. 02 Nov, 2009 2 commits
    • mitz@apple.com's avatar
      Made the remaining time display show negative zero at the end of the · 12da8133
      mitz@apple.com authored
      video.
      
      Reviewed by Anders Carlsson.
      
      Made other cleanup.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Reverted the types of
      _timeline and _volumeSlider to the more generic NSControl.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Cleaned
      up style.
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Added an
      assertion that the cast to NSButton * is legal. Removed casts.
      (-[WebVideoFullscreenHUDWindowController updateTime]): Use
      -setValue:forKey: instead of an NSSlider method.
      (timeToString): Changed to support only non-negative values and
      simplified.
      (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Always
      prepend a “-” to the time.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12da8133
    • mitz@apple.com's avatar
      WebKit/mac: WebKit part of making the appearance of the full-screen video HUD match · 36413e0b
      mitz@apple.com authored
      QuickTime Player X’s HUD.
      
      Reviewed by John Sullivan.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Removed unnecessary
      #import statements, cleaned up style, and changed _timeline,
      _volumeSlider and _playButton to have more specific types.
      * WebView/WebVideoFullscreenHUDWindowController.mm: Updated #import
      statements.
      (webkit_CGFloor): Added this helper function.
      (-[WebVideoFullscreenHUDWindowController init]): Cleaned up style.
      (createTimeTextField): Changed to use the bold system font.
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the
      subviews’ metrics and the text fields’ text alignment.
      (-[WebVideoFullscreenHUDWindowController updateTime]): Avoid conversion
      from double to float.
      (stringToTimeTextAttributed): Removed this useless function that
      returned an NSAttributedString masquerading as an NSString.
      (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Removed
      call to stringToTimeTextAttributed().
      (-[WebVideoFullscreenHUDWindowController elapsedTimeText]): Ditto.
      
      WebKitLibraries: WebKitSystemInterface part of making the appearance of the full-screen video HUD match
      QuickTime Player X’s HUD.
      
      Reviewed by John Sullivan.
      
      * libWebKitSystemInterfaceLeopard.a:
      * libWebKitSystemInterfaceSnowLeopard.a:
      * libWebKitSystemInterfaceTiger.a:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36413e0b
  22. 28 Oct, 2009 1 commit
    • eric.carlson@apple.com's avatar
      2009-10-28 Eric Carlson <eric.carlson@apple.com> · 9bfaaa38
      eric.carlson@apple.com authored
              Reviewed by Simon Fraser.
      
              <rdar://problem/7303145> 
              Can't exit full screen mode or restart movie after pressing command -R.
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::removedFromDocument):
              (WebCore::HTMLMediaElement::documentWillBecomeInactive):
                  Exit from fullscreen if necessary.
              * html/HTMLMediaElement.h:
      
      2009-10-28  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Simon Fraser.
      
              <rdar://problem/7303145> 
              Can't exit full screen mode or restart movie after pressing command -R.
      
              * WebView/WebVideoFullscreenController.mm:
              (-[WebVideoFullscreenController _requestExit]): 
                  New, call media element's exitFullscreen method.
              (-[WebVideoFullscreenController requestExitFullscreenWithAnimation:]): 
                  Call mediaElement->exitFullscreen() after a delay as it turns around and calls
                  WebVideoFullscreenController:exitFullscreen.
      
              * WebView/WebVideoFullscreenHUDWindowController.h:
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindow resignFirstResponder]):
                  New, don't give up responder status.
              (-[WebVideoFullscreenHUDWindow performKeyEquivalent:]):
                  New, block all command key events.
              (-[WebVideoFullscreenHUDWindowController exitFullscreen:]):
                  Remember when we are in the process of exiting fullscreen, don't allow recursion.
      
              * WebView/WebView.mm:
              (-[WebView _exitFullscreen]):
                  Early return if fullscreen controller is nil.
      
              * WebView/WebWindowAnimation.h: 
                  Correct comment about _window retain status.
              * WebView/WebWindowAnimation.m:
              (-[WebWindowScaleAnimation dealloc]):
                  Don't release _window, we never reatained it.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9bfaaa38
  23. 22 Oct, 2009 1 commit
    • eric.carlson@apple.com's avatar
      2009-10-22 Eric Carlson <eric.carlson@apple.com> · 73e866e6
      eric.carlson@apple.com authored
              Reviewed by Dan Bernstein & Simon Fraser.
      
              <rdar://problem/7297717>
              https://bugs.webkit.org/show_bug.cgi?id=30323
              Play/pause button in full-screen video controller does not reflect current state
      
              * WebView/WebVideoFullscreenController.mm:
              (-[WebVideoFullscreenController setMediaElement:WebCore::]): Register for QTMovieRateDidChangeNotification
              (-[WebVideoFullscreenController rateChanged:]): Call HUD controller when rate changes.
      
              * WebView/WebVideoFullscreenHUDWindowController.h:
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Call updateRate so play button
              reflects playback state.
              (-[WebVideoFullscreenHUDWindowController updateRate]): New, set play button state according to
              movie state.
              (-[WebVideoFullscreenHUDWindowController playingChanged:]): Only call [self playing] once.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73e866e6
  24. 06 Oct, 2009 2 commits
  25. 08 Sep, 2009 1 commit
  26. 27 Aug, 2009 1 commit
    • cmarrin@apple.com's avatar
      Final patch for Canvas 3D support · 4e7728f4
      cmarrin@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=28018
      
              This hooks everything up and provides a working implementation of
              Canvas 3D. I plumb the creation of the 3D canvas down to GraphicsLayer,
              passing the opaque context and texture pointers so a Canvas3DLayer can be
              created (more on that later). It also plumbs changes to the 3D canvas so
              that Canvas3DLayer can recomposite the results.
              
              A 3D Canvas element needs a RenderLayer and compositing layer to render.
              This is because it renders to an off-screen texture in the GPU and then
              hands it to a Canvas3DLayer, which is a subclass of CAOpenGLLayer, to
              render that texture as a 3D quad. This keeps everything in GPU memory to 
              maximize performance. When a CanvasRenderingContext3D is created it 
              forces a style recalc which creates the RenderLayer and compositing 
              layer if needed. 
              
              I repurposed an existing flag which was put in place for animation to accomplish 
              this. This flag is passed to setNeedsStyleRecalc(), and I renamed it from 
              AnimationStyleChange to SyntheticStyleChange. It essentially says that you need
              to do a complete style recalc, even though the style itself has not really
              changed.
              
              This patch also fixes a couple of bugs discovered when testing with 3d-canvas
              turned on. I also added a constructor DOMWindow.idl for CanvasRenderingContext3D.
              This is needed when making a JS wrapper for the object so the prototype 
              property can be set.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e7728f4
  27. 25 Aug, 2009 2 commits
  28. 24 Aug, 2009 1 commit
  29. 12 Aug, 2009 1 commit
    • darin@apple.com's avatar
      WebCore: Custom properties on DOM objects are lost after GC (as demonstrated by the gc-9.html test) · 55132112
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=28194
      
      Patch by Darin Adler <darin@apple.com> on 2009-08-12
      Reviewed by Geoff Garen.
      
      * GNUmakefile.am: Added the two new source files.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * WebCoreSources.bkl: Ditto.
      
      * bindings/js/JSCSSRuleListCustom.cpp: Added.
      (WebCore::JSCSSRuleList::markChildren): Call markDOMObjectWrapper
      on rules in the list.
      
      * bindings/js/JSCSSStyleDeclarationCustom.cpp:
      (WebCore::JSCSSStyleDeclaration::markChildren): Added. Call
      markDOMObjectWrapper on the CSSValue objects that are owned by the
      declaration as values of the properties.
      
      * bindings/js/JSDOMBinding.cpp:
      (WebCore::isObservableThroughDOM): Added code to handle some
      cases where nodes are observable because they own objects that
      in turn have custom properties.
      
      * bindings/js/JSDOMBinding.h: Fix a typo in the header.
      
      * bindings/js/JSDocumentCustom.cpp:
      (WebCore::JSDocument::markChildren): Added call to markDOMObjectWrapper
      for implementation and styleSheets.
      
      * bindings/js/JSElementCustom.cpp:
      (WebCore::JSElement::markChildren): Added. Calls markDOMObjectWrapper
      for attributes and style.
      
      * bindings/js/JSHTMLCanvasElementCustom.cpp: Added.
      (WebCore::JSHTMLCanvasElement::markChildren): Call markDOMObjectWrapper
      on the rendering context.
      
      * bindings/js/JSStyleSheetCustom.cpp:
      (WebCore::JSStyleSheet::markChildren): Call markDOMObjectWrapper on
      items in the stylesheet.
      
      * bindings/js/JSStyleSheetListCustom.cpp:
      (WebCore::JSStyleSheetList::markChildren): Added. Calls
      markDOMObjectWrapper on stylesheets in the list.
      
      * css/CSSRuleList.idl: Added CustomMarkFunction.
      * css/CSSStyleDeclaration.idl: Ditto.
      * css/StyleSheetList.idl: Ditto.
      * dom/Element.idl: Ditto.
      * html/HTMLCanvasElement.idl: Ditto.
      
      * dom/Element.h: Made everything private that could be.
      Added access to the attributeMap that does returns
      the existing map without doing any of the lazy-updating work. This
      is needed to get at the existing attributes during garbage collection
      without having side effects.
      
      * html/HTMLCanvasElement.h: Cleaned up the header a bit, making
      members private. Added renderingContext2D function for use in
      JSHTMLCanvasElement::markChildren.
      
      LayoutTests: Custom properties on DOM objects are lost after GC (as demonstrated by the gc-9.html test)
      https://bugs.webkit.org/show_bug.cgi?id=28194
      
      Patch by Darin Adler <darin@apple.com> on 2009-08-12
      Reviewed by Geoff Garen.
      
      * fast/dom/gc-9-expected.txt: Regenerated.
      * fast/dom/gc-9.html: Updated to expect correct behavior instead of failures.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55132112
  30. 22 Sep, 2008 1 commit
    • mjs@apple.com's avatar
      JavaScriptCore: · a173abd0
      mjs@apple.com authored
      2008-09-22  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Dave Hyatt.
              
              Based on initial work by Darin Adler.
              
              - replace masqueradesAsUndefined virtual method with a flag in TypeInfo
              - use this to JIT inline code for eq_null and neq_null
              https://bugs.webkit.org/show_bug.cgi?id=20823
      
              0.5% speedup on SunSpider
              ~4% speedup on Richards benchmark
              
              * VM/CTI.cpp:
              (JSC::CTI::privateCompileMainPass):
              * VM/Machine.cpp:
              (JSC::jsTypeStringForValue):
              (JSC::jsIsObjectType):
              (JSC::Machine::privateExecute):
              (JSC::Machine::cti_op_is_undefined):
              * VM/Machine.h:
              * kjs/JSCell.h:
              * kjs/JSValue.h:
              * kjs/StringObjectThatMasqueradesAsUndefined.h:
              (JSC::StringObjectThatMasqueradesAsUndefined::create):
              (JSC::StringObjectThatMasqueradesAsUndefined::createStructureID):
              * kjs/StructureID.h:
              (JSC::StructureID::mutableTypeInfo):
              * kjs/TypeInfo.h:
              (JSC::TypeInfo::TypeInfo):
              (JSC::TypeInfo::masqueradesAsUndefined):
              * kjs/operations.cpp:
              (JSC::equal):
              * masm/X86Assembler.h:
              (JSC::X86Assembler::):
              (JSC::X86Assembler::setne_r):
              (JSC::X86Assembler::setnz_r):
              (JSC::X86Assembler::testl_i32m):
      
      WebCore:
      
      2008-09-22  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Dave Hyatt.
      
              Based on initial work by Darin Adler.
              
              - replace masqueradesAsUndefined virtual method with a flag in TypeInfo
              - use this to JIT inline code for eq_null and neq_null
              https://bugs.webkit.org/show_bug.cgi?id=20823
              
              * WebCore.xcodeproj/project.pbxproj:
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              (WebCore::JSCSSStyleDeclaration::nameGetter):
              * bindings/js/JSHTMLAllCollection.cpp: Added.
              (WebCore::):
              * bindings/js/JSHTMLAllCollection.h:
              (WebCore::JSHTMLAllCollection::createStructureID):
              (WebCore::JSHTMLAllCollection::toBoolean):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a173abd0
  31. 08 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      Rubber-stamped by Sam Weinig. · 78333174
      mitz@apple.com authored
              - rename FontDataBaseClass.{cpp,h} back to FontData.{cpp,h}
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * editing/Editor.cpp:
              * platform/graphics/FontData.cpp: Copied from WebCore/platform/graphics/FontDataBaseClass.cpp.
              * platform/graphics/FontData.h: Copied from WebCore/platform/graphics/FontDataBaseClass.h.
              * platform/graphics/FontDataBaseClass.cpp: Removed.
              * platform/graphics/FontDataBaseClass.h: Removed.
              * platform/graphics/SegmentedFontData.h:
              * platform/graphics/SimpleFontData.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78333174
  32. 07 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      WebCore: · 648b73b1
      mitz@apple.com authored
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSFontFace.cpp:
              (WebCore::CSSFontFace::fontLoaded): Changed to call the owning segmented
              font face.
              (WebCore::CSSFontFace::getFontData):
              * css/CSSFontFace.h:
              (WebCore::CSSFontFace::CSSFontFace):
              (WebCore::CSSFontFace::setSegmentedFontFace):
              * css/CSSFontFaceSource.cpp:
              (WebCore::CSSFontFaceSource::pruneTable): Removed the calls to
              GlyphPageTreeNode::pruneTreeCustomFontData because the fonts in the
              font table are not exposed in the glyph page tree. Only the segmented
              font is, and that is taken care of by the segmented font face.
              (WebCore::CSSFontFaceSource::getFontData):
              * css/CSSFontFaceSource.h:
              * css/CSSFontSelector.cpp:
              (WebCore::CSSFontSelector::addFontFaceRule): Changed to collect
              @font-face rules with the same family and traits into a single
              segmented font face, instead of just retaining the most recent one.
              (WebCore::CSSFontSelector::fontLoaded):
              (WebCore::CSSFontSelector::getFontData):
              * css/CSSFontSelector.h:
              * css/CSSGrammar.y:
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseFontFaceUnicodeRange): Added. Parses a unicode
              range value.
              * css/CSSParser.h:
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::):
              * css/CSSPropertyNames.in:
              * css/CSSSegmentedFontFace.cpp: Added.
              (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::~CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::pruneTable):
              (WebCore::CSSSegmentedFontFace::isLoaded):
              (WebCore::CSSSegmentedFontFace::isValid):
              (WebCore::CSSSegmentedFontFace::fontLoaded):
              (WebCore::CSSSegmentedFontFace::overlayRange):
              (WebCore::CSSSegmentedFontFace::getFontData):
              * css/CSSSegmentedFontFace.h: Added.
              (WebCore::FontFaceRange::FontFaceRange):
              (WebCore::FontFaceRange::from):
              (WebCore::FontFaceRange::to):
              (WebCore::FontFaceRange::fontFace):
              (WebCore::CSSSegmentedFontFace::fontSelector):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * css/CSSUnicodeRangeValue.cpp: Added.
              (WebCore::CSSUnicodeRangeValue::~CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::cssText):
              * css/CSSUnicodeRangeValue.h: Added.
              (WebCore::CSSUnicodeRangeValue::CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::from):
              (WebCore::CSSUnicodeRangeValue::to):
              * css/SVGCSSFontFace.cpp:
              (WebCore::SVGCSSFontFace::getFontData):
              * css/SVGCSSFontFace.h:
              * editing/Editor.cpp:
              (WebCore::Editor::fontForSelection):
              * editing/Editor.h:
              * page/mac/FrameMac.mm:
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge fontForSelection:]):
              * platform/graphics/Font.cpp:
              (WebCore::WidthIterator::advance):
              (WebCore::Font::glyphDataForCharacter):
              (WebCore::Font::primaryFont): Changed to return the simple font data
              used for the space character.
              (WebCore::Font::fontDataAt):
              (WebCore::Font::fontDataForCharacters):
              (WebCore::Font::drawGlyphBuffer):
              * platform/graphics/Font.h:
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData):
              (WebCore::FontCache::getFontData):
              * platform/graphics/FontCache.h:
              * platform/graphics/FontData.cpp: Renamed to SimpleFontData.cpp
              * platform/graphics/FontData.h: Renamed to SimpleFontData.cpp.
              * platform/graphics/FontDataBaseClass.cpp: Added. This will be renamed
              FontData.cpp.
              (WebCore::FontData::~FontData):
              * platform/graphics/FontDataBaseClass.h: Added. This will be renamed
              FontData.h.
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::primaryFont):
              * platform/graphics/FontSelector.h:
              * platform/graphics/GlyphBuffer.h:
              (WebCore::GlyphBuffer::fontDataAt):
              (WebCore::GlyphBuffer::swap):
              (WebCore::GlyphBuffer::add):
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              (WebCore::GlyphPageTreeNode::initializePage): Added code to initialize
              pages for segmented font data.
              (WebCore::GlyphPageTreeNode::getChild):
              (WebCore::GlyphPageTreeNode::pruneCustomFontData):
              * platform/graphics/GlyphPageTreeNode.h:
              (WebCore::GlyphPage::setGlyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForIndex):
              (WebCore::GlyphPageTreeNode::getRootChild):
              * platform/graphics/SegmentedFontData.cpp: Added.
              (WebCore::SegmentedFontData::~SegmentedFontData):
              (WebCore::SegmentedFontData::fontDataForCharacter):
              (WebCore::SegmentedFontData::containsCharacters):
              (WebCore::SegmentedFontData::isCustomFont):
              (WebCore::SegmentedFontData::isLoading):
              (WebCore::SegmentedFontData::isSegmented):
              * platform/graphics/SegmentedFontData.h: Added.
              (WebCore::FontDataRange::FontDataRange):
              (WebCore::FontDataRange::from):
              (WebCore::FontDataRange::to):
              (WebCore::FontDataRange::fontData):
              (WebCore::SegmentedFontData::appendRange):
              (WebCore::SegmentedFontData::numRanges):
              (WebCore::SegmentedFontData::rangeAt):
              * platform/graphics/SimpleFontData.cpp: Copied from WebCore/platform/graphics/FontData.cpp.
              (WebCore::SimpleFontData::SimpleFontData):
              (WebCore::SimpleFontData::~SimpleFontData):
              (WebCore::SimpleFontData::ascent):
              (WebCore::SimpleFontData::descent):
              (WebCore::SimpleFontData::widthForGlyph):
              (WebCore::SimpleFontData::fontDataForCharacter):
              (WebCore::SimpleFontData::isSegmented):
              * platform/graphics/SimpleFontData.h: Copied from WebCore/platform/graphics/FontData.h.
              (WebCore::SimpleFontData::isCustomFont):
              (WebCore::SimpleFontData::isLoading):
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::setPlatformFont):
              * platform/graphics/gtk/FontCacheGtk.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/gtk/FontDataGtk.cpp: Renamed to
              SimpleFontDataGtk.cpp.
              * platform/graphics/gtk/FontGtk.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp: Copied from WebCore/platform/graphics/gtk/FontDataGtk.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::setFont):
              * platform/graphics/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/mac/FontDataMac.mm: Renamed to SimpleFontDataMac.mm.
              * platform/graphics/mac/FontMac.mm:
              (WebCore::initializeATSUStyle):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::drawGlyphs):
              * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/mac/SimpleFontDataMac.mm: Copied from WebCore/platform/graphics/mac/FontDataMac.mm.
              (WebCore::initFontData):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::checkShapesArabic):
              * platform/graphics/qt/FontDataQt.cpp: Renamed to SimpleFontDataQt.cpp.
              * platform/graphics/qt/GlyphPageTreeNodeQt.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              * platform/graphics/qt/SimpleFontDataQt.cpp: Copied from WebCore/platform/graphics/qt/FontDataQt.cpp.
              * platform/graphics/win/FontCacheWin.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/win/FontDataWin.cpp: Renamed to
              SimpleFontDataWin.cpp.
              * platform/graphics/win/FontWin.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/win/GlyphPageTreeNodeWin.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/win/SimpleFontDataWin.cpp: Copied from WebCore/platform/graphics/win/FontDataWin.cpp.
              (WebCore::SimpleFontData::setShouldApplyMacAscentHack):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::scriptFontProperties):
              * platform/graphics/wx/FontCacheWx.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/wx/FontDataWx.cpp: Renamed to SimpleFontDataWx.cpp.
              * platform/graphics/wx/FontWx.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/wx/GlyphMapWx.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/wx/SimpleFontDataWx.cpp: Copied from WebCore/platform/graphics/wx/FontDataWx.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              * platform/mac/FileChooserMac.mm:
              * platform/mac/PopupMenuMac.mm:
              * platform/mac/WebCoreTextRenderer.mm:
              * platform/win/PopupMenuWin.cpp:
              * platform/win/UniscribeController.cpp:
              (WebCore::UniscribeController::advance):
              (WebCore::UniscribeController::itemizeShapeAndPlace):
              (WebCore::UniscribeController::shapeAndPlaceItem):
              (WebCore::UniscribeController::shape):
              * platform/win/UniscribeController.h:
              * svg/SVGFont.cpp:
              (WebCore::Font::drawGlyphsWithSVGFont):
              * svg/SVGFontElement.cpp:
              (WebCore::SVGFontElement::collectGlyphs):
              * svg/SVGFontFaceElement.cpp:
              (WebCore::SVGFontFaceElement::createFontData):
              * svg/SVGFontFaceElement.h:
              * svg/SVGGlyphElement.cpp:
      
      WebKit/mac:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * Misc/WebNSAttributedStringExtras.mm:
      
      WebKit/win:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * WebView.cpp:
              (WebView::setShouldApplyMacFontAscentHack):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      648b73b1
  33. 16 Jan, 2007 1 commit
    • eseidel's avatar
      2007-01-15 Eric Seidel <eric@webkit.org> · 8eddecf9
      eseidel authored
              Reviewed by bdash.
      
              Update header guards to follow new style guidelines using new clean-header-guards script.
      
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLOptionElementConstructor.h:
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_css.h:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_domnode.h:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.h:
              * bridge/EditorClient.h:
              * bridge/History.h:
              * css/CSSStyleSheet.h:
              * css/CSSValue.h:
              * css/CSSValueList.h:
              * css/DashboardRegion.h:
              * css/FontFamilyValue.h:
              * css/FontValue.h:
              * css/MediaFeatureNames.h:
              * css/MediaList.h:
              * css/Pair.h:
              * css/RectImpl.h:
              * css/ShadowValue.h:
              * css/StyleBase.h:
              * css/StyleList.h:
              * css/StyleSheet.h:
              * css/StyleSheetList.h:
              * css/cssstyleselector.h:
              * dom/BeforeTextInsertedEvent.h:
              * dom/CDATASection.h:
              * dom/CharacterData.h:
              * dom/ChildNodeList.h:
              * dom/Comment.h:
              * dom/DOMImplementation.h:
              * dom/DocPtr.h:
              * dom/Document.h:
              * dom/DocumentFragment.h:
              * dom/DocumentMarker.h:
              * dom/DocumentType.h:
              * dom/EditingText.h:
              * dom/Entity.h:
              * dom/EntityReference.h:
              * dom/EventNames.h:
              * dom/EventTargetNode.h:
              * dom/NameNodeList.h:
              * dom/NamedNodeMap.h:
              * dom/Node.h:
              * dom/NodeList.h:
              * dom/Notation.h:
              * dom/Position.h:
              * dom/ProcessingInstruction.h:
              * dom/Range.h:
              * dom/StyleElement.h:
              * dom/Text.h:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.h:
              * editing/CommandByName.h:
              * editing/CompositeEditCommand.h:
              * editing/DeleteButton.h:
              * editing/DeleteButtonController.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertParagraphSeparatorCommand.h:
              * editing/InsertTextCommand.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TextGranularity.h:
              * editing/TypingCommand.h:
              * editing/WrapContentsInDummySpanCommand.h:
              * history/BackForwardList.h:
              * history/HistoryItem.h:
              * history/HistoryItemTimer.h:
              * history/PageCache.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.h:
              * html/FormDataList.h:
              * html/HTMLAnchorElement.h:
              * html/HTMLAppletElement.h:
              * html/HTMLAreaElement.h:
              * html/HTMLBRElement.h:
              * html/HTMLBaseElement.h:
              * html/HTMLBaseFontElement.h:
              * html/HTMLBlockquoteElement.h:
              * html/HTMLBodyElement.h:
              * html/HTMLButtonElement.h:
              * html/HTMLCanvasElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDListElement.h:
              * html/HTMLDirectoryElement.h:
              * html/HTMLDivElement.h:
              * html/HTMLElement.h:
              * html/HTMLElementFactory.h:
              * html/HTMLEmbedElement.h:
              * html/HTMLFieldSetElement.h:
              * html/HTMLFontElement.h:
              * html/HTMLFormCollection.h:
              * html/HTMLFormElement.h:
              * html/HTMLFrameSetElement.h:
              * html/HTMLGenericFormElement.h:
              * html/HTMLHRElement.h:
              * html/HTMLHeadElement.h:
              * html/HTMLHeadingElement.h:
              * html/HTMLHtmlElement.h:
              * html/HTMLImageElement.h:
              * html/HTMLImageLoader.h:
              * html/HTMLInputElement.h:
              * html/HTMLIsIndexElement.h:
              * html/HTMLKeygenElement.h:
              * html/HTMLLIElement.h:
              * html/HTMLLabelElement.h:
              * html/HTMLLegendElement.h:
              * html/HTMLLinkElement.h:
              * html/HTMLMapElement.h:
              * html/HTMLMarqueeElement.h:
              * html/HTMLMenuElement.h:
              * html/HTMLMetaElement.h:
              * html/HTMLModElement.h:
              * html/HTMLNameCollection.h:
              * html/HTMLOListElement.h:
              * html/HTMLObjectElement.h:
              * html/HTMLOptGroupElement.h:
              * html/HTMLOptionElement.h:
              * html/HTMLOptionsCollection.h:
              * html/HTMLParagraphElement.h:
              * html/HTMLParamElement.h:
              * html/HTMLParser.h:
              * html/HTMLPlugInElement.h:
              * html/HTMLPreElement.h:
              * html/HTMLQuoteElement.h:
              * html/HTMLScriptElement.h:
              * html/HTMLSelectElement.h:
              * html/HTMLStyleElement.h:
              * html/HTMLTableCaptionElement.h:
              * html/HTMLTableCellElement.h:
              * html/HTMLTableColElement.h:
              * html/HTMLTableElement.h:
              * html/HTMLTablePartElement.h:
              * html/HTMLTableRowElement.h:
              * html/HTMLTableSectionElement.h:
              * html/HTMLTextAreaElement.h:
              * html/HTMLTextFieldInnerElement.h:
              * html/HTMLTitleElement.h:
              * html/HTMLUListElement.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/events/JSSVGLazyEventListener.h:
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/PointerEventsHitRules.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/misc/TimeScheduler.h:
              * ksvg2/svg/GradientAttributes.h:
              * ksvg2/svg/LinearGradientAttributes.h:
              * ksvg2/svg/PatternAttributes.h:
              * ksvg2/svg/RadialGradientAttributes.h:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateMotionElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDOMImplementation.h:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGListTraits.h:
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMetadataElement.h:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGParserUtilities.h:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.h:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.h:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocumentLoader.h:
              * loader/Request.h:
              * loader/SubresourceLoader.h:
              * loader/icon/IconDataCache.h:
              * loader/icon/IconDatabase.h:
              * loader/icon/IconLoader.h:
              * loader/icon/SQLDatabase.h:
              * loader/icon/SQLStatement.h:
              * loader/icon/SQLTransaction.h:
              * page/Frame.h:
              * page/FrameLoadRequest.h:
              * page/FrameTree.h:
              * page/FrameView.h:
              * page/PageState.h:
              * page/Plugin.h:
              * page/qt/FrameQt.h:
              * page/qt/FrameQtClient.h:
              * platform/Arena.h:
              * platform/ArrayImpl.h:
              * platform/Cursor.h:
              * platform/DeprecatedArray.h:
              * platform/DeprecatedCString.h:
              * platform/FileChooser.h:
              * platform/Font.h:
              * platform/FontCache.h:
              * platform/FontData.h:
              * platform/FontDescription.h:
              * platform/FontFamily.h:
              * platform/GlyphBuffer.h:
              * platform/GlyphMap.h:
              * platform/GlyphWidthMap.h:
              * platform/Logging.h:
              * platform/Pasteboard.h:
              * platform/PlatformString.h:
              * platform/PlugInInfoStore.h:
              * platform/PopupMenu.h:
              * platform/PopupMenuClient.h:
              * platform/ScrollBar.h:
              * platform/ScrollView.h:
              * platform/SearchPopupMenu.h:
              * platform/Shared.h:
              * platform/Sound.h:
              * platform/SystemTime.h:
              * platform/Timer.h:
              * platform/Widget.h:
              * platform/cf/RetainPtr.h:
              * platform/gdk/ChromeClientGdk.h:
              * platform/gdk/FontPlatformData.h:
              * platform/gdk/FrameGdk.h:
              * platform/gdk/KeyboardCodes.h:
              * platform/gdk/RenderPopupMenuGdk.h:
              * platform/gdk/RenderThemeGdk.h:
              * platform/graphics/BitmapImage.h:
              * platform/graphics/Color.h:
              * platform/graphics/FloatPoint.h:
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/FloatRect.h:
              * platform/graphics/Icon.h:
              * platform/graphics/Image.h:
              * platform/graphics/ImageAnimationObserver.h:
              * platform/graphics/ImageBuffer.h:
              * platform/graphics/ImageSource.h:
              * platform/graphics/IntPoint.h:
              * platform/graphics/IntRect.h:
              * platform/graphics/IntSize.h:
              * platform/graphics/IntSizeHash.h:
              * platform/graphics/PathTraversalState.h:
              * platform/graphics/Pen.h:
              * platform/graphics/qt/ImageDecoderQt.h:
              * platform/graphics/svg/SVGImage.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
              * platform/graphics/svg/SVGPaintServer.h:
              * platform/graphics/svg/SVGPaintServerGradient.h:
              * platform/graphics/svg/SVGPaintServerLinearGradient.h:
              * platform/graphics/svg/SVGPaintServerPattern.h:
              * platform/graphics/svg/SVGPaintServerRadialGradient.h:
              * platform/graphics/svg/SVGPaintServerSolid.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/graphics/svg/SVGResourceClipper.h:
              * platform/graphics/svg/SVGResourceFilter.h:
              * platform/graphics/svg/SVGResourceMarker.h:
              * platform/graphics/svg/SVGResourceMasker.h:
              * platform/graphics/svg/cg/CgSupport.h:
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/mac/FontPlatformData.h:
              * platform/mac/PlatformScrollBar.h:
              * platform/network/AuthenticationChallenge.h:
              * platform/network/Credential.h:
              * platform/network/HTTPHeaderMap.h:
              * platform/network/ProtectionSpace.h:
              * platform/network/ResourceError.h:
              * platform/network/ResourceRequest.h:
              * platform/network/ResourceResponse.h:
              * platform/network/cf/FormDataStreamCFNet.h:
              * platform/network/cf/ResourceRequestCFNet.h:
              * platform/network/cf/ResourceResponseCFNet.h:
              * platform/network/gdk/ResourceHandleManager.h:
              * platform/network/mac/AuthenticationMac.h:
              * platform/network/mac/FormDataStreamMac.h:
              * platform/network/qt/ResourceHandleManagerKDE.h:
              * platform/network/qt/ResourceHandleManagerQt.h:
              * platform/network/win/ResourceHandleWin.h:
              * platform/qt/FontPlatformData.h:
              * platform/qt/KeyboardCodes.h:
              * platform/qt/PlatformScrollBar.h:
              * platform/qt/ScrollViewCanvasQt.h:
              * platform/qt/SharedTimerQt.h:
              * platform/win/FontPlatformData.h:
              * platform/win/PlatformScrollBar.h:
              * rendering/AutoTableLayout.h:
              * rendering/HitTestRequest.h:
              * rendering/HitTestResult.h:
              * rendering/InlineBox.h:
              * rendering/InlineFlowBox.h:
              * rendering/Length.h:
              * rendering/ListMarkerBox.h:
              * rendering/RenderBox.h:
              * rendering/RenderMenuList.h:
              * rendering/RenderPart.h:
              * rendering/RenderPartObject.h:
              * rendering/RenderPath.h:
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.h:
              * rendering/RenderStyle.h:
              * rendering/RenderTableCol.h:
              * rendering/RenderThemeWin.h:
              * rendering/bidi.h:
              * xml/DOMParser.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathExpressionNode.h:
              * xml/XPathFunctions.h:
              * xml/XPathNSResolver.h:
              * xml/XPathNamespace.h:
              * xml/XPathParser.h:
              * xml/XPathPath.h:
              * xml/XPathPredicate.h:
              * xml/XPathResult.h:
              * xml/XPathStep.h:
              * xml/XPathUtil.h:
              * xml/XPathValue.h:
              * xml/XPathVariableReference.h:
              * xml/XSLImportRule.h:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessor.h:
              * xml/xmlhttprequest.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8eddecf9
  34. 20 Oct, 2006 1 commit
    • aliceli1's avatar
      WebCore: · 5a36ed98
      aliceli1 authored
              Reviewed by Maciej.
      
              This is the initial foundation for the EditingController class and
              everything else it needs to work.  The idea is that the Frame has an
              EditingController object that it calls to handle editing commands, the
              most simple examples being copy/paste.  This controller will handle
              these editing commands in WebCore, and only hand off to WebKit to call
              editing delegates (to the let the app intercept editing actions if it
              wants to).  Thus we need a platform-specific client to which the
              EditingController hands off the delegate calls, 
              WebCoreEditingControllerClient.  On the WebCore side this is an 
              abstract base class, and on the WebKit(Mac) side this is an ObjC++
              subclass, WebEditingControllerClient.  How does the EditingController
              get a handle to its platform-specific client?  In WebKit, the creator
              of a platform-specific Frame creates the client (which is ref-counted)
              and passes it down the chain of constructors until it gets back to the
              EditingController, which then refs it in its constructor and derefs in
              its destructor.
              
              No Layout tests needed.
              
              * WebCore.xcodeproj/project.pbxproj:
              Added files and made DomRangeInternal.h and EditingClient.h private headers, necessary for WebKit to compile
      
              * bridge/EditorClient.h: Added.
              (WebCore::EditorClient::~EditorClient):
      
              * bridge/mac/FrameMac.h:
              Added an EditingClient to the constructor, to pass down to Frame constructor
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::FrameMac):
              Passed client down to Frame constructor
              
              * bridge/mac/WebCoreFrameBridge.h:
              Added an EditingClient to the constructor, to pass down to FrameMac constructor
              
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
              (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
              Passed client down to FrameMac constructor
              
              * editing/Editor.cpp: Added.
              Mostly stuf implementations of the following functions, except for a couple.  These are all needed by cut, copy, paste, delete.
              (WebCore::generalPasteboard):
              (WebCore::Editor::canCopy):
              (WebCore::Editor::canCut):
              (WebCore::Editor::canDelete):
              (WebCore::Editor::canDeleteRange):
              (WebCore::Editor::canPaste):
              (WebCore::Editor::canSmartCopyOrDelete):
              (WebCore::Editor::deleteSelection):
              (WebCore::Editor::deleteSelectionWithSmartDelete):
              (WebCore::Editor::isSelectionRichlyEditable):
              (WebCore::Editor::pasteAsPlainTextWithPasteboard):
              (WebCore::Editor::pasteWithPasteboard):
              (WebCore::Editor::selectedRange):
              (WebCore::Editor::shouldDeleteRange):
              (WebCore::Editor::tryDHTMLCopy):
              (WebCore::Editor::tryDHTMLCut):
              (WebCore::Editor::tryDHTMLPaste):
              (WebCore::Editor::writeSelectionToPasteboard):
              (WebCore::Editor::Editor):
              (WebCore::Editor::~Editor):
              (WebCore::Editor::cut):
              (WebCore::Editor::copy):
              (WebCore::Editor::paste):
              (WebCore::Editor::performDelete):
              
              * editing/Editor.h: Added.
              
              * page/Frame.h:
              Added an EditingClient to the constructor, to pass down to Editor constructor
      
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              Passed down to Editor constructor
              (WebCore::Frame::editor):
              Accessfor for Editor stored in FramePrivate
              
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              Added an Editor object to the FramePrivate data
              
              * platform/Sound.h: Added.
              Made a platform-independent accessor to a beep function
              
              * platform/mac/SoundMac.mm: Added.
              (WebCore::systemBeep):
              calls mac system beep
      
      WebKit:
      
              Reviewed by Maciej.
      
              Adding knowledge of EditorClient to WebKit
      
              * WebCoreSupport/WebEditorClient.h: Added.
      
              * WebCoreSupport/WebEditorClient.mm: Added.
              (WebEditorClient::WebEditorClient):
              (WebEditorClient::~WebEditorClient):
              (WebEditorClient::shouldDeleteRange):
              Implementation of mac EditorClient
      
              * WebCoreSupport/WebFrameBridge.m:
              (-[WebFrameBridge initMainFrameWithPage:frameName:view:]):
              (-[WebFrameBridge initSubframeWithOwnerElement:frameName:view:]):
              create an editor client to pass down the chain of constructors
      
              * WebKit.xcodeproj/project.pbxproj:
              Added related EditorClient files
      
              * WebKitPrefix.h:
              Added tiger build flag in order to make certain private headers from webcore compile successfully
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a36ed98