1. 10 Mar, 2011 1 commit
    • kov@webkit.org's avatar
      2011-03-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · 3f1a57fd
      kov@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              Tiled backing store's delegated scroll request uses incorrect convention
              https://bugs.webkit.org/show_bug.cgi?id=56011
      
              Use a point instead of delta, when relaying the scroll request from
              ScrollView::setScrollPosition.
      
              * loader/EmptyClients.h:
              (WebCore::EmptyChromeClient::delegatedScrollRequested):
              * page/Chrome.cpp:
              (WebCore::Chrome::delegatedScrollRequested):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * platform/HostWindow.h:
              * platform/ScrollView.cpp:
              (WebCore::ScrollView::setScrollPosition):
      2011-03-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
      
              Reviewed by Kenneth Rohde Christiansen.
      
              Tiled backing store's delegated scroll request uses incorrect convention
              https://bugs.webkit.org/show_bug.cgi?id=56011
      
              Adapt internal API to match the change from delta to point on the
              WebCore side, and convert the point to a delta for the public API.
      
              * WebCoreSupport/ChromeClientQt.cpp:
              (WebCore::ChromeClientQt::delegatedScrollRequested):
              * WebCoreSupport/ChromeClientQt.h:
      2011-03-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
      
              Reviewed by Kenneth Rohde Christiansen.
      
              Tiled backing store's delegated scroll request uses incorrect convention
              https://bugs.webkit.org/show_bug.cgi?id=56011
      
              Adapt all of the internal API to match the delta to point
              conversion at the WebCore side.
      
              * UIProcess/API/qt/qwkpage.cpp:
              (QWKPagePrivate::pageDidRequestScroll):
              * UIProcess/API/qt/qwkpage_p.h:
              * UIProcess/PageClient.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::pageDidRequestScroll):
              * UIProcess/WebPageProxy.h:
              * UIProcess/WebPageProxy.messages.in:
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::delegatedScrollRequested):
              * WebProcess/WebCoreSupport/WebChromeClient.h:
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::pageDidRequestScroll):
              * WebProcess/WebPage/WebPage.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f1a57fd
  2. 08 Mar, 2011 3 commits
    • jer.noble@apple.com's avatar
      2011-03-08 Jer Noble <jer.noble@apple.com> · 5e0ef58d
      jer.noble@apple.com authored
              Reviewed by Sam Weinig.
      
              WebKit2: Plumb through the FULLSCREEN_API Chrome client calls
              https://bugs.webkit.org/show_bug.cgi?id=55273
      
              The FULLSCREEN_API Chrome client calls need to be plumbed through from the
              WebProcess to the UIProcess.  To do this, WebFullScreenManager (and Proxy)
              classes have been added to WebPage.
      
              * DerivedSources.make: Added rules necessary to build DerivedSources for new .in files.
              * DerivedSources.pro: Ditto.
              * Platform/CoreIPC/MessageID.h: Added message types for WebFullScreenManager.
              * Shared/API/c/WKBase.h: Added WKFullScreenManagerRef.
              * Shared/APIObject.h: Added APIType for WebFullScreenManager.
              * UIProcess/WebFullScreenManagerProxy.cpp: Added.
              * UIProcess/WebFullScreenManagerProxy.h: Added.
              * UIProcess/WebFullScreenManagerProxy.messages.in: Added.
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::close): Invalidate and clear m_fullScreenManager.
              (WebKit::WebPageProxy::processDidCrash): Ditto.
              (WebKit::WebPageProxy::didReceiveMessage): Pass messages on to WebFullScreenManagerProxy.
              (WebKit::WebPageProxy::didReceiveSyncMessage): Ditto.
              (WebKit::WebPageProxy::fullScreenManager): Added. Lazy instantiation of m_fullScreenManager.
              * UIProcess/WebPageProxy.h:
              * UIProcess/WebPageProxy.messages.in:
              * UIProcess/WebUIClient.cpp:
              * UIProcess/WebUIClient.h:
              * WebKit2.xcodeproj/project.pbxproj: Added references to new classes in project file.
              * WebKit2.pro: Ditto.
              * win/WebKit2.vcproj: Ditto.
              * WebKit2.pri: Added new directories to include file path.
              * win/WebKit2Common.vsprops: Ditto.
              * WebProcess/FullScreen/WebFullScreenManager.cpp: Added.
              * WebProcess/FullScreen/WebFullScreenManager.h: Added.
              * WebProcess/FullScreen/WebFullScreenManager.messages.in: Added.
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::supportsFullScreenForElement): Pass through to WebFullScreenManager.
              (WebKit::WebChromeClient::enterFullScreenForElement): Ditto.
              (WebKit::WebChromeClient::exitFullScreenForElement): Ditto.
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::close): Invalidate and clear m_fullScreenManager.
              (WebKit::WebPage::fullScreenManager): Lazy instantiation of m_fullScreenManager.
              (WebKit::WebPage::didReceiveMessage): Pass messages through to WebFullScreenManager.
              * WebProcess/WebPage/WebPage.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e0ef58d
    • cfleizach@apple.com's avatar
      Source/WebCore: WK2: Cannot set focus on an element when focus is outside of WKView · 57e918a0
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=55281
          
      Reviewed by Sam Weinig.
      
      In WK2, focus cannot be set from the WebProcess side because there's no platformWidget().
      Instead, the focus/unfocus messages need to be sent to the UIProcess side.
      
      * platform/mac/WidgetMac.mm:
      (WebCore::Widget::setFocus):
      
      Source/WebKit2: WK2: Cannot set focus on an element when focus is outside of WKView
      https://bugs.webkit.org/show_bug.cgi?id=55281
      
      Reviewed by Sam Weinig.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::setFocus):
      * UIProcess/API/qt/qwkpage_p.h:
      (QWKPagePrivate::setFocus):
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::setFocus):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/win/WebView.h:
      (WebKit::WebView::setFocus):
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::focus):
      (WebKit::WebChromeClient::unfocus):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57e918a0
    • cfleizach@apple.com's avatar
      AX: Webkit2 not sending UAZoomFocusChanged notifications · e0b30329
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=55916
      
      Reviewed by Darin Adler.
      
      Needed to implement the windowToScreen() method so that the right frame
      could be calculated to send for zoom focus changes.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::windowToScreen):
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPagePrivate::windowToScreen):
      * UIProcess/API/qt/qwkpage_p.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::windowToScreen):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::windowToScreen):
      * UIProcess/win/WebView.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::windowToScreen):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::windowToScreen):
      * WebProcess/WebPage/WebPage.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0b30329
  3. 03 Mar, 2011 3 commits
    • aestes@apple.com's avatar
      When displaying the missing plug-in sheet, pass the 'pluginspage' · 4540cb09
      aestes@apple.com authored
      attribute to the UI process.
      https://bugs.webkit.org/show_bug.cgi?id=55553
      
      Reviewed by Darin Adler.
      
      Source/WebCore: 
      
      * WebCore.exp.in: Export __ZN7WebCore9HTMLNames15pluginspageAttrE.
      * html/HTMLAttributeNames.in: Add 'pluginspage' as a known content
      attribute.
      
      Source/WebKit2: 
      
      * UIProcess/API/C/WKPage.h: Add pluginsPageURL as the third argument to
      missingPluginButtonClicked.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
      * UIProcess/WebPageProxy.h: Ditto.
      * UIProcess/WebPageProxy.messages.in: Ditto.
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::missingPluginButtonClicked): Ditto.
      * UIProcess/WebUIClient.h: Ditto.
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::missingPluginButtonClicked): Get the value of
      pluginspageAttr.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4540cb09
    • ap@apple.com's avatar
      Reviewed by Darin Adler. · 46758807
      ap@apple.com authored
              REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
              https://bugs.webkit.org/show_bug.cgi?id=55633
              <rdar://problem/8963023>
      
              * WebKit2.xcodeproj/project.pbxproj:
              * WebProcess/mac/FullKeyboardAccessWatcher.h: Added.
              * WebProcess/mac/FullKeyboardAccessWatcher.mm: Added.
              (-[FullKeyboardAccessWatcher retrieveKeyboardUIModeFromPreferences:]):
              (-[FullKeyboardAccessWatcher init]):
              (+[FullKeyboardAccessWatcher fullKeyboardAccessEnabled]):
              Get the current state of full keyboard access, listening for change notifications.
      
              * WebProcess/WebProcess.h:  Added fullKeyboardAccessEnabled().
      
              * WebProcess/WebProcess.cpp: (WebKit::WebProcess::fullKeyboardAccessEnabled):
              WebKit1 also doesn't implement this on platforms other than Mac.
      
              * WebProcess/mac/WebProcessMac.mm: (WebKit::WebProcess::fullKeyboardAccessEnabled):
              Just ask FullKeyboardAccessWatcher.
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::keyboardUIMode):
              * WebProcess/WebCoreSupport/WebChromeClient.h:
              Added keyboardUIMode(), removed tabsToLinks().
      
              * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::keyboardUIMode):
              * WebProcess/WebPage/WebPage.h:
              Generate keyboard UI mode from tabToLinks preference and current state of FKA.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46758807
    • andersca@apple.com's avatar
      2011-03-03 Anders Carlsson <andersca@apple.com> · 6a10546c
      andersca@apple.com authored
              Reviewed by Darin Adler.
      
              Remove CanRunBeforeUnloadConfirmPanel sync message
              https://bugs.webkit.org/show_bug.cgi?id=55689
      
              * Shared/WebPageCreationParameters.cpp:
              (WebKit::WebPageCreationParameters::encode):
              (WebKit::WebPageCreationParameters::decode):
              Encode and decode canRunBeforeUnloadConfirmPanel, as well as canRunModal, which wasn't
              being encoded/decoded.
      
              * Shared/WebPageCreationParameters.h:
              Add canRunBeforeUnloadConfirmPanel.
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::initializeUIClient):
              Send SetCanRunBeforeUnloadConfirmPanel and SetCanRunModal messages.
      
              (WebKit::WebPageProxy::creationParameters):
              Initialize parameters.canRunBeforeUnloadConfirmPanel.
      
              * UIProcess/WebPageProxy.messages.in:
              Remove CanRunBeforeUnloadConfirmPanel message.
      
              * UIProcess/WebUIClient.cpp:
              (WebKit::WebUIClient::canRunBeforeUnloadConfirmPanel):
              * UIProcess/WebUIClient.h:
              Make canRunBeforeUnloadConfirmPanel const.
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::canRunBeforeUnloadConfirmPanel):
              Ask the web page instead of sending a synchronous message.
      
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::WebPage):
              Initialize m_canRunBeforeUnloadConfirmPanel.
      
              * WebProcess/WebPage/WebPage.h:
              (WebKit::WebPage::canRunBeforeUnloadConfirmPanel):
              (WebKit::WebPage::setCanRunBeforeUnloadConfirmPanel):
              Add getter and setter for m_canRunBeforeUnloadConfirmPanel.
      
              (WebKit::WebPage::setCanRunModal):
              Add setter for m_canRunModal.
      
              * WebProcess/WebPage/WebPage.messages.in:
              Add SetCanRunBeforeUnloadConfirmPanel and SetCanRunModal messages.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6a10546c
  4. 22 Feb, 2011 3 commits
    • kbalazs@webkit.org's avatar
      notImplemented() should behave identical in WebCore and WebKit2 · 15bae1e5
      kbalazs@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=54449
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      No functional change so no new tests.
      
      * WebCore.xcodeproj/project.pbxproj: Add NotImplemented.h as private header
      to be able to use it in WebKit2.
      
      Source/WebKit2:
      
      Use NotImplemented.h from WebCore. Initialize logging channels.
      Remove the WebKit2 concept of notImplemented().
      
      * Platform/gtk/SharedMemoryGtk.cpp:
      * Platform/gtk/WorkQueueGtk.cpp:
      * Platform/qt/WorkQueueQt.cpp:
      * Platform/win/WorkQueueWin.cpp:
      * Shared/NotImplemented.h: Removed.
      * Shared/Plugins/NPIdentifierData.cpp:
      * Shared/Plugins/NPRemoteObjectMap.cpp:
      * Shared/Plugins/NPVariantData.cpp:
      * Shared/cairo/ShareableBitmapCairo.cpp:
      * Shared/gtk/ShareableBitmapGtk.cpp:
      * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
      * Shared/qt/WebCoreArgumentCodersQt.cpp:
      * Shared/win/LayerTreeContextWin.cpp:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/qt/qwkpage.cpp:
      * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
      * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
      * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext):
      * UIProcess/WebInspectorProxy.cpp:
      * UIProcess/gtk/TextCheckerGtk.cpp:
      * UIProcess/gtk/WebInspectorGtk.cpp:
      * UIProcess/gtk/WebPreferencesGtk.cpp:
      * UIProcess/qt/TextCheckerQt.cpp:
      * UIProcess/qt/WebInspectorProxyQt.cpp:
      * UIProcess/win/TextCheckerWin.cpp:
      * UIProcess/win/WebContextMenuProxyWin.cpp:
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/Downloads/cf/DownloadCFNet.cpp:
      * WebProcess/Downloads/curl/DownloadCurl.cpp:
      * WebProcess/Downloads/mac/DownloadMac.mm:
      * WebProcess/Downloads/qt/DownloadQt.cpp:
      * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
      * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
      * WebProcess/Plugins/Netscape/NPJSObject.cpp:
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
      * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
      * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebDragClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
      * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
      * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
      * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
      * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
      * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
      * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
      * WebProcess/WebPage/qt/WebInspectorQt.cpp:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::WebProcess):
      * WebProcess/gtk/WebProcessGtk.cpp:
      * config.h:
      * win/WebKit2.vcproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      15bae1e5
    • kbalazs@webkit.org's avatar
      Unreviewed, rolling out r79296. · 706572cc
      kbalazs@webkit.org authored
      http://trac.webkit.org/changeset/79296
      https://bugs.webkit.org/show_bug.cgi?id=54941
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-02-22
      Breaks compilation on SnowLeapard Intel Release (Requested by
      kbalazs_ on #webkit).
      
      * Platform/gtk/SharedMemoryGtk.cpp:
      * Platform/gtk/WorkQueueGtk.cpp:
      * Platform/qt/WorkQueueQt.cpp:
      * Platform/win/WorkQueueWin.cpp:
      * Shared/NotImplemented.h: Copied from Source/WebKit2/WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp.
      * Shared/Plugins/NPIdentifierData.cpp:
      * Shared/Plugins/NPRemoteObjectMap.cpp:
      * Shared/Plugins/NPVariantData.cpp:
      * Shared/cairo/ShareableBitmapCairo.cpp:
      * Shared/gtk/ShareableBitmapGtk.cpp:
      * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
      * Shared/qt/WebCoreArgumentCodersQt.cpp:
      * Shared/win/LayerTreeContextWin.cpp:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/qt/qwkpage.cpp:
      * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
      * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
      * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext):
      * UIProcess/WebInspectorProxy.cpp:
      * UIProcess/gtk/TextCheckerGtk.cpp:
      * UIProcess/gtk/WebInspectorGtk.cpp:
      * UIProcess/gtk/WebPreferencesGtk.cpp:
      * UIProcess/qt/TextCheckerQt.cpp:
      * UIProcess/qt/WebInspectorProxyQt.cpp:
      * UIProcess/win/TextCheckerWin.cpp:
      * UIProcess/win/WebContextMenuProxyWin.cpp:
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/Downloads/cf/DownloadCFNet.cpp:
      * WebProcess/Downloads/curl/DownloadCurl.cpp:
      * WebProcess/Downloads/mac/DownloadMac.mm:
      * WebProcess/Downloads/qt/DownloadQt.cpp:
      * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
      * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
      * WebProcess/Plugins/Netscape/NPJSObject.cpp:
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
      * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
      * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebDragClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
      * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
      * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
      * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
      * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
      * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
      * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
      * WebProcess/WebPage/qt/WebInspectorQt.cpp:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::WebProcess):
      * WebProcess/gtk/WebProcessGtk.cpp:
      * config.h:
      * win/WebKit2.vcproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      706572cc
    • kbalazs@webkit.org's avatar
      notImplemented() should behave identical in WebCore and WebKit2... · d9e8b2b9
      kbalazs@webkit.org authored
      notImplemented() should behave identical in WebCore and WebKit2 https://bugs.webkit.org/show_bug.cgi?id=54449
      
      Reviewed by Anders Carlsson.
      
      Use NotImplemented.h from WebCore. Initialize logging channels.
      Remove the WebKit2 concept of notImplemented().
      
      * Platform/gtk/SharedMemoryGtk.cpp:
      * Platform/gtk/WorkQueueGtk.cpp:
      * Platform/qt/WorkQueueQt.cpp:
      * Platform/win/WorkQueueWin.cpp:
      * Shared/NotImplemented.h: Removed.
      * Shared/Plugins/NPIdentifierData.cpp:
      * Shared/Plugins/NPRemoteObjectMap.cpp:
      * Shared/Plugins/NPVariantData.cpp:
      * Shared/cairo/ShareableBitmapCairo.cpp:
      * Shared/gtk/ShareableBitmapGtk.cpp:
      * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
      * Shared/qt/WebCoreArgumentCodersQt.cpp:
      * Shared/win/LayerTreeContextWin.cpp:
      * UIProcess/API/qt/qwkpage.cpp:
      * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
      * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
      * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext):
      * UIProcess/WebInspectorProxy.cpp:
      * UIProcess/gtk/TextCheckerGtk.cpp:
      * UIProcess/gtk/WebInspectorGtk.cpp:
      * UIProcess/gtk/WebPreferencesGtk.cpp:
      * UIProcess/qt/TextCheckerQt.cpp:
      * UIProcess/qt/WebInspectorProxyQt.cpp:
      * UIProcess/win/TextCheckerWin.cpp:
      * UIProcess/win/WebContextMenuProxyWin.cpp:
      * WebKit2.pro:
      * WebProcess/Downloads/cf/DownloadCFNet.cpp:
      * WebProcess/Downloads/curl/DownloadCurl.cpp:
      * WebProcess/Downloads/mac/DownloadMac.mm:
      * WebProcess/Downloads/qt/DownloadQt.cpp:
      * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
      * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
      * WebProcess/Plugins/Netscape/NPJSObject.cpp:
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
      * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
      * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
      * WebProcess/WebCoreSupport/WebDragClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
      * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
      * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
      * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
      * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
      * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
      * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
      * WebProcess/WebPage/qt/WebInspectorQt.cpp:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::WebProcess):
      * WebProcess/gtk/WebProcessGtk.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d9e8b2b9
  5. 18 Feb, 2011 1 commit
  6. 09 Feb, 2011 1 commit
  7. 08 Feb, 2011 2 commits
    • weinig@apple.com's avatar
      WK2: Add ability to pass context to policy delegate methods · 992aaa17
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=54031
      
      Reviewed by Anders Carlsson.
      
      Source/WebKit2: 
      
      * Platform/CoreIPC/HandleMessage.h:
      (CoreIPC::callMemberFunction):
      (CoreIPC::handleMessageVariadic):
      * Scripts/webkit2/messages.py:
      Add ability to pass variadic messages to sync messages.
      
      * Shared/API/c/WKBase.h:
      * Shared/APIObject.h:
      Add WKBundleNavigation type.
      
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      (WebKit::WebPageProxy::decidePolicyForMIMEType):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      (WebKit::WebPolicyClient::decidePolicyForMIMEType):
      * UIProcess/WebPolicyClient.h:
      Update policy client for new data.
      
      * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
      * WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp: Added.
      (WKBundleNavigationActionGetTypeID):
      (WKBundleNavigationActionGetNavigationType):
      (WKBundleNavigationActionGetEventModifiers):
      (WKBundleNavigationActionGetEventMouseButton):
      (WKBundleNavigationActionCopyHitTestResult):
      (WKBundleNavigationActionCopyFormElement):
      * WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.h: Added.
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      (WKBundlePageSetPolicyClient):
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
      * WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp: Added.
      (WebKit::mouseEventForNavigationAction):
      (WebKit::mouseButtonForMouseEvent):
      (WebKit::InjectedBundleNavigationAction::modifiersForNavigationAction):
      (WebKit::InjectedBundleNavigationAction::mouseButtonForNavigationAction):
      (WebKit::InjectedBundleNavigationAction::create):
      (WebKit::InjectedBundleNavigationAction::InjectedBundleNavigationAction):
      * WebProcess/InjectedBundle/InjectedBundleNavigationAction.h: Added.
      (WebKit::InjectedBundleNavigationAction::navigationType):
      (WebKit::InjectedBundleNavigationAction::modifiers):
      (WebKit::InjectedBundleNavigationAction::mouseButton):
      (WebKit::InjectedBundleNavigationAction::hitTestResult):
      (WebKit::InjectedBundleNavigationAction::formElement):
      (WebKit::InjectedBundleNavigationAction::type):
      * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp: Added.
      (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNavigationAction):
      (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNewWindowAction):
      (WebKit::InjectedBundlePagePolicyClient::decidePolicyForMIMEType):
      * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h: Added.
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::createWindow):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::initializeInjectedBundlePolicyClient):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::injectedBundlePolicyClient):
      Pipe the policy client through the bundle to allow setting user data.
      
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      Add new files.
      
      Tools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (decidePolicyForNavigationAction):
      (decidePolicyForNewWindowAction):
      (decidePolicyForMIMEType):
      * TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp:
      (TestWebKitAPI::decidePolicyForNavigationAction):
      (TestWebKitAPI::decidePolicyForNewWindowAction):
      (TestWebKitAPI::decidePolicyForMIMEType):
      Update policy client for new API.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77974 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      992aaa17
    • abarth@webkit.org's avatar
      2011-02-08 Adam Barth <abarth@webkit.org> · 75f3a0a9
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              This code appears to be unused.
      
              * html/HTMLParserErrorCodes.cpp:
              * html/HTMLParserErrorCodes.h:
              * html/HTMLParserQuirks.h:
              * loader/EmptyClients.h:
              * page/ChromeClient.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * src/ChromeClientImpl.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebCoreSupport/ChromeClientEfl.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebCoreSupport/ChromeClientGtk.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebCoreSupport/ChromeClientHaiku.cpp:
              * WebCoreSupport/ChromeClientHaiku.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebCoreSupport/WebChromeClient.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebCoreSupport/ChromeClientQt.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebCoreSupport/WebChromeClient.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebCoreSupport/ChromeClientWinCE.cpp:
              * WebCoreSupport/ChromeClientWinCE.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebKitSupport/ChromeClientWx.h:
      2011-02-08  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Eric Seidel.
      
              Remove orphan code from old parser
              https://bugs.webkit.org/show_bug.cgi?id=53984
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp
              * WebProcess/WebCoreSupport/WebChromeClient.h
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75f3a0a9
  8. 07 Feb, 2011 1 commit
    • weinig@apple.com's avatar
      Inform the UIProcess when main frame scrollbars change · 26579080
      weinig@apple.com authored
      <rdar://problem/8967496>
      https://bugs.webkit.org/show_bug.cgi?id=53941
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageHasHorizontalScrollbar):
      (WKPageHasVerticalScrollbar):
      * UIProcess/API/C/WKPage.h:
      Add API to query whether the main frame has scrollbars.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::processDidCrash):
      (WebKit::WebPageProxy::didChangeScrollbarsForMainFrame):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::hasHorizontalScrollbar):
      (WebKit::WebPageProxy::hasVerticalScrollbar):
      Store/update main frame scrollbar state.
      
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::contentsSizeChanged):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      (WebKit::WebChromeClient::WebChromeClient):
      Post message when main frame scrollbar state changes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77846 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26579080
  9. 04 Feb, 2011 1 commit
    • ap@apple.com's avatar
      Reviewed by Darin Adler. · 3e58000f
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=53823
              Print layout sometimes seen on screen
      
              <rdar://problem/8948742> REGRESSION (WebKit2) - When I print a page, I visually see it re-layout
              <rdar://problem/8899389> REGRESSION(WebKit2): Wrong content can appear when print dialog is up
      
              * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::setAutodisplay): Removed a
              branch that didn't do anything useful.
      
              * UIProcess/API/mac/WKPrintingView.h:
              * UIProcess/API/mac/WKPrintingView.mm:
              (-[WKPrintingView _suspendAutodisplay]):
              (-[WKPrintingView _delayedResumeAutodisplayTimerFired]):
              (-[WKPrintingView _delayedResumeAutodisplay]):
              (-[WKPrintingView knowsPageRange:]):
              (-[WKPrintingView beginDocument]):
              (-[WKPrintingView endDocument]):
              When page setup changes, or when going from print preview to actual printing, AppKit calls
              -endDocument just to begin it again. Delay resuming autodisplay until the next run loop
              iteration.
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::invalidateContentsAndWindow):
              (WebKit::WebChromeClient::invalidateContentsForSlowScroll):
              Tightened it up from other side - we should never send pixels to UI process while in
              printing mode. This is not 100% reliable, because relayout doesn't happen immediately,
              and we can still have print layout in screen mode - but it helps.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e58000f
  10. 03 Feb, 2011 1 commit
    • weinig@apple.com's avatar
      Add notification of the end of a rubber band. · 30215244
      weinig@apple.com authored
      <rdar://problem/8940648>
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      * WebCore.exp.in:
      Add additional exprots.
      
      * page/ChromeClient.h:
      (WebCore::ChromeClient::didCompleteRubberBandForMainFrame):
      * page/FrameView.cpp:
      (WebCore::FrameView::didCompleteRubberBand):
      * page/FrameView.h:
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::didCompleteRubberBand):
      * platform/ScrollView.h:
      Add hook.
      
      * platform/ScrollableArea.h:
      (WebCore::ScrollableArea::inLiveResize):
      (WebCore::ScrollableArea::maximumScrollPosition):
      (WebCore::ScrollableArea::visibleWidth):
      (WebCore::ScrollableArea::overhangAmount):
      (WebCore::ScrollableArea::didCompleteRubberBand):
      Reorganize and de-virtualize live resize notifications.
      
      * platform/mac/ScrollAnimatorMac.mm:
      (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
      Call the new hook when the rubberband ends.
      
      Source/WebKit2: 
      
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::drawHeader):
      (WebKit::WebPageProxy::drawFooter):
      (WebKit::WebPageProxy::didCompleteRubberBandForMainFrame):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::didCompleteRubberBandForMainFrame):
      * UIProcess/WebUIClient.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::didCompleteRubberBandForMainFrame):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      Pipe the notification up to the WKUIClient.
      
      Tools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (-[BrowserWindowController awakeFromNib]):
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::createOtherPage):
      (WTR::TestController::initialize):
      Stub out the new WKUIClient function.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30215244
  11. 02 Feb, 2011 1 commit
    • weinig@apple.com's avatar
      Add ChromeClient function to paint custom overhang areas. · 1172e012
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=53639
      
      Reviewed by Beth Dakin.
      
      Source/WebCore: 
      
      * page/Chrome.cpp:
      (WebCore::ChromeClient::paintCustomOverhangArea):
      * page/ChromeClient.h:
      Add ChromeClient function.
      
      * page/FrameView.cpp:
      (WebCore::FrameView::paintOverhangAreas):
      * page/FrameView.h:
      Call out the the ChromeClient, call ScrollView base implementation
      if the ChromeClient returns false.
      
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::paintOverhangAreas):
      * platform/ScrollView.h:
      Add dirty rect for use when painting overhang areas.
      
      Source/WebKit2: 
      
      * Shared/API/c/WKBase.h:
      * Shared/API/c/WKGraphicsContext.cpp: Added.
      (WKGraphicsContextGetTypeID):
      * Shared/API/c/WKGraphicsContext.h: Added.
      * Shared/API/c/WKSharedAPICast.h:
      * Shared/API/c/cg/WKGraphicsContextCG.cpp: Added.
      (WKGraphicsContextGetCGContext):
      * Shared/API/c/cg/WKGraphicsContextCG.h: Added.
      * Shared/APIObject.h:
      * Shared/WebGraphicsContext.cpp: Added.
      (WebKit::WebGraphicsContext::WebGraphicsContext):
      * Shared/WebGraphicsContext.h: Added.
      (WebKit::WebGraphicsContext::create):
      (WebKit::WebGraphicsContext::platformContext):
      (WebKit::WebGraphicsContext::type):
      Add WebGraphicsContext API type.
      
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
      (WebKit::InjectedBundlePageUIClient::pageDidScroll):
      (WebKit::InjectedBundlePageUIClient::shouldPaintCustomOverhangArea):
      (WebKit::InjectedBundlePageUIClient::paintCustomOverhangArea):
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::paintCustomOverhangArea):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      Pipe paintCustomOverhangArea to the InjectedBundlePageUIClient.
      
      * UIProcess/API/C/WebKit2.h:
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      Add new files.
      
      Tools: 
      
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::InjectedBundlePage):
      Stub out new callback.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1172e012
  12. 28 Jan, 2011 1 commit
    • mitz@apple.com's avatar
      Source/WebCore: <rdar://problem/4761512> <select> can't display right-to-left (rtl) languages · 07c9c84c
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      Changed <select> pop-up menus on Mac OS X Snow Leopard and later to have their items aligned in the
      direction corresponding to the writing direction of the <select> element, with the checkmarks
      on the "start" side, and use the <option>'s writing direction rather than "natural". Made the
      pop-up button match the menu by adding a Chrome boolean function, selectItemAlignmentFollowsMenuWritingDirection(),
      which returns true for this pop-up behavior.
      
      * loader/EmptyClients.h:
      (WebCore::EmptyChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * manual-tests/pop-up-alignment-and-direction.html: Added.
      * page/Chrome.cpp:
      (WebCore::Chrome::selectItemAlignmentFollowsMenuWritingDirection): Added. Calls through to the
      client.
      * page/Chrome.h:
      * page/ChromeClient.h:
      * platform/PopupMenuStyle.h:
      (WebCore::PopupMenuStyle::PopupMenuStyle): Added hasTextDirectionOverride parameter and member
      variable initialization.
      (WebCore::PopupMenuStyle::hasTextDirectionOverride): Added this accessor.
      * platform/mac/PopupMenuMac.mm:
      (WebCore::PopupMenuMac::populate): Set the pop-up's layout direction and items' text alignment
      to match the menu's writing direction. Set items' writing direction and direction override
      according to their styles.
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::RenderMenuList): Removed unncesaary initialization of a smart pointer.
      (WebCore::RenderMenuList::adjustInnerStyle): If the alignment of items in the menu follows the
      menu's writing direction, use that alignment for the button as well. Also in this mode, use the
      item's writing direction and override setting.
      (WebCore::RenderMenuList::setTextFromOption): Store the option element's style.
      (WebCore::RenderMenuList::itemStyle): Pass the text direction override value.
      (WebCore::RenderMenuList::menuStyle): Ditto. Also use the button's direction, not the inner text's.
      * rendering/RenderMenuList.h:
      * rendering/RenderTextControlSingleLine.cpp:
      (WebCore::RenderTextControlSingleLine::menuStyle): Pass the text direction override value.
      
      Source/WebKit/chromium: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * src/AutoFillPopupMenuClient.cpp:
      (WebKit::AutoFillPopupMenuClient::initialize): Pass hasTextDirectionOverride to the PopupMenuStyle
      constructor.
      * src/ChromeClientImpl.cpp:
      (WebKit::ChromeClientImpl::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * src/ChromeClientImpl.h:
      * tests/PopupMenuTest.cpp:
      (WebKit::TestPopupMenuClient::itemStyle): Pass hasTextDirectionOverride to the PopupMenuStyle
      constructor.
      
      Source/WebKit/efl: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      (WebCore::ChromeClientEfl::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebCoreSupport/ChromeClientEfl.h:
      
      Source/WebKit/gtk: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      (WebKit::ChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebCoreSupport/ChromeClientGtk.h:
      
      Source/WebKit/haiku: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebCoreSupport/ChromeClientHaiku.cpp:
      (WebCore::ChromeClientHaiku::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebCoreSupport/ChromeClientHaiku.h:
      
      Source/WebKit/mac: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebCoreSupport/WebChromeClient.h:
      * WebCoreSupport/WebChromeClient.mm:
      (WebChromeClient::selectItemWritingDirectionIsNatural): Changed to return false.
      (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added. Returns true.
      
      Source/WebKit/qt: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (WebCore::ChromeClientQt::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebCoreSupport/ChromeClientQt.h:
      
      Source/WebKit/win: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebCoreSupport/WebChromeClient.cpp:
      (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebCoreSupport/WebChromeClient.h:
      
      Source/WebKit/wince: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebCoreSupport/ChromeClientWinCE.cpp:
      (WebKit::ChromeClientWinCE::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebCoreSupport/ChromeClientWinCE.h:
      
      Source/WebKit/wx: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * WebKitSupport/ChromeClientWx.cpp:
      (WebCore::ChromeClientWx::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebKitSupport/ChromeClientWx.h:
      
      Source/WebKit2: <select> can't display right-to-left (rtl) languages
      https://bugs.webkit.org/show_bug.cgi?id=19785
      
      Reviewed by Sam Weinig.
      
      * Shared/WebPopupItem.cpp:
      (WebKit::WebPopupItem::WebPopupItem): Added initializers for m_textDirection and m_hasTextDirectionOverride.
      (WebKit::WebPopupItem::encode): Encode the item's writing direction and direction override values.
      (WebKit::WebPopupItem::decode): Decode the item's writing direction and direction override values.
      * Shared/WebPopupItem.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::showPopupMenu): Added a parameter for the menu's text direction.
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in: Ditto.
      * UIProcess/WebPopupMenuProxy.h:
      * UIProcess/mac/WebPopupMenuProxyMac.h:
      * UIProcess/mac/WebPopupMenuProxyMac.mm:
      (WebKit::WebPopupMenuProxyMac::populate): Added a parameter for the menu's text direction.
      Set items' text alignment to match the menu's writing direction. Set items' writing direction
      and direction override according to their styles.
      (WebKit::WebPopupMenuProxyMac::showPopupMenu): Set the pop-up's layout direction.
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::selectItemWritingDirectionIsNatural): Changed to return false.
      (WebKit::WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added.
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
      (WebKit::WebPopupMenu::populateItems): Initialize items' writing direction and direction override
      values.
      (WebKit::WebPopupMenu::show): Pass the menu's writing direction.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07c9c84c
  13. 27 Jan, 2011 1 commit
    • laszlo.1.gombos@nokia.com's avatar
      2011-01-27 Greg Coletta <greg.coletta@nokia.com> · 48183967
      laszlo.1.gombos@nokia.com authored
              Reviewed by Laszlo Gombos.
      
              Get rid of prefix header dependency for WebKit2 build system
              https://bugs.webkit.org/show_bug.cgi?id=50174
      
              Change the style checker so that it enforces config.h include for
              WebKit2.
      
              * Scripts/webkitpy/style/checker.py:
      
      2011-01-27  Greg Coletta  <greg.coletta@nokia.com>
      
              Reviewed by Laszlo Gombos.
      
              Get rid of prefix header dependency for WebKit2 build system
              https://bugs.webkit.org/show_bug.cgi?id=50174
      
              Guard EmptyProtocalDefinitions.h to make sure it's not included twice.
      
              * platform/mac/EmptyProtocolDefinitions.h:
      
      2011-01-27  Greg Coletta  <greg.coletta@nokia.com>
      
              Reviewed by Laszlo Gombos.
      
              Get rid of prefix header dependency for WebKit2 build system.
              https://bugs.webkit.org/show_bug.cgi?id=50174
      
              Add config.h include explicitelly.
      
              * Platform/CoreIPC/ArgumentDecoder.cpp:
              * Platform/CoreIPC/ArgumentEncoder.cpp:
              * Platform/CoreIPC/Attachment.cpp:
              * Platform/CoreIPC/BinarySemaphore.cpp:
              * Platform/CoreIPC/Connection.cpp:
              * Platform/CoreIPC/DataReference.cpp:
              * Platform/CoreIPC/gtk/ConnectionGtk.cpp:
              * Platform/CoreIPC/mac/ConnectionMac.cpp:
              * Platform/CoreIPC/qt/ConnectionQt.cpp:
              * Platform/CoreIPC/win/ConnectionWin.cpp:
              * Platform/Logging.cpp:
              * Platform/Module.cpp:
              * Platform/Region.cpp:
              * Platform/RunLoop.cpp:
              * Platform/WorkQueue.cpp:
              * Platform/cg/CGUtilities.cpp:
              * Platform/gtk/RunLoopGtk.cpp:
              * Platform/gtk/SharedMemoryGtk.cpp:
              * Platform/gtk/WorkQueueGtk.cpp:
              * Platform/mac/MachUtilities.cpp:
              * Platform/mac/SharedMemoryMac.cpp:
              * Platform/mac/WorkQueueMac.cpp:
              * Platform/qt/MappedMemoryPool.cpp:
              * Platform/qt/ModuleQt.cpp:
              * Platform/qt/RunLoopQt.cpp:
              * Platform/qt/WorkQueueQt.cpp:
              * Platform/win/ModuleWin.cpp:
              * Platform/win/RunLoopWin.cpp:
              * Platform/win/SharedMemoryWin.cpp:
              * Platform/win/WorkQueueWin.cpp:
              * PluginProcess/PluginControllerProxy.cpp:
              * PluginProcess/PluginProcess.cpp:
              * PluginProcess/WebProcessConnection.cpp:
              * Scripts/webkit2/messages.py:
              * Shared/API/c/WKArray.cpp:
              * Shared/API/c/WKCertificateInfo.cpp:
              * Shared/API/c/WKContextMenuItem.cpp:
              * Shared/API/c/WKData.cpp:
              * Shared/API/c/WKDictionary.cpp:
              * Shared/API/c/WKError.cpp:
              * Shared/API/c/WKImage.cpp:
              * Shared/API/c/WKMutableArray.cpp:
              * Shared/API/c/WKMutableDictionary.cpp:
              * Shared/API/c/WKNumber.cpp:
              * Shared/API/c/WKSecurityOrigin.cpp:
              * Shared/API/c/WKSerializedScriptValue.cpp:
              * Shared/API/c/WKString.cpp:
              * Shared/API/c/WKType.cpp:
              * Shared/API/c/WKURL.cpp:
              * Shared/API/c/WKURLRequest.cpp:
              * Shared/API/c/WKURLResponse.cpp:
              * Shared/API/c/WKUserContentURLPattern.cpp:
              * Shared/API/c/cf/WKStringCF.cpp:
              * Shared/API/c/cf/WKURLCF.cpp:
              * Shared/API/c/cf/WKURLRequestCF.cpp:
              * Shared/API/c/cf/WKURLResponseCF.cpp:
              * Shared/API/c/cg/WKImageCG.cpp:
              * Shared/API/c/win/WKCertificateInfoWin.cpp:
              * Shared/ChildProcess.cpp:
              * Shared/ImmutableArray.cpp:
              * Shared/ImmutableDictionary.cpp:
              * Shared/MutableArray.cpp:
              * Shared/MutableDictionary.cpp:
              * Shared/OriginAndDatabases.cpp:
              * Shared/PlatformPopupMenuData.cpp:
              * Shared/Plugins/NPIdentifierData.cpp:
              * Shared/Plugins/NPObjectMessageReceiver.cpp:
              * Shared/Plugins/NPObjectProxy.cpp:
              * Shared/Plugins/NPRemoteObjectMap.cpp:
              * Shared/Plugins/NPVariantData.cpp:
              * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
              * Shared/Plugins/Netscape/win/NetscapePluginModuleWin.cpp:
              * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
              * Shared/Plugins/PluginProcessCreationParameters.cpp:
              * Shared/PrintInfo.cpp:
              * Shared/SessionState.cpp:
              * Shared/ShareableBitmap.cpp:
              * Shared/UpdateInfo.cpp:
              * Shared/VisitedLinkTable.cpp:
              * Shared/WebBackForwardListItem.cpp:
              * Shared/WebContextMenuItem.cpp:
              * Shared/WebContextMenuItemData.cpp:
              * Shared/WebError.cpp:
              * Shared/WebEvent.cpp:
              * Shared/WebEventConversion.cpp:
              * Shared/WebGeolocationPosition.cpp:
              * Shared/WebImage.cpp:
              * Shared/WebKeyboardEvent.cpp:
              * Shared/WebMemorySampler.cpp:
              * Shared/WebMouseEvent.cpp:
              * Shared/WebOpenPanelParameters.cpp:
              * Shared/WebPageCreationParameters.cpp:
              * Shared/WebPageGroupData.cpp:
              * Shared/WebPlatformTouchPoint.cpp:
              * Shared/WebPopupItem.cpp:
              * Shared/WebPreferencesStore.cpp:
              * Shared/WebProcessCreationParameters.cpp:
              * Shared/WebTouchEvent.cpp:
              * Shared/WebURLRequest.cpp:
              * Shared/WebURLResponse.cpp:
              * Shared/WebWheelEvent.cpp:
              * Shared/cairo/ShareableBitmapCairo.cpp:
              * Shared/cf/ArgumentCodersCF.cpp:
              * Shared/cg/ShareableBitmapCG.cpp:
              * Shared/gtk/ShareableBitmapGtk.cpp:
              * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
              * Shared/mac/CommandLineMac.cpp:
              * Shared/mac/UpdateChunk.cpp:
              * Shared/qt/CleanupHandler.cpp:
              * Shared/qt/NativeWebKeyboardEventQt.cpp:
              * Shared/qt/ShareableBitmapQt.cpp:
              * Shared/qt/UpdateChunk.cpp:
              * Shared/qt/WebCoreArgumentCodersQt.cpp:
              * Shared/qt/WebEventFactoryQt.cpp:
              * Shared/qt/WebURLRequestQt.cpp:
              * Shared/qt/WebURLResponseQt.cpp:
              * Shared/win/CommandLineWin.cpp:
              * Shared/win/NativeWebKeyboardEventWin.cpp:
              * Shared/win/PlatformCertificateInfo.cpp:
              * Shared/win/UpdateChunk.cpp:
              * Shared/win/WebCoreArgumentCodersWin.cpp:
              * Shared/win/WebEventFactory.cpp:
              * Shared/win/WebURLRequestWin.cpp:
              * Shared/win/WebURLResponseWin.cpp:
              * UIProcess/API/C/WKAuthenticationChallenge.cpp:
              * UIProcess/API/C/WKAuthenticationDecisionListener.cpp:
              * UIProcess/API/C/WKBackForwardList.cpp:
              * UIProcess/API/C/WKBackForwardListItem.cpp:
              * UIProcess/API/C/WKContext.cpp:
              * UIProcess/API/C/WKCredential.cpp:
              * UIProcess/API/C/WKDatabaseManager.cpp:
              * UIProcess/API/C/WKDownload.cpp:
              * UIProcess/API/C/WKFormSubmissionListener.cpp:
              * UIProcess/API/C/WKFrame.cpp:
              * UIProcess/API/C/WKFramePolicyListener.cpp:
              * UIProcess/API/C/WKGeolocationManager.cpp:
              * UIProcess/API/C/WKGeolocationPermissionRequest.cpp:
              * UIProcess/API/C/WKGeolocationPosition.cpp:
              * UIProcess/API/C/WKInspector.cpp:
              * UIProcess/API/C/WKNavigationData.cpp:
              * UIProcess/API/C/WKOpenPanelParameters.cpp:
              * UIProcess/API/C/WKOpenPanelResultListener.cpp:
              * UIProcess/API/C/WKPage.cpp:
              * UIProcess/API/C/WKPageGroup.cpp:
              * UIProcess/API/C/WKPreferences.cpp:
              * UIProcess/API/C/WKProtectionSpace.cpp:
              * UIProcess/API/C/win/WKContextWin.cpp:
              * UIProcess/API/C/win/WKView.cpp:
              * UIProcess/API/C/win/WKViewPrivate.cpp:
              * UIProcess/API/cpp/qt/WKStringQt.cpp:
              * UIProcess/API/cpp/qt/WKURLQt.cpp:
              * UIProcess/API/qt/ClientImpl.cpp:
              * UIProcess/API/qt/qgraphicswkview.cpp:
              * UIProcess/API/qt/qwkcontext.cpp:
              * UIProcess/API/qt/qwkpage.cpp:
              * UIProcess/API/qt/qwkpreferences.cpp:
              * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
              * UIProcess/Authentication/AuthenticationDecisionListener.cpp:
              * UIProcess/Authentication/WebCredential.cpp:
              * UIProcess/Authentication/WebProtectionSpace.cpp:
              * UIProcess/BackingStore.cpp:
              * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
              * UIProcess/Downloads/DownloadProxy.cpp:
              * UIProcess/DrawingAreaProxy.cpp:
              * UIProcess/DrawingAreaProxyImpl.cpp:
              * UIProcess/FindIndicator.cpp:
              * UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
              * UIProcess/GeolocationPermissionRequestProxy.cpp:
              * UIProcess/Launcher/ProcessLauncher.cpp:
              * UIProcess/Launcher/ThreadLauncher.cpp:
              * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
              * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
              * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
              * UIProcess/Launcher/qt/ThreadLauncherQt.cpp:
              * UIProcess/Launcher/win/ProcessLauncherWin.cpp:
              * UIProcess/Launcher/win/ThreadLauncherWin.cpp:
              * UIProcess/LayerBackedDrawingAreaProxy.cpp:
              * UIProcess/Plugins/PluginInfoStore.cpp:
              * UIProcess/Plugins/PluginProcessManager.cpp:
              * UIProcess/Plugins/PluginProcessProxy.cpp:
              * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
              * UIProcess/Plugins/qt/PluginInfoStoreQt.cpp:
              * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
              * UIProcess/ResponsivenessTimer.cpp:
              * UIProcess/TiledDrawingAreaProxy.cpp:
              * UIProcess/VisitedLinkProvider.cpp:
              * UIProcess/WebBackForwardList.cpp:
              * UIProcess/WebContext.cpp:
              * UIProcess/WebContextInjectedBundleClient.cpp:
              * UIProcess/WebContextMenuProxy.cpp:
              * UIProcess/WebDatabaseManagerProxy.cpp:
              * UIProcess/WebDatabaseManagerProxyClient.cpp:
              * UIProcess/WebDownloadClient.cpp:
              * UIProcess/WebEditCommandProxy.cpp:
              * UIProcess/WebFindClient.cpp:
              * UIProcess/WebFormClient.cpp:
              * UIProcess/WebFormSubmissionListenerProxy.cpp:
              * UIProcess/WebFrameListenerProxy.cpp:
              * UIProcess/WebFramePolicyListenerProxy.cpp:
              * UIProcess/WebFrameProxy.cpp:
              * UIProcess/WebGeolocationManagerProxy.cpp:
              * UIProcess/WebGeolocationProvider.cpp:
              * UIProcess/WebHistoryClient.cpp:
              * UIProcess/WebInspectorProxy.cpp:
              * UIProcess/WebLoaderClient.cpp:
              * UIProcess/WebNavigationData.cpp:
              * UIProcess/WebOpenPanelResultListenerProxy.cpp:
              * UIProcess/WebPageContextMenuClient.cpp:
              * UIProcess/WebPageGroup.cpp:
              * UIProcess/WebPageProxy.cpp:
              * UIProcess/WebPolicyClient.cpp:
              * UIProcess/WebPreferences.cpp:
              * UIProcess/WebProcessManager.cpp:
              * UIProcess/WebProcessProxy.cpp:
              * UIProcess/WebResourceLoadClient.cpp:
              * UIProcess/WebUIClient.cpp:
              * UIProcess/cf/WebBackForwardListCF.cpp:
              * UIProcess/cf/WebPageProxyCF.cpp:
              * UIProcess/cf/WebPreferencesCF.cpp:
              * UIProcess/gtk/TextCheckerGtk.cpp:
              * UIProcess/gtk/WebInspectorGtk.cpp:
              * UIProcess/gtk/WebPageProxyGtk.cpp:
              * UIProcess/gtk/WebPreferencesGtk.cpp:
              * UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp:
              * UIProcess/qt/TextCheckerQt.cpp:
              * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
              * UIProcess/qt/TiledDrawingAreaTileQt.cpp:
              * UIProcess/qt/WebContextMenuProxyQt.cpp:
              * UIProcess/qt/WebContextQt.cpp:
              * UIProcess/qt/WebInspectorProxyQt.cpp:
              * UIProcess/qt/WebPageProxyQt.cpp:
              * UIProcess/qt/WebPopupMenuProxyQt.cpp:
              * UIProcess/qt/WebPreferencesQt.cpp:
              * UIProcess/win/ChunkedUpdateDrawingAreaProxyWin.cpp:
              * UIProcess/win/LayerBackedDrawingAreaProxyWin.cpp:
              * UIProcess/win/TextCheckerWin.cpp:
              * UIProcess/win/WebContextMenuProxyWin.cpp:
              * UIProcess/win/WebContextWin.cpp:
              * UIProcess/win/WebInspectorProxyWin.cpp:
              * UIProcess/win/WebPageProxyWin.cpp:
              * UIProcess/win/WebPopupMenuProxyWin.cpp:
              * UIProcess/win/WebView.cpp:
              * WebKit2.xcodeproj/project.pbxproj:
              * WebProcess/Authentication/AuthenticationManager.cpp:
              * WebProcess/Downloads/Download.cpp:
              * WebProcess/Downloads/DownloadManager.cpp:
              * WebProcess/Downloads/cf/DownloadCFNet.cpp:
              * WebProcess/Downloads/curl/DownloadCurl.cpp:
              * WebProcess/Downloads/qt/DownloadQt.cpp:
              * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
              * WebProcess/Geolocation/WebGeolocationManager.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
              * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
              * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
              * WebProcess/InjectedBundle/InjectedBundle.cpp:
              * WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp:
              * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
              * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
              * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
              * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
              * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp:
              * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
              * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
              * WebProcess/Plugins/Netscape/JSNPObject.cpp:
              * WebProcess/Plugins/Netscape/NPJSObject.cpp:
              * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
              * WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp:
              * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
              * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
              * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
              * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
              * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
              * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
              * WebProcess/Plugins/Plugin.cpp:
              * WebProcess/Plugins/PluginProcessConnection.cpp:
              * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
              * WebProcess/Plugins/PluginProxy.cpp:
              * WebProcess/Plugins/PluginView.cpp:
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
              * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
              * WebProcess/WebCoreSupport/WebDragClient.cpp:
              * WebProcess/WebCoreSupport/WebEditorClient.cpp:
              * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
              * WebProcess/WebCoreSupport/WebGeolocationClient.cpp:
              * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
              * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
              * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
              * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
              * WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp:
              * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
              * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
              * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
              * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp:
              * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp:
              * WebProcess/WebCoreSupport/qt/WebPopupMenuQt.cpp:
              * WebProcess/WebCoreSupport/win/WebContextMenuClientWin.cpp:
              * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
              * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
              * WebProcess/WebKitMain.cpp:
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
              * WebProcess/WebPage/DecoderAdapter.cpp:
              * WebProcess/WebPage/DrawingArea.cpp:
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              * WebProcess/WebPage/EncoderAdapter.cpp:
              * WebProcess/WebPage/FindController.cpp:
              * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
              * WebProcess/WebPage/PageOverlay.cpp:
              * WebProcess/WebPage/TiledDrawingArea.cpp:
              * WebProcess/WebPage/WebBackForwardListProxy.cpp:
              * WebProcess/WebPage/WebContextMenu.cpp:
              * WebProcess/WebPage/WebEditCommand.cpp:
              * WebProcess/WebPage/WebFrame.cpp:
              * WebProcess/WebPage/WebInspector.cpp:
              * WebProcess/WebPage/WebOpenPanelResultListener.cpp:
              * WebProcess/WebPage/WebPage.cpp:
              * WebProcess/WebPage/WebPageGroupProxy.cpp:
              * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
              * WebProcess/WebPage/mac/ChunkedUpdateDrawingAreaMac.cpp:
              * WebProcess/WebPage/qt/ChunkedUpdateDrawingAreaQt.cpp:
              * WebProcess/WebPage/qt/TiledDrawingAreaQt.cpp:
              * WebProcess/WebPage/qt/WebInspectorQt.cpp:
              * WebProcess/WebPage/qt/WebPageQt.cpp:
              * WebProcess/WebPage/win/ChunkedUpdateDrawingAreaWin.cpp:
              * WebProcess/WebPage/win/LayerBackedDrawingAreaWin.cpp:
              * WebProcess/WebPage/win/WebInspectorWin.cpp:
              * WebProcess/WebPage/win/WebPageWin.cpp:
              * WebProcess/WebProcess.cpp:
              * WebProcess/gtk/WebProcessGtk.cpp:
              * WebProcess/gtk/WebProcessMainGtk.cpp:
              * WebProcess/qt/WebProcessMainQt.cpp:
              * WebProcess/qt/WebProcessQt.cpp:
              * WebProcess/win/WebProcessMainWin.cpp:
              * WebProcess/win/WebProcessWin.cpp:
              * config.h: Copied from Source/WebKit2/WebKit2Prefix.h.
              * win/WebKit2Common.vsprops:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48183967
  14. 21 Jan, 2011 1 commit
    • darin@apple.com's avatar
      WebKit2: Implement showModalDialog · 3ed100bb
      darin@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=52855
      
      Reviewed by Dan Bernstein.
      
      Source/WebKit2: 
      
      * Shared/WebPageCreationParameters.h: Added canRunModal.
      
      * UIProcess/API/C/WKPage.h: Added a runModal function pointer to
      WKPageUIClient. Also removed a lot of redundant typedefs and added
      a new one, WKPageCallback, for callbacks without arguments or return
      values.
      
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPage::QWKPage): Added a runModal function pointer of 0.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::creationParameters): Set canRunModal
      based on return value of WebUIClient::canRunModal.
      
      * UIProcess/WebPageProxy.h: Added runModal.
      Calls WebUIClient::runModal.
      
      * UIProcess/WebPageProxy.messages.in: Added RunModal message.
      Also removed the periods from the phrases in the comments
      as Maciej requested a while back.
      
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::canRunModal): Added. Returns true or false
      based on whether a runModal function was supplied in the
      WKPageUIClient structure.
      (WebKit::WebUIClient::runModal): Added. Calls the runModal
      function from the WKPageUIClient structure.
      * UIProcess/WebUIClient.h: Declared the above functions.
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::canRunModal): Call through to WebPage.
      (WebKit::WebChromeClient::runModal): Ditto.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage): Initialize m_canRunModal based on the
      creation parameters. Initialize m_isRunningModal to false.
      (WebKit::WebPage::close): Stop the nested run loop if we are running modal.
      (WebKit::WebPage::runModal): Send a message to ask the UI process to run
      modal and then start a nested run loop. It gets stopped when the page is closed.
      * WebProcess/WebPage/WebPage.h: Defined the canRunModal function
      and declared the runModal function.
      
      Tools: 
      
      This fixes WebKitTestRunner to compile, but more work is probably
      needed to get it to pass the tests.
      
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::runModal): Added. Calls through to the
      platform-specific version of runModal.
      (WTR::TestController::createOtherPage): Changed to be a private
      static member function so it can refer to runModal, which is
      a private static member function.
      (WTR::TestController::initialize): Pass 0 for the runModal
      function since we don't need to run the main window modal.
      I suspect this is wrong and will need to change.
      * WebKitTestRunner/TestController.h: Added declarations for
      the functions added above.
      * WebKitTestRunner/mac/TestControllerMac.mm:
      (WTR::TestController::runModal): Added. Untested implementation.
      * WebKitTestRunner/qt/TestControllerQt.cpp:
      (WTR::TestController::runModal): Added.
      * WebKitTestRunner/win/TestControllerWin.cpp:
      (WTR::TestController::runModal): Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ed100bb
  15. 20 Jan, 2011 1 commit
    • ap@apple.com's avatar
      Reviewed by Darin Adler. · 02315226
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=52849
              Make window.print work with WebKit2
      
              * UIProcess/API/qt/qwkpage.cpp:
              (QWKPage::QWKPage):
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::printFrame):
              * UIProcess/WebPageProxy.h:
              * UIProcess/WebPageProxy.messages.in:
              * UIProcess/WebUIClient.cpp:
              (WebKit::WebUIClient::printFrame):
              * UIProcess/WebUIClient.h:
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::print):
              Just pass through deelagte call to a WebKit2 client.
      
              * UIProcess/API/C/WKPage.h: Also added "Callback" suffix to other printing related function
              types.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02315226
  16. 18 Jan, 2011 2 commits
    • andersca@apple.com's avatar
      2011-01-18 Anders Carlsson <andersca@apple.com> · 267e9fd7
      andersca@apple.com authored
              Reviewed by Darin Adler.
      
              Artifacts when scrolling with new drawing area
              https://bugs.webkit.org/show_bug.cgi?id=52682
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::scroll):
              When scrolling, we want the intersection of the scroll rect and clip rect.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      267e9fd7
    • andersca@apple.com's avatar
      Rename scrollDelta to scrollOffset everywhere. · 3ca0a74d
      andersca@apple.com authored
      Reviewed by Sam Weinig.
      
      * Shared/UpdateInfo.cpp:
      (WebKit::UpdateInfo::encode):
      (WebKit::UpdateInfo::decode):
      * Shared/UpdateInfo.h:
      * UIProcess/BackingStore.h:
      * UIProcess/mac/BackingStoreMac.mm:
      (WebKit::BackingStore::incorporateUpdate):
      (WebKit::BackingStore::scroll):
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::scroll):
      (WebKit::WebChromeClient::delegatedScrollRequested):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
      (WebKit::ChunkedUpdateDrawingArea::scroll):
      * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/DrawingAreaImpl.cpp:
      (WebKit::DrawingAreaImpl::scroll):
      (WebKit::DrawingAreaImpl::display):
      * WebProcess/WebPage/DrawingAreaImpl.h:
      * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
      (WebKit::LayerBackedDrawingArea::scroll):
      * WebProcess/WebPage/LayerBackedDrawingArea.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ca0a74d
  17. 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
  18. 12 Jan, 2011 1 commit
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · 09d9bd58
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Get rid of an unneeded parameter from DrawingArea::scroll
              https://bugs.webkit.org/show_bug.cgi?id=52336
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::scroll):
              * WebProcess/WebCoreSupport/WebChromeClient.h:
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
              (WebKit::ChunkedUpdateDrawingArea::scroll):
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
              * WebProcess/WebPage/DrawingArea.h:
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::scroll):
              * WebProcess/WebPage/DrawingAreaImpl.h:
              * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
              (WebKit::LayerBackedDrawingArea::scroll):
              * WebProcess/WebPage/LayerBackedDrawingArea.h:
              * WebProcess/WebPage/TiledDrawingArea.cpp:
              (WebKit::TiledDrawingArea::scroll):
              * WebProcess/WebPage/TiledDrawingArea.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      09d9bd58
  19. 05 Jan, 2011 1 commit
    • ap@apple.com's avatar
      2011-01-05 Alexey Proskuryakov <ap@apple.com> · 031b5ff9
      ap@apple.com authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=51903
              Tell UI process which subframe is largest
      
              * WebCore.exp.in: Exported FrameView::contentsSize().
      2011-01-05  Alexey Proskuryakov  <ap@apple.com>
      
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=51903
              Tell UI process which subframe is largest
      
              * UIProcess/WebPageProxy.h:
              (WebKit::WebPageProxy::frameSetLargestFrame):
              Remember largest frame in frameset pages.
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::frameDidBecomeFrameSet): Reset stored largest frame if main frame
              changes to a frameset or back.
              (WebKit::WebPageProxy::frameSetLargestFrameChanged): Store a new largest frame when notified
              of a change.
      
              * UIProcess/WebPageProxy.messages.in: Added FrameSetLargestFrameChanged.
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::area): Calculate area of a frame.
              (WebKit::findLargestFrameInFrameSet): Find largest first-level subframe in a frameset page.
              (WebKit::WebChromeClient::contentsSizeChanged): Recalculate largest frame, and notify UI
              process if it changed.
      
              * WebProcess/WebCoreSupport/WebChromeClient.h: Store the latest largest frame.
      
              * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::size):
              * WebProcess/WebPage/WebFrame.h:
              Expose frame size.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      031b5ff9
  20. 26 Dec, 2010 1 commit
    • andersca@apple.com's avatar
      Drawing area cleanup. Remove a bunch of redundant functions that just ended · d194c8ad
      andersca@apple.com authored
      up calling setNeedsDisplay.
      
      Reviewed by Sam Weinig.
      
      * UIProcess/DrawingAreaProxy.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::invalidateWindow):
      (WebKit::WebChromeClient::invalidateContentsAndWindow):
      (WebKit::WebChromeClient::invalidateContentsForSlowScroll):
      * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
      * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
      * WebProcess/WebPage/LayerBackedDrawingArea.h:
      * WebProcess/WebPage/TiledDrawingArea.cpp:
      * WebProcess/WebPage/TiledDrawingArea.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d194c8ad
  21. 23 Dec, 2010 1 commit
  22. 21 Dec, 2010 1 commit
    • andersca@apple.com's avatar
      2010-12-21 Anders Carlsson <andersca@apple.com> · d86d8421
      andersca@apple.com authored
              Reviewed by John Sullivan.
      
              Clicking missing plug-in text does not show a sheet
              https://bugs.webkit.org/show_bug.cgi?id=51403
      
              * WebCore.exp.in:
              Export symbols needed by WebKit2.
      
              * WebCore.xcodeproj/project.pbxproj:
              Make HTMLPlugInImageElement.h a private header.
      
              * html/HTMLPlugInImageElement.h:
              (WebCore::HTMLPlugInImageElement::serviceType):
              (WebCore::HTMLPlugInImageElement::url):
              Make these member functions public.
      2010-12-21  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by John Sullivan.
      
              Clicking missing plug-in text does not show a sheet
              https://bugs.webkit.org/show_bug.cgi?id=51403
      
              Update for changes to the WebPageUIClient.
      
              * MiniBrowser/mac/BrowserWindowController.m:
              (-[BrowserWindowController awakeFromNib]):
              * WebKitTestRunner/TestController.cpp:
              (WTR::createOtherPage):
              (WTR::TestController::initialize):
      2010-12-21  Anders Carlsson  <andersca@apple.com>
      
              Reviewed by John Sullivan.
      
              Clicking missing plug-in text does not show a sheet
              https://bugs.webkit.org/show_bug.cgi?id=51403
      
              * UIProcess/API/C/WKPage.h:
              Add missingPluginButtonClicked to WKPageUIClient.
      
              * UIProcess/WebPageProxy.cpp:        
              (WebKit::WebPageProxy::missingPluginButtonClicked):
              Call the WebUIClient member function.
      
              * UIProcess/WebPageProxy.messages.in:
              Add MissingPluginButtonClicked message.
      
              * UIProcess/WebUIClient.cpp:
              (WebKit::WebUIClient::missingPluginButtonClicked):
              Call the WKPageUIClient callback.
      
              * UIProcess/WebUIClient.h:
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::shouldMissingPluginMessageBeButton):
              Always return true for now.
      
              (WebKit::WebChromeClient::missingPluginButtonClicked):
              Send a MissingPluginButtonClicked message.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d86d8421
  23. 15 Dec, 2010 1 commit
    • weinig@apple.com's avatar
      WebKit2: Can't add files to an <input type=file> · 2e7a7cda
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=51087
      
      Reviewed by Anders Carlsson.
      
      WebCore: 
      
      Add exported function.
      
      * WebCore.exp.in:
      
      WebKit2: 
      
      * Scripts/webkit2/messages.py:
      Adds new types.
      
      * Shared/API/c/WKBase.h:
      Adds WKOpenPanelParametersRef and WKOpenPanelResultListenerRef.
      
      * Shared/APIObject.h:
      Adds TypeOpenPanelParameters and TypeOpenPanelResultListener.
      
      * Shared/WebOpenPanelParameters.cpp: Added.
      (WebKit::WebOpenPanelParameters::create):
      (WebKit::WebOpenPanelParameters::WebOpenPanelParameters):
      (WebKit::WebOpenPanelParameters::~WebOpenPanelParameters):
      (WebKit::WebOpenPanelParameters::Data::encode):
      (WebKit::WebOpenPanelParameters::Data::decode):
      * Shared/WebOpenPanelParameters.h: Added.
      (WebKit::WebOpenPanelParameters::allowMultipleFiles):
      (WebKit::WebOpenPanelParameters::type):
      Class representing options one can pass to open panel.
      
      * UIProcess/API/C/WKAPICast.h:
      Add casts for WebOpenPanelParameters and WebOpenPanelResultListenerProxy.
      
      * UIProcess/API/C/WKOpenPanelParameters.cpp: Added.
      (WKOpenPanelParametersGetTypeID):
      (WKOpenPanelParametersGetAllowsMultipleFiles):
      * UIProcess/API/C/WKOpenPanelParameters.h: Added.
      * UIProcess/API/C/WKOpenPanelResultListener.cpp: Added.
      (WKOpenPanelResultListenerGetTypeID):
      (WKOpenPanelResultListenerChooseFiles):
      (WKOpenPanelResultListenerCancel):
      * UIProcess/API/C/WKOpenPanelResultListener.h: Added.
      Add API wrappers.
      
      * UIProcess/API/C/WKPage.h:
      Add new UI callback, WKPageRunOpenPanelCallback.
      
      * UIProcess/API/C/WebKit2.h:
      Add includes for new API headers.
      
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPage::QWKPage):
      Stub out the runOpenPanel callback.
      
      * UIProcess/WebOpenPanelResultListenerProxy.cpp: Added.
      (WebKit::WebOpenPanelResultListenerProxy::WebOpenPanelResultListenerProxy):
      (WebKit::WebOpenPanelResultListenerProxy::~WebOpenPanelResultListenerProxy):
      (WebKit::WebOpenPanelResultListenerProxy::chooseFiles):
      (WebKit::WebOpenPanelResultListenerProxy::cancel):
      (WebKit::WebOpenPanelResultListenerProxy::invalidate):
      * UIProcess/WebOpenPanelResultListenerProxy.h: Added.
      (WebKit::WebOpenPanelResultListenerProxy::create):
      (WebKit::WebOpenPanelResultListenerProxy::type):
      Adds the listener used to choose files for <input type=file>
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::runOpenPanel):
      (WebKit::WebPageProxy::didChooseFilesForOpenPanel):
      (WebKit::WebPageProxy::didCancelForOpenPanel):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runOpenPanel):
      * UIProcess/WebUIClient.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::runOpenPanel):
      * WebProcess/WebPage/WebOpenPanelResultListener.cpp: Added.
      (WebKit::WebOpenPanelResultListener::create):
      (WebKit::WebOpenPanelResultListener::WebOpenPanelResultListener):
      (WebKit::WebOpenPanelResultListener::~WebOpenPanelResultListener):
      (WebKit::WebOpenPanelResultListener::didChooseFiles):
      * WebProcess/WebPage/WebOpenPanelResultListener.h: Added.
      (WebKit::WebOpenPanelResultListener::disconnectFromPage):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::close):
      (WebKit::WebPage::setActiveOpenPanelResultListener):
      (WebKit::WebPage::didChooseFilesForOpenPanel):
      (WebKit::WebPage::didCancelForOpenPanel):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::activeOpenPanelResultListener):
      * WebProcess/WebPage/WebPage.messages.in:
      Pipe through file choosing.
      
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      Add new files.
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (runOpenPanel):
      (-[BrowserWindowController awakeFromNib]):
      Add simple implementation of runOpenPanel callback.
      
      * MiniBrowser/win/BrowserView.cpp:
      (BrowserView::create):
      * WebKitTestRunner/TestController.cpp:
      (WTR::createOtherPage):
      (WTR::TestController::initialize):
      Stub out runOpenPanel callback. 
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74139 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e7a7cda
  24. 13 Dec, 2010 1 commit
  25. 08 Dec, 2010 3 commits
    • weinig@apple.com's avatar
      Add WebKit2 Preference for TabsToLinks behavior. · 2cabd2a2
      weinig@apple.com authored
      <rdar://problem/8664263>
      
      Reviewed by Gavin Barraclough.
      
      * Shared/WebPreferencesStore.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesSetTabsToLinks):
      (WKPreferencesGetTabsToLinks):
      * UIProcess/API/C/WKPreferences.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::tabsToLinks):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::updatePreferences):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::tabsToLinks):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2cabd2a2
    • cmarrin@apple.com's avatar
      2010-12-08 Chris Marrin <cmarrin@apple.com> · b7d601f2
      cmarrin@apple.com authored
              Reviewed by Simon Fraser.
      
              Share code between Mac (CA) and Windows (CACF) GraphicsLayer implementations
              https://bugs.webkit.org/show_bug.cgi?id=49388
      
              Added copy constructors and casting operators to go between 
              TransformationMatrix and CATransform3D. Also added a copy
              constructor to go from CGAffineTransform to TransformationMatrix.
              Used these new methods to clean up platform CA code. This will
              make it easier to port to Windows.
      
              I also fixed a couple of build issues found when trying out a 
              Windows build.
      
              This is a resubmission of changesets r73477 and r73483 with a 
              fix for the SL build. The failure was because TransformationMatrix
              included QuartzCore/CATransform3D.h which brought in some system
              libraries, including Quickdraw, which has a definition for
              'Cursor' which clashed with WebCore's 'Cursor' class. So I had
              to qualify its use in WebChromeClient.cpp in WebKit2.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7d601f2
    • jberlin@webkit.org's avatar
      WebKit2: Implement WebChromeClient::exceededDatabaseQuota · b646cd5e
      jberlin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=50656
      
      Reviewed by Adam Roben.
      
      WebCore: 
      
      * WebCore.exp.in:
      Export the symbol for SecurityOrigin::databaseIdentifier.
      
      WebKit2: 
      
      The exceededDatabaseQuota call from the WebProcess to the UIProcess needs to be synchronous
      because the new quota is checked directly after exceededDatabaseQuota returns in order to
      determine if the new Database can be created.
      
      Pass all of the details from the WebProcess to the UIProcess in order to inform the
      decision in the UIProcess about the new quota. In WebKit1, these details were
      fetched through an additional call to the API detailsForDatabase (which is infeasible in
      WebKit2 since exceededDatabaseQuota is a synchronous call).
      
      * Platform/CoreIPC/HandleMessage.h:
      (CoreIPC::callMemberFunction):
      Add a version that takes 7 parameters.
      
      * UIProcess/API/C/WKPage.h:
      
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPage::QWKPage):
      Indicate that exceededDatabaseQuota is not implemented.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::exceededDatabaseQuota):
      Call the UIClient's exceededDatabaseQuota
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::exceededDatabaseQuota):
      If the client does not implement exceededDatabaseQuota, return a the current quota.
      * UIProcess/WebUIClient.h:
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::exceededDatabaseQuota):
      Send a synchronous message to the UIProcess to ask for the new quota for the origin for the
      given frame.
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (-[BrowserWindowController awakeFromNib]):
      Indicate that exceededDatabaseQuota is not implemented.
      * MiniBrowser/win/BrowserView.cpp:
      (BrowserView::create):
      Ditto.
      * WebKitTestRunner/TestController.cpp:
      (WTR::createOtherPage):
      Ditto.
      (WTR::TestController::initialize):
      Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b646cd5e
  26. 16 Nov, 2010 1 commit
    • andreas.kling@nokia.com's avatar
      2010-11-16 Kenneth Rohde Christiansen <kenneth@webkit.org> · 798f27e9
      andreas.kling@nokia.com authored
              Reviewed by Andreas Kling.
      
              [WK2][Qt] Expose resizes-to-contents mode in WebKit2
      
              Only available with ENABLE(TILED_BACKING_STORE)
      
              Based on a patch by Antti Koivisto.
      
              * UIProcess/API/qt/qwkpage.cpp:
              (QWKPage::setResizesToContentsUsingLayoutSize):
              * UIProcess/API/qt/qwkpage.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::setResizesToContentsUsingLayoutSize):
              * UIProcess/WebPageProxy.h:
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::contentsSizeChanged):
              * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::setSize):
              (WebKit::WebPage::setResizesToContentsUsingLayoutSize):
              (WebKit::WebPage::resizeToContentsIfNeeded):
              * WebProcess/WebPage/WebPage.h:
              (WebKit::WebPage::resizesToContentsEnabled):
              (WebKit::WebPage::resizesToContentsLayoutSize):
              * WebProcess/WebPage/WebPage.messages.in:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      798f27e9
  27. 08 Nov, 2010 3 commits
  28. 04 Nov, 2010 1 commit
    • andreas.kling@nokia.com's avatar
      2010-11-04 Kenneth Rohde Christiansen <kenneth@webkit.org> · 9667f50d
      andreas.kling@nokia.com authored
              Reviewed by David Hyatt.
      
              Delegate scrolling via a separate method
              https://bugs.webkit.org/show_bug.cgi?id=48988
      
              Implement delegatedScrollRequested and make it emit the
              scrollRequested signal for Qt.
      
              * WebCoreSupport/ChromeClientQt.cpp:
              (WebCore::ChromeClientQt::delegatedScrollRequested):
              * WebCoreSupport/ChromeClientQt.h:
      2010-11-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
      
              Reviewed by David Hyatt.
      
              Delegate scrolling via a separate method
              https://bugs.webkit.org/show_bug.cgi?id=48988
      
              Add a delegatedScrollRequested method to HostWindow for delegating
              scrolling to the view. This is only used in conjunction with tiling,
              and is ifdef'ed.
      
              * page/Chrome.cpp:
              (WebCore::Chrome::delegatedScrollRequested):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * platform/HostWindow.h:
              * platform/ScrollView.cpp:
              (WebCore::ScrollView::setScrollPosition):
      2010-11-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
      
              Reviewed by David Hyatt.
      
              Delegate scrolling via a separate method
              https://bugs.webkit.org/show_bug.cgi?id=48988
      
              Add delegatedScrollRequested method to WebChromeClient,
              which is only used in conjunging with tiling, and thus ifdef'ed.
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::delegatedScrollRequested):
              * WebProcess/WebCoreSupport/WebChromeClient.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9667f50d