1. 02 Jan, 2014 1 commit
    • barraclough@apple.com's avatar
      Source/WebCore: [iOS] Tapping any link crashes in WebCore::EventHandler::mouseMoved() · 2f3625cd
      barraclough@apple.com authored
      (also crashes when scrolling certain sites)
      https://bugs.webkit.org/show_bug.cgi?id=126401
      <rdar://problem/15739334>
      
      Patch by Daniel Bates <dabates@apple.com> on 2014-01-02
      Reviewed by Tim Horton.
      
      * page/ios/EventHandlerIOS.mm:
      (WebCore::currentEventSlot): Make the shared variable have static-storage duration.
      
      Source/WebKit/mac: Remove WindowIsVisible
      https://bugs.webkit.org/show_bug.cgi?id=126270
      
      Reviewed by Tim Horton.
      
      We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
      The latter detects that the content is hidden in fewer cases than the former, and as such, the
      former is always preferable.
      
      This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
      Plugin::windowVisibilityChanged.
      
      * WebView/WebView.mm:
      (-[WebView _windowWillOrderOnScreen:]):
      (-[WebView _windowWillOrderOffScreen:]):
          - rename ContainingWindowIsVisible -> ContentIsVisible.
      
      Source/WebKit2: Remove WindowIsVisible
      https://bugs.webkit.org/show_bug.cgi?id=126270
      
      Reviewed by Tim Horton.
      
      We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
      The latter detects that the content is hidden in fewer cases than the former, and as such, the
      former is always preferable.
      
      This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
      Plugin::windowVisibilityChanged.
      
      * Shared/ViewState.h:
          - remove WindowIsVisible.
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
          - remove isWindowVisible.
      * UIProcess/API/mac/WKView.mm:
      (-[WKView viewDidMoveToWindow]):
      (-[WKView _windowDidMiniaturize:]):
      (-[WKView _windowDidDeminiaturize:]):
      (-[WKView _windowDidOrderOffScreen:]):
      (-[WKView _windowDidOrderOnScreen:]):
          - remove ViewState::WindowIsVisible.
      * UIProcess/PageClient.h:
          - remove isWindowVisible.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::updateViewState):
          - remove handling of ViewState::WindowIsVisible.
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::setIsVisible):
      (WebKit::PluginView::didInitializePlugin):
      * WebProcess/Plugins/PluginView.h:
          - setWindowIsVisible -> setIsVisible.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::setViewIsVisible):
      (WebKit::WebPage::setViewState):
      (WebKit::WebPage::windowAndWebPageAreFocused):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::isVisible):
          - remove m_windowIsVisible, setWindowIsVisible (implementation moved to setViewIsVisible).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2f3625cd
  2. 30 Dec, 2013 1 commit
    • andersca@apple.com's avatar
      Move code over to the IPC namespace. · 69388f0a
      andersca@apple.com authored
      Rubber-stamped by Andreas Kling.
      
      * DatabaseProcess/DatabaseProcess.cpp:
      (WebKit::DatabaseProcess::initializeConnection):
      (WebKit::DatabaseProcess::didClose):
      (WebKit::DatabaseProcess::didReceiveInvalidMessage):
      (WebKit::DatabaseProcess::createDatabaseToWebProcessConnection):
      * DatabaseProcess/DatabaseProcess.h:
      * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
      (WebKit::DatabaseToWebProcessConnection::create):
      (WebKit::DatabaseToWebProcessConnection::DatabaseToWebProcessConnection):
      (WebKit::DatabaseToWebProcessConnection::didReceiveMessage):
      (WebKit::DatabaseToWebProcessConnection::didClose):
      (WebKit::DatabaseToWebProcessConnection::didReceiveInvalidMessage):
      * DatabaseProcess/DatabaseToWebProcessConnection.h:
      (WebKit::DatabaseToWebProcessConnection::connection):
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
      (WebKit::DatabaseProcessIDBConnection::messageSenderConnection):
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
      * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
      (WebKit::AsynchronousNetworkLoaderClient::willSendRequest):
      (WebKit::AsynchronousNetworkLoaderClient::canAuthenticateAgainstProtectionSpace):
      (WebKit::AsynchronousNetworkLoaderClient::didReceiveBuffer):
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      (WebKit::NetworkConnectionToWebProcess::create):
      (WebKit::NetworkConnectionToWebProcess::NetworkConnectionToWebProcess):
      (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
      (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
      (WebKit::NetworkConnectionToWebProcess::didClose):
      (WebKit::NetworkConnectionToWebProcess::didReceiveInvalidMessage):
      * NetworkProcess/NetworkConnectionToWebProcess.h:
      (WebKit::NetworkConnectionToWebProcess::connection):
      * NetworkProcess/NetworkProcess.cpp:
      (WebKit::NetworkProcess::didReceiveMessage):
      (WebKit::NetworkProcess::didReceiveSyncMessage):
      (WebKit::NetworkProcess::didClose):
      (WebKit::NetworkProcess::didReceiveInvalidMessage):
      (WebKit::NetworkProcess::downloadProxyConnection):
      (WebKit::NetworkProcess::initializeConnection):
      (WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
      * NetworkProcess/NetworkProcess.h:
      * NetworkProcess/NetworkResourceLoader.cpp:
      (WebKit::NetworkResourceLoader::messageSenderConnection):
      * NetworkProcess/NetworkResourceLoader.h:
      * NetworkProcess/mac/DiskCacheMonitor.h:
      * NetworkProcess/mac/DiskCacheMonitor.mm:
      (WebKit::DiskCacheMonitor::messageSenderConnection):
      * Platform/IPC/ArgumentCoder.h:
      * Platform/IPC/ArgumentCoders.cpp:
      * Platform/IPC/ArgumentCoders.h:
      * Platform/IPC/ArgumentDecoder.cpp:
      * Platform/IPC/ArgumentDecoder.h:
      * Platform/IPC/ArgumentEncoder.cpp:
      * Platform/IPC/ArgumentEncoder.h:
      * Platform/IPC/Arguments.h:
      * Platform/IPC/Attachment.cpp:
      * Platform/IPC/Attachment.h:
      * Platform/IPC/Connection.cpp:
      (IPC::Connection::Connection):
      * Platform/IPC/Connection.h:
      * Platform/IPC/HandleMessage.h:
      * Platform/IPC/MessageDecoder.cpp:
      * Platform/IPC/MessageDecoder.h:
      * Platform/IPC/MessageEncoder.cpp:
      * Platform/IPC/MessageEncoder.h:
      * Platform/IPC/MessageFlags.h:
      * Platform/IPC/MessageReceiver.h:
      * Platform/IPC/MessageReceiverMap.cpp:
      * Platform/IPC/MessageReceiverMap.h:
      * Platform/IPC/mac/ConnectionMac.cpp:
      * Platform/IPC/mac/ImportanceAssertion.h:
      * Platform/IPC/mac/MachPort.h:
      * Platform/SharedMemory.h:
      * Platform/mac/SharedMemoryMac.cpp:
      (WebKit::SharedMemory::Handle::encode):
      (WebKit::SharedMemory::Handle::decode):
      * PluginProcess/PluginControllerProxy.cpp:
      (WebKit::PluginControllerProxy::streamDidReceiveData):
      (WebKit::PluginControllerProxy::manualStreamDidReceiveData):
      * PluginProcess/PluginControllerProxy.h:
      * PluginProcess/PluginControllerProxy.messages.in:
      * PluginProcess/PluginCreationParameters.cpp:
      (WebKit::PluginCreationParameters::encode):
      (WebKit::PluginCreationParameters::decode):
      * PluginProcess/PluginCreationParameters.h:
      * PluginProcess/PluginProcess.cpp:
      (WebKit::PluginProcess::didReceiveMessage):
      (WebKit::PluginProcess::didClose):
      (WebKit::PluginProcess::didReceiveInvalidMessage):
      (WebKit::PluginProcess::createWebProcessConnection):
      * PluginProcess/PluginProcess.h:
      * PluginProcess/WebProcessConnection.cpp:
      (WebKit::WebProcessConnection::create):
      (WebKit::WebProcessConnection::WebProcessConnection):
      (WebKit::WebProcessConnection::setGlobalException):
      (WebKit::WebProcessConnection::didReceiveMessage):
      (WebKit::WebProcessConnection::didReceiveSyncMessage):
      (WebKit::WebProcessConnection::didClose):
      (WebKit::WebProcessConnection::didReceiveInvalidMessage):
      * PluginProcess/WebProcessConnection.h:
      (WebKit::WebProcessConnection::connection):
      * PluginProcess/mac/PluginControllerProxyMac.mm:
      (WebKit::PluginControllerProxy::setComplexTextInputState):
      * Scripts/webkit2/messages.py:
      (arguments_type_old):
      (message_to_struct_declaration):
      (forward_declarations_and_headers):
      (generate_messages_header):
      (async_message_statement):
      (sync_message_statement):
      (headers_for_type):
      (generate_message_handler):
      * Scripts/webkit2/messages_unittest.py:
      (IPC):
      (std):
      * Shared/API/Cocoa/RemoteObjectRegistry.h:
      * Shared/APIGeometry.cpp:
      (API::Point::encode):
      (API::Point::decode):
      (API::Size::encode):
      (API::Size::decode):
      (API::Rect::encode):
      (API::Rect::decode):
      * Shared/APIGeometry.h:
      * Shared/APINumber.h:
      (API::Number::encode):
      (API::Number::decode):
      * Shared/Authentication/AuthenticationManager.h:
      * Shared/ChildProcess.cpp:
      (WebKit::didCloseOnConnectionWorkQueue):
      (WebKit::ChildProcess::initialize):
      (WebKit::ChildProcess::initializeConnection):
      (WebKit::ChildProcess::addMessageReceiver):
      (WebKit::ChildProcess::removeMessageReceiver):
      (WebKit::ChildProcess::messageSenderConnection):
      * Shared/ChildProcess.h:
      (WebKit::ChildProcess::parentProcessConnection):
      (WebKit::ChildProcess::messageReceiverMap):
      * Shared/ChildProcessProxy.cpp:
      (WebKit::ChildProcessProxy::fromConnection):
      (WebKit::ChildProcessProxy::sendMessage):
      (WebKit::ChildProcessProxy::addMessageReceiver):
      (WebKit::ChildProcessProxy::removeMessageReceiver):
      (WebKit::ChildProcessProxy::dispatchMessage):
      (WebKit::ChildProcessProxy::dispatchSyncMessage):
      (WebKit::ChildProcessProxy::didFinishLaunching):
      (WebKit::ChildProcessProxy::connectionWillOpen):
      (WebKit::ChildProcessProxy::connectionWillClose):
      * Shared/ChildProcessProxy.h:
      (WebKit::ChildProcessProxy::connection):
      (WebKit::ChildProcessProxy::send):
      * Shared/ChildProcessSupplement.h:
      (WebKit::ChildProcessSupplement::initializeConnection):
      * Shared/ConnectionStack.h:
      (WebKit::ConnectionStack::current):
      (WebKit::ConnectionStack::CurrentConnectionPusher::CurrentConnectionPusher):
      * Shared/CoreIPCSupport/WebContextMessageKinds.h:
      (WebContextLegacyMessages::messageReceiverName):
      (WebContextLegacyMessages::postMessageMessageName):
      (WebContextLegacyMessages::postSynchronousMessageMessageName):
      * Shared/Databases/DatabaseProcessCreationParameters.cpp:
      (WebKit::DatabaseProcessCreationParameters::encode):
      (WebKit::DatabaseProcessCreationParameters::decode):
      * Shared/Databases/DatabaseProcessCreationParameters.h:
      * Shared/DictionaryPopupInfo.cpp:
      (WebKit::DictionaryPopupInfo::encode):
      (WebKit::DictionaryPopupInfo::decode):
      * Shared/DictionaryPopupInfo.h:
      * Shared/Downloads/Download.cpp:
      (WebKit::Download::didFail):
      (WebKit::Download::didCancel):
      (WebKit::Download::messageSenderConnection):
      * Shared/Downloads/Download.h:
      * Shared/Downloads/DownloadManager.cpp:
      (WebKit::DownloadManager::downloadProxyConnection):
      * Shared/Downloads/DownloadManager.h:
      * Shared/Downloads/mac/DownloadMac.mm:
      (WebKit::Download::cancel):
      (-[WKDownloadAsDelegate download:didFailWithError:]):
      * Shared/EditorState.cpp:
      (WebKit::EditorState::encode):
      (WebKit::EditorState::decode):
      * Shared/EditorState.h:
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
      (WebKit::ChildProcessMainDelegate::getConnectionIdentifier):
      * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
      * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm:
      (WebKit::XPCServiceInitializerDelegate::getConnectionIdentifier):
      * Shared/FileAPI/BlobRegistrationData.cpp:
      (WebKit::BlobRegistrationData::encode):
      (WebKit::BlobRegistrationData::decode):
      * Shared/FileAPI/BlobRegistrationData.h:
      * Shared/FontInfo.cpp:
      (WebKit::FontInfo::encode):
      (WebKit::FontInfo::decode):
      * Shared/FontInfo.h:
      * Shared/LayerTreeContext.h:
      * Shared/Network/CustomProtocols/CustomProtocolManager.h:
      * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
      * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
      (WebKit::CustomProtocolManager::initializeConnection):
      (WebKit::CustomProtocolManager::didLoadData):
      * Shared/Network/NetworkProcessCreationParameters.cpp:
      (WebKit::NetworkProcessCreationParameters::encode):
      (WebKit::NetworkProcessCreationParameters::decode):
      * Shared/Network/NetworkProcessCreationParameters.h:
      * Shared/Network/NetworkResourceLoadParameters.cpp:
      (WebKit::NetworkResourceLoadParameters::encode):
      (WebKit::NetworkResourceLoadParameters::decode):
      * Shared/Network/NetworkResourceLoadParameters.h:
      * Shared/OriginAndDatabases.cpp:
      (WebKit::OriginAndDatabases::encode):
      (WebKit::OriginAndDatabases::decode):
      * Shared/OriginAndDatabases.h:
      * Shared/PlatformPopupMenuData.cpp:
      (WebKit::PlatformPopupMenuData::encode):
      (WebKit::PlatformPopupMenuData::decode):
      * Shared/PlatformPopupMenuData.h:
      * Shared/Plugins/NPIdentifierData.cpp:
      (WebKit::NPIdentifierData::encode):
      (WebKit::NPIdentifierData::decode):
      * Shared/Plugins/NPIdentifierData.h:
      * Shared/Plugins/NPObjectMessageReceiver.h:
      * Shared/Plugins/NPRemoteObjectMap.cpp:
      (WebKit::NPRemoteObjectMap::create):
      (WebKit::NPRemoteObjectMap::NPRemoteObjectMap):
      (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
      * Shared/Plugins/NPRemoteObjectMap.h:
      (WebKit::NPRemoteObjectMap::connection):
      * Shared/Plugins/NPVariantData.cpp:
      (WebKit::NPVariantData::encode):
      (WebKit::NPVariantData::decode):
      * Shared/Plugins/NPVariantData.h:
      * Shared/Plugins/PluginProcessCreationParameters.cpp:
      (WebKit::PluginProcessCreationParameters::encode):
      (WebKit::PluginProcessCreationParameters::decode):
      * Shared/Plugins/PluginProcessCreationParameters.h:
      * Shared/PrintInfo.cpp:
      (WebKit::PrintInfo::encode):
      (WebKit::PrintInfo::decode):
      * Shared/PrintInfo.h:
      * Shared/SandboxExtension.h:
      (WebKit::SandboxExtension::Handle::encode):
      (WebKit::SandboxExtension::Handle::decode):
      (WebKit::SandboxExtension::HandleArray::encode):
      (WebKit::SandboxExtension::HandleArray::decode):
      * Shared/SecurityOriginData.cpp:
      (WebKit::SecurityOriginData::encode):
      (WebKit::SecurityOriginData::decode):
      * Shared/SecurityOriginData.h:
      * Shared/SessionState.cpp:
      (WebKit::SessionState::encode):
      (WebKit::SessionState::decode):
      * Shared/SessionState.h:
      * Shared/ShareableBitmap.cpp:
      (WebKit::ShareableBitmap::Handle::encode):
      (WebKit::ShareableBitmap::Handle::decode):
      * Shared/ShareableBitmap.h:
      * Shared/ShareableResource.cpp:
      (WebKit::ShareableResource::Handle::encode):
      (WebKit::ShareableResource::Handle::decode):
      * Shared/ShareableResource.h:
      * Shared/StatisticsData.cpp:
      (WebKit::StatisticsData::encode):
      (WebKit::StatisticsData::decode):
      * Shared/StatisticsData.h:
      * Shared/TextCheckerState.h:
      * Shared/UpdateInfo.cpp:
      (WebKit::UpdateInfo::encode):
      (WebKit::UpdateInfo::decode):
      * Shared/UpdateInfo.h:
      * Shared/UserData.cpp:
      (WebKit::UserData::encode):
      (WebKit::UserData::decode):
      * Shared/UserData.h:
      * Shared/UserMessageCoders.h:
      (WebKit::UserMessageEncoder::baseEncode):
      (WebKit::UserMessageDecoder::baseDecode):
      * Shared/WebBackForwardListItem.cpp:
      (WebKit::WebBackForwardListItem::encode):
      (WebKit::WebBackForwardListItem::decode):
      * Shared/WebBackForwardListItem.h:
      * Shared/WebConnection.cpp:
      (WebKit::WebConnection::postMessage):
      (WebKit::WebConnection::didReceiveMessage):
      (WebKit::WebConnection::handleMessage):
      * Shared/WebConnection.h:
      * Shared/WebContextMenuItemData.cpp:
      (WebKit::WebContextMenuItemData::encode):
      (WebKit::WebContextMenuItemData::decode):
      * Shared/WebContextMenuItemData.h:
      * Shared/WebCoreArgumentCoders.cpp:
      * Shared/WebCoreArgumentCoders.h:
      * Shared/WebEvent.cpp:
      (WebKit::WebEvent::encode):
      (WebKit::WebEvent::decode):
      * Shared/WebEvent.h:
      * Shared/WebGeolocationPosition.cpp:
      (WebKit::WebGeolocationPosition::Data::encode):
      (WebKit::WebGeolocationPosition::Data::decode):
      * Shared/WebGeolocationPosition.h:
      * Shared/WebHitTestResult.cpp:
      (WebKit::WebHitTestResult::Data::encode):
      (WebKit::WebHitTestResult::Data::decode):
      * Shared/WebHitTestResult.h:
      * Shared/WebKeyboardEvent.cpp:
      (WebKit::WebKeyboardEvent::encode):
      (WebKit::WebKeyboardEvent::decode):
      * Shared/WebMouseEvent.cpp:
      (WebKit::WebMouseEvent::encode):
      (WebKit::WebMouseEvent::decode):
      * Shared/WebNavigationDataStore.h:
      (WebKit::WebNavigationDataStore::encode):
      (WebKit::WebNavigationDataStore::decode):
      * Shared/WebPageCreationParameters.cpp:
      (WebKit::WebPageCreationParameters::encode):
      (WebKit::WebPageCreationParameters::decode):
      * Shared/WebPageCreationParameters.h:
      * Shared/WebPageGroupData.cpp:
      (WebKit::WebPageGroupData::encode):
      (WebKit::WebPageGroupData::decode):
      * Shared/WebPageGroupData.h:
      * Shared/WebPlatformTouchPoint.cpp:
      (WebKit::WebPlatformTouchPoint::encode):
      (WebKit::WebPlatformTouchPoint::decode):
      * Shared/WebPopupItem.cpp:
      (WebKit::WebPopupItem::encode):
      (WebKit::WebPopupItem::decode):
      * Shared/WebPopupItem.h:
      * Shared/WebPreferencesStore.cpp:
      (WebKit::WebPreferencesStore::encode):
      (WebKit::WebPreferencesStore::decode):
      * Shared/WebPreferencesStore.h:
      * Shared/WebProcessCreationParameters.cpp:
      (WebKit::WebProcessCreationParameters::encode):
      (WebKit::WebProcessCreationParameters::decode):
      * Shared/WebProcessCreationParameters.h:
      * Shared/WebSerializedScriptValue.h:
      (WebKit::WebSerializedScriptValue::dataReference):
      * Shared/WebTouchEvent.cpp:
      (WebKit::WebTouchEvent::encode):
      (WebKit::WebTouchEvent::decode):
      * Shared/WebWheelEvent.cpp:
      (WebKit::WebWheelEvent::encode):
      (WebKit::WebWheelEvent::decode):
      * Shared/cf/ArgumentCodersCF.cpp:
      (IPC::encode):
      (IPC::decode):
      * Shared/cf/ArgumentCodersCF.h:
      * Shared/mac/ArgumentCodersMac.h:
      * Shared/mac/ArgumentCodersMac.mm:
      (IPC::encode):
      (IPC::decode):
      * Shared/mac/AttributedString.h:
      * Shared/mac/AttributedString.mm:
      (WebKit::AttributedString::encode):
      (WebKit::AttributedString::decode):
      * Shared/mac/ColorSpaceData.h:
      * Shared/mac/ColorSpaceData.mm:
      (WebKit::ColorSpaceData::encode):
      (WebKit::ColorSpaceData::decode):
      * Shared/mac/LayerTreeContextMac.mm:
      (WebKit::LayerTreeContext::encode):
      (WebKit::LayerTreeContext::decode):
      * Shared/mac/ObjCObjectGraphCoders.h:
      * Shared/mac/ObjCObjectGraphCoders.mm:
      (WebKit::ObjCObjectGraphEncoder::baseEncode):
      (WebKit::ObjCObjectGraphDecoder::baseDecode):
      (WebKit::WebContextObjCObjectGraphEncoderImpl::encode):
      (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
      (WebKit::InjectedBundleObjCObjectGraphEncoderImpl::encode):
      (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
      (WebKit::WebContextObjCObjectGraphEncoder::encode):
      (WebKit::WebContextObjCObjectGraphDecoder::decode):
      (WebKit::InjectedBundleObjCObjectGraphEncoder::encode):
      (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
      * Shared/mac/RemoteLayerBackingStore.h:
      * Shared/mac/RemoteLayerBackingStore.mm:
      (RemoteLayerBackingStore::encode):
      (RemoteLayerBackingStore::decode):
      * Shared/mac/RemoteLayerTreeTransaction.h:
      * Shared/mac/RemoteLayerTreeTransaction.mm:
      (WebKit::RemoteLayerTreeTransaction::LayerCreationProperties::encode):
      (WebKit::RemoteLayerTreeTransaction::LayerCreationProperties::decode):
      (WebKit::RemoteLayerTreeTransaction::LayerProperties::encode):
      (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
      (WebKit::RemoteLayerTreeTransaction::encode):
      (WebKit::RemoteLayerTreeTransaction::decode):
      * Shared/mac/SandboxExtensionMac.mm:
      (WebKit::SandboxExtension::Handle::encode):
      (WebKit::SandboxExtension::Handle::decode):
      (WebKit::SandboxExtension::HandleArray::encode):
      (WebKit::SandboxExtension::HandleArray::decode):
      * Shared/mac/SecItemRequestData.cpp:
      (WebKit::SecItemRequestData::encode):
      (WebKit::SecItemRequestData::decode):
      * Shared/mac/SecItemRequestData.h:
      * Shared/mac/SecItemResponseData.cpp:
      (WebKit::SecItemResponseData::encode):
      (WebKit::SecItemResponseData::decode):
      * Shared/mac/SecItemResponseData.h:
      * Shared/mac/SecItemShim.cpp:
      (WebKit::SecItemShim::initializeConnection):
      * Shared/mac/SecItemShim.h:
      * Shared/mac/WebCoreArgumentCodersMac.mm:
      (IPC::ArgumentCoder<ResourceRequest>::encodePlatformData):
      (IPC::ArgumentCoder<ResourceRequest>::decodePlatformData):
      (IPC::ArgumentCoder<ResourceResponse>::encodePlatformData):
      (IPC::ArgumentCoder<ResourceResponse>::decodePlatformData):
      (IPC::ArgumentCoder<CertificateInfo>::encode):
      (IPC::ArgumentCoder<CertificateInfo>::decode):
      (IPC::ArgumentCoder<ResourceError>::encodePlatformData):
      (IPC::ArgumentCoder<ResourceError>::decodePlatformData):
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::accessibilityWebProcessTokenReceived):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _accessibilityRegisterUIProcessTokens]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
      (WebKit::AuthenticationChallengeProxy::AuthenticationChallengeProxy):
      * UIProcess/Authentication/AuthenticationChallengeProxy.h:
      (WebKit::AuthenticationChallengeProxy::create):
      * UIProcess/Databases/DatabaseProcessProxy.cpp:
      (WebKit::DatabaseProcessProxy::connectionWillOpen):
      (WebKit::DatabaseProcessProxy::connectionWillClose):
      (WebKit::DatabaseProcessProxy::getDatabaseProcessConnection):
      (WebKit::DatabaseProcessProxy::didClose):
      (WebKit::DatabaseProcessProxy::didReceiveInvalidMessage):
      (WebKit::DatabaseProcessProxy::didCreateDatabaseToWebProcessConnection):
      (WebKit::DatabaseProcessProxy::didFinishLaunching):
      * UIProcess/Databases/DatabaseProcessProxy.h:
      * UIProcess/Databases/DatabaseProcessProxy.messages.in:
      * UIProcess/Downloads/DownloadProxy.cpp:
      (WebKit::createData):
      (WebKit::DownloadProxy::didFail):
      (WebKit::DownloadProxy::didCancel):
      * UIProcess/Downloads/DownloadProxy.h:
      * UIProcess/Downloads/DownloadProxy.messages.in:
      * UIProcess/DrawingAreaProxy.h:
      * UIProcess/Launcher/ProcessLauncher.cpp:
      (WebKit::ProcessLauncher::didFinishLaunchingProcess):
      * UIProcess/Launcher/ProcessLauncher.h:
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      (WebKit::connectToService):
      (WebKit::tryPreexistingProcess):
      (WebKit::createProcess):
      * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
      * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
      (-[WKCustomProtocolLoader connection:didReceiveData:]):
      * UIProcess/Network/NetworkProcessProxy.cpp:
      (WebKit::NetworkProcessProxy::connectionWillOpen):
      (WebKit::NetworkProcessProxy::connectionWillClose):
      (WebKit::NetworkProcessProxy::getNetworkProcessConnection):
      (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
      (WebKit::NetworkProcessProxy::didReceiveMessage):
      (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
      (WebKit::NetworkProcessProxy::didClose):
      (WebKit::NetworkProcessProxy::didReceiveInvalidMessage):
      (WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess):
      (WebKit::NetworkProcessProxy::didFinishLaunching):
      * UIProcess/Network/NetworkProcessProxy.h:
      * UIProcess/Network/NetworkProcessProxy.messages.in:
      * UIProcess/Notifications/WebNotification.h:
      * UIProcess/PageClient.h:
      * UIProcess/Plugins/PluginProcessManager.h:
      * UIProcess/Plugins/PluginProcessProxy.cpp:
      (WebKit::PluginProcessProxy::getPluginProcessConnection):
      (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
      (WebKit::PluginProcessProxy::didClose):
      (WebKit::PluginProcessProxy::didReceiveInvalidMessage):
      (WebKit::PluginProcessProxy::didFinishLaunching):
      (WebKit::PluginProcessProxy::didCreateWebProcessConnection):
      * UIProcess/Plugins/PluginProcessProxy.h:
      * UIProcess/Plugins/PluginProcessProxy.messages.in:
      * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
      (WebKit::PluginProcessProxy::platformInitializePluginProcess):
      * UIProcess/Storage/StorageManager.cpp:
      (WebKit::StorageManager::StorageArea::addListener):
      (WebKit::StorageManager::StorageArea::removeListener):
      (WebKit::StorageManager::StorageArea::setItem):
      (WebKit::StorageManager::StorageArea::removeItem):
      (WebKit::StorageManager::StorageArea::clear):
      (WebKit::StorageManager::StorageArea::dispatchEvents):
      (WebKit::StorageManager::SessionStorageNamespace::allowedConnection):
      (WebKit::StorageManager::SessionStorageNamespace::create):
      (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
      (WebKit::StorageManager::SessionStorageNamespace::setAllowedConnection):
      (WebKit::StorageManager::createSessionStorageNamespace):
      (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnection):
      (WebKit::StorageManager::processWillCloseConnection):
      (WebKit::StorageManager::createLocalStorageMap):
      (WebKit::StorageManager::createSessionStorageMap):
      (WebKit::StorageManager::destroyStorageMap):
      (WebKit::StorageManager::getValues):
      (WebKit::StorageManager::setItem):
      (WebKit::StorageManager::removeItem):
      (WebKit::StorageManager::clear):
      (WebKit::StorageManager::createSessionStorageNamespaceInternal):
      (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnectionInternal):
      (WebKit::StorageManager::invalidateConnectionInternal):
      (WebKit::StorageManager::findStorageArea):
      * UIProcess/Storage/StorageManager.h:
      * UIProcess/WebApplicationCacheManagerProxy.h:
      * UIProcess/WebConnectionToWebProcess.cpp:
      (WebKit::WebConnectionToWebProcess::encodeMessageBody):
      (WebKit::WebConnectionToWebProcess::decodeMessageBody):
      (WebKit::WebConnectionToWebProcess::messageSenderConnection):
      * UIProcess/WebConnectionToWebProcess.h:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::networkingProcessConnection):
      (WebKit::WebContext::didReceiveInvalidMessage):
      (WebKit::WebContext::createNewWebProcess):
      (WebKit::WebContext::postMessageToInjectedBundle):
      (WebKit::WebContext::addMessageReceiver):
      (WebKit::WebContext::removeMessageReceiver):
      (WebKit::WebContext::dispatchMessage):
      (WebKit::WebContext::dispatchSyncMessage):
      (WebKit::WebContext::didReceiveMessage):
      (WebKit::WebContext::didReceiveSyncMessage):
      * UIProcess/WebContext.h:
      * UIProcess/WebContextUserMessageCoders.h:
      (WebKit::WebContextUserMessageEncoder::encode):
      (WebKit::WebContextUserMessageDecoder::decode):
      * UIProcess/WebCookieManagerProxy.h:
      * UIProcess/WebDatabaseManagerProxy.h:
      * UIProcess/WebEditCommandProxy.cpp:
      (WebKit::WebEditCommandProxy::unapply):
      (WebKit::WebEditCommandProxy::reapply):
      * UIProcess/WebFrameProxy.h:
      * UIProcess/WebFullScreenManagerProxy.h:
      * UIProcess/WebGeolocationManagerProxy.cpp:
      (WebKit::WebGeolocationManagerProxy::startUpdating):
      (WebKit::WebGeolocationManagerProxy::stopUpdating):
      (WebKit::WebGeolocationManagerProxy::removeRequester):
      (WebKit::WebGeolocationManagerProxy::setEnableHighAccuracy):
      * UIProcess/WebGeolocationManagerProxy.h:
      * UIProcess/WebIconDatabase.cpp:
      (WebKit::WebIconDatabase::setIconDataForIconURL):
      (WebKit::WebIconDatabase::synchronousIconDataForPageURL):
      * UIProcess/WebIconDatabase.h:
      * UIProcess/WebIconDatabase.messages.in:
      * UIProcess/WebInspectorProxy.h:
      * UIProcess/WebMediaCacheManagerProxy.h:
      * UIProcess/WebOriginDataManagerProxy.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::willGoToBackForwardListItem):
      (WebKit::WebPageProxy::preferencesDidChange):
      (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
      (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
      (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
      (WebKit::WebPageProxy::didCommitLoadForFrame):
      (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
      (WebKit::WebPageProxy::didFinishLoadForFrame):
      (WebKit::WebPageProxy::didFailLoadForFrame):
      (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
      (WebKit::WebPageProxy::didReceiveTitleForFrame):
      (WebKit::WebPageProxy::didFirstLayoutForFrame):
      (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
      (WebKit::WebPageProxy::didLayout):
      (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
      (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
      (WebKit::WebPageProxy::didRunInsecureContentForFrame):
      (WebKit::WebPageProxy::didDetectXSSForFrame):
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      (WebKit::WebPageProxy::decidePolicyForResponse):
      (WebKit::WebPageProxy::decidePolicyForResponseSync):
      (WebKit::WebPageProxy::unableToImplementPolicy):
      (WebKit::WebPageProxy::willSubmitForm):
      (WebKit::WebPageProxy::mouseDidMoveOverElement):
      (WebKit::WebPageProxy::connectionWillOpen):
      (WebKit::WebPageProxy::connectionWillClose):
      (WebKit::WebPageProxy::sendMessage):
      (WebKit::WebPageProxy::messageSenderConnection):
      (WebKit::WebPageProxy::showContextMenu):
      (WebKit::WebPageProxy::internalShowContextMenu):
      (WebKit::WebPageProxy::dataCallback):
      (WebKit::WebPageProxy::scriptValueCallback):
      (WebKit::WebPageProxy::beginPrinting):
      (WebKit::WebPageProxy::endPrinting):
      (WebKit::WebPageProxy::computePagesForPrinting):
      (WebKit::WebPageProxy::drawRectToImage):
      (WebKit::WebPageProxy::drawPagesToPDF):
      (WebKit::WebPageProxy::drawPagesForPrinting):
      (WebKit::WebPageProxy::savePDFToFileInDownloadsFolder):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::connectionWillOpen):
      (WebKit::WebProcessProxy::connectionWillClose):
      (WebKit::WebProcessProxy::addBackForwardItem):
      (WebKit::WebProcessProxy::didReceiveMessage):
      (WebKit::WebProcessProxy::didReceiveSyncMessage):
      (WebKit::WebProcessProxy::didClose):
      (WebKit::WebProcessProxy::didReceiveInvalidMessage):
      (WebKit::WebProcessProxy::didFinishLaunching):
      * UIProcess/WebProcessProxy.h:
      (WebKit::WebProcessProxy::fromConnection):
      * UIProcess/WebProcessProxy.messages.in:
      * UIProcess/WebResourceCacheManagerProxy.h:
      * UIProcess/cf/WebBackForwardListCF.cpp:
      (WebKit::WebBackForwardList::createCFDictionaryRepresentation):
      * UIProcess/mac/RemoteLayerTreeHost.h:
      * UIProcess/mac/SecItemShimProxy.cpp:
      (WebKit::SecItemShimProxy::initializeConnection):
      (WebKit::SecItemShimProxy::secItemRequest):
      * UIProcess/mac/SecItemShimProxy.h:
      * UIProcess/mac/ViewGestureController.h:
      * UIProcess/mac/WebContextMac.mm:
      (WebKit::WebContext::platformInitializeWebProcess):
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::registerWebProcessAccessibilityToken):
      (WebKit::WebPageProxy::registerUIProcessAccessibilityTokens):
      (WebKit::WebPageProxy::savePDFToTemporaryFolderAndOpenWithNativeApplication):
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
      * WebProcess/Cookies/WebCookieManager.h:
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
      (WebKit::WebIDBServerConnection::messageSenderConnection):
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
      * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
      (WebKit::WebToDatabaseProcessConnection::WebToDatabaseProcessConnection):
      (WebKit::WebToDatabaseProcessConnection::didReceiveMessage):
      (WebKit::WebToDatabaseProcessConnection::didClose):
      (WebKit::WebToDatabaseProcessConnection::didReceiveInvalidMessage):
      * WebProcess/Databases/WebToDatabaseProcessConnection.h:
      (WebKit::WebToDatabaseProcessConnection::create):
      (WebKit::WebToDatabaseProcessConnection::connection):
      * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
      (WebKit::WebContentProcessMainDelegate::getConnectionIdentifier):
      * WebProcess/FullScreen/WebFullScreenManager.cpp:
      (WebKit::WebFullScreenManager::didReceiveMessage):
      * WebProcess/FullScreen/WebFullScreenManager.h:
      * WebProcess/Geolocation/WebGeolocationManager.h:
      * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp:
      (WebKit::WebIconDatabaseProxy::synchronousIconForPageURL):
      (WebKit::WebIconDatabaseProxy::setIconDataForIconURL):
      * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::postMessage):
      (WebKit::InjectedBundle::postSynchronousMessage):
      * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
      (WebKit::InjectedBundleUserMessageEncoder::encode):
      (WebKit::InjectedBundleUserMessageDecoder::decode):
      * WebProcess/MediaCache/WebMediaCacheManager.h:
      * WebProcess/Network/NetworkProcessConnection.cpp:
      (WebKit::NetworkProcessConnection::NetworkProcessConnection):
      (WebKit::NetworkProcessConnection::didReceiveMessage):
      (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
      (WebKit::NetworkProcessConnection::didClose):
      (WebKit::NetworkProcessConnection::didReceiveInvalidMessage):
      * WebProcess/Network/NetworkProcessConnection.h:
      (WebKit::NetworkProcessConnection::create):
      (WebKit::NetworkProcessConnection::connection):
      * WebProcess/Network/WebResourceLoader.cpp:
      (WebKit::WebResourceLoader::messageSenderConnection):
      (WebKit::WebResourceLoader::didReceiveData):
      * WebProcess/Network/WebResourceLoader.h:
      * WebProcess/Network/WebResourceLoader.messages.in:
      * WebProcess/Notifications/WebNotificationManager.h:
      * WebProcess/OriginData/WebOriginDataManager.h:
      * WebProcess/Plugins/PDF/PDFPlugin.h:
      * WebProcess/Plugins/Plugin.cpp:
      (WebKit::Plugin::Parameters::encode):
      (WebKit::Plugin::Parameters::decode):
      * WebProcess/Plugins/Plugin.h:
      * WebProcess/Plugins/PluginProcessConnection.cpp:
      (WebKit::PluginProcessConnection::PluginProcessConnection):
      (WebKit::PluginProcessConnection::didReceiveMessage):
      (WebKit::PluginProcessConnection::didReceiveSyncMessage):
      (WebKit::PluginProcessConnection::didClose):
      (WebKit::PluginProcessConnection::didReceiveInvalidMessage):
      * WebProcess/Plugins/PluginProcessConnection.h:
      (WebKit::PluginProcessConnection::create):
      (WebKit::PluginProcessConnection::connection):
      * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
      (WebKit::PluginProcessConnectionManager::initializeConnection):
      (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
      (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
      * WebProcess/Plugins/PluginProcessConnectionManager.h:
      * WebProcess/Plugins/PluginProxy.cpp:
      (WebKit::PluginProxy::geometryDidChange):
      (WebKit::PluginProxy::streamDidReceiveData):
      (WebKit::PluginProxy::manualStreamDidReceiveData):
      * WebProcess/Plugins/PluginProxy.h:
      * WebProcess/ResourceCache/WebResourceCacheManager.h:
      * WebProcess/Storage/StorageAreaMap.h:
      * WebProcess/WebConnectionToUIProcess.cpp:
      (WebKit::WebConnectionToUIProcess::encodeMessageBody):
      (WebKit::WebConnectionToUIProcess::decodeMessageBody):
      (WebKit::WebConnectionToUIProcess::messageSenderConnection):
      * WebProcess/WebConnectionToUIProcess.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::runJavaScriptAlert):
      (WebKit::WebChromeClient::runJavaScriptConfirm):
      (WebKit::WebChromeClient::runJavaScriptPrompt):
      * WebProcess/WebCoreSupport/WebDatabaseManager.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
      * WebProcess/WebPage/DecoderAdapter.cpp:
      (WebKit::DecoderAdapter::decodeBytes):
      (WebKit::DecoderAdapter::decodeString):
      * WebProcess/WebPage/DecoderAdapter.h:
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/EncoderAdapter.cpp:
      (WebKit::EncoderAdapter::dataReference):
      (WebKit::EncoderAdapter::encodeBytes):
      (WebKit::EncoderAdapter::encodeString):
      * WebProcess/WebPage/EncoderAdapter.h:
      * WebProcess/WebPage/EventDispatcher.cpp:
      (WebKit::EventDispatcher::initializeConnection):
      * WebProcess/WebPage/EventDispatcher.h:
      * WebProcess/WebPage/LayerTreeHost.h:
      * WebProcess/WebPage/ViewGestureGeometryCollector.h:
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::createInspectorPage):
      * WebProcess/WebPage/WebInspector.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::messageSenderConnection):
      (WebKit::WebPage::loadURL):
      (WebKit::WebPage::loadURLRequest):
      (WebKit::WebPage::loadDataImpl):
      (WebKit::WebPage::loadString):
      (WebKit::WebPage::loadData):
      (WebKit::WebPage::loadHTMLString):
      (WebKit::WebPage::loadAlternateHTMLString):
      (WebKit::WebPage::loadPlainTextString):
      (WebKit::WebPage::loadWebArchiveData):
      (WebKit::WebPage::postInjectedBundleMessage):
      (WebKit::WebPage::runJavaScriptInMainFrame):
      (WebKit::WebPage::getContentsAsMHTMLData):
      (WebKit::WebPage::getSelectionAsWebArchiveData):
      (WebKit::WebPage::getMainResourceDataOfFrame):
      (WebKit::WebPage::getResourceDataFromFrame):
      (WebKit::WebPage::getWebArchiveOfFrame):
      (WebKit::WebPage::didReceiveMessage):
      (WebKit::WebPage::didReceiveSyncMessage):
      (WebKit::WebPage::drawPagesToPDF):
      (WebKit::WebPage::savePDFToFileInDownloadsFolder):
      (WebKit::WebPage::savePDFToTemporaryFolderAndOpenWithNativeApplication):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebPage/WebPageGroupProxy.h:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::platformInitialize):
      (WebKit::WebPage::registerUIProcessAccessibilityTokens):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeConnection):
      (WebKit::WebProcess::downloadProxyConnection):
      (WebKit::WebProcess::initializeWebProcess):
      (WebKit::WebProcess::ensureNetworkProcessConnection):
      (WebKit::WebProcess::didReceiveSyncMessage):
      (WebKit::WebProcess::didReceiveMessage):
      (WebKit::WebProcess::didClose):
      (WebKit::WebProcess::didReceiveInvalidMessage):
      (WebKit::WebProcess::postInjectedBundleMessage):
      (WebKit::WebProcess::ensureWebToDatabaseProcessConnection):
      * WebProcess/WebProcess.h:
      * WebProcess/WebProcess.messages.in:
      * WebProcess/mac/WebProcessMac.mm:
      (WebKit::WebProcess::platformInitializeWebProcess):
      * config.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69388f0a
  3. 22 Dec, 2013 1 commit
  4. 17 Dec, 2013 2 commits
    • barraclough@apple.com's avatar
      Add layer hosting mode to ViewState · d105f9dc
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125803
      
      Unreviewed - reverting last commit - might have broken tests. :-(
      
      * Shared/ViewState.h:
      * Shared/WebPageCreationParameters.cpp:
      (WebKit::WebPageCreationParameters::encode):
      (WebKit::WebPageCreationParameters::decode):
      * Shared/WebPageCreationParameters.h:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::PageClientImpl):
      (WebKit::PageClientImpl::viewWillMoveToAnotherWindow):
      (WebKit::PageClientImpl::viewLayerHostingMode):
      * UIProcess/DrawingAreaProxy.h:
      (WebKit::DrawingAreaProxy::layerHostingModeDidChange):
      * UIProcess/PageClient.h:
      (WebKit::PageClient::viewLayerHostingMode):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::updateViewState):
      (WebKit::WebPageProxy::viewStateDidChange):
      (WebKit::WebPageProxy::initializeCreationParameters):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::layerHostingMode):
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
      (WebKit::TiledCoreAnimationDrawingAreaProxy::layerHostingModeDidChange):
      * WebProcess/WebPage/DrawingArea.h:
      (WebKit::DrawingArea::resumePainting):
      (WebKit::DrawingArea::setLayerHostingMode):
      * WebProcess/WebPage/DrawingArea.messages.in:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::~WebPage):
      (WebKit::WebPage::scalePage):
      (WebKit::WebPage::setDeviceScaleFactor):
      (WebKit::WebPage::setActive):
      (WebKit::WebPage::setViewState):
      (WebKit::WebPage::setWindowIsVisible):
      (WebKit::WebPage::windowAndViewFramesChanged):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::layerHostingMode):
      * WebProcess/WebPage/ios/WebPageIOS.mm:
      (WebKit::WebPage::setLayerHostingMode):
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::setLayerHostingMode):
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::sendComplexTextInputToPlugin):
      (WebKit::WebPage::setLayerHostingMode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d105f9dc
    • barraclough@apple.com's avatar
      Add layer hosting mode to ViewState · aeaa0987
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125803
      
      Reviewed by Anders Carlsson.
      
      When the view state of the page is updated the layer mode may also
      change. Currently this is passed by a separate message, remove this
      and fold it into ViewState.
              
      Previously the setLayerHostingMode message would be passed to the
      DrawingArea, which would inform the WebPage. Since the WebPage is
      passed the SetVisibilityState messgae reverse this.
      
      WebPageProxy had a policy of only updating the hosting mode when
      visible - the value is sticky whilst the view is not visible. Make
      this policy explicit in the PageClientImpl, rather then implicit
      from the flow control.
      
      * Shared/ViewState.h:
          - Added ViewState::IsLayerWindowServerHosted.
      * Shared/WebPageCreationParameters.cpp:
      (WebKit::WebPageCreationParameters::encode):
      (WebKit::WebPageCreationParameters::decode):
      * Shared/WebPageCreationParameters.h:
          - removed layerHostingMode.
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::PageClientImpl):
      (WebKit::PageClientImpl::isLayerWindowServerHosted):
      (WebKit::PageClientImpl::viewWillMoveToAnotherWindow):
          - viewLayerHostingMode -> isLayerWindowServerHosted, added m_layerHostingMode.
      * UIProcess/DrawingAreaProxy.h:
          - removed layerHostingModeDidChange.
      * UIProcess/PageClient.h:
          - viewLayerHostingMode -> isLayerWindowServerHosted.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
          - removed m_layerHostingMode.
      (WebKit::WebPageProxy::updateViewState):
          - added IsLayerWindowServerHosted.
      (WebKit::WebPageProxy::viewStateDidChange):
          - changes to ViewState::IsInWindow implies ViewState::IsLayerWindowServerHosted may change too.
          - remove special handling (separate message) for LayerHostingMode.
      (WebKit::WebPageProxy::initializeCreationParameters):
          - removed m_layerHostingMode.
      * UIProcess/WebPageProxy.h:
          - removed m_layerHostingMode.
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
          - removed layerHostingModeDidChange.
      * WebProcess/WebPage/DrawingArea.h:
      (WebKit::DrawingArea::setLayerHostingMode):
      (WebKit::DrawingArea::didUpdate):
          - setLayerHostingMode takes a LayerHostingMode.
      * WebProcess/WebPage/DrawingArea.messages.in:
          - SetLayerHostingMode is no longer a message.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
          - removed m_layerHostingMode.
      (WebKit::WebPage::setViewState):
          - handle ViewState::IsLayerWindowServerHosted.
      (WebKit::WebPage::setLayerHostingMode):
          - moved from ~Mac.mm (matching other ViewState setters), calls to DrawingArea.
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::layerHostingMode):
          - layerHostingMode queries m_viewState, removed m_layerHostingMode.
      * WebProcess/WebPage/ios/WebPageIOS.mm:
          - removed setLayerHostingMode.
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::setLayerHostingMode):
          - setLayerHostingMode takes a LayerHostingMode, WebPage now calls to DrawingArea.
      * WebProcess/WebPage/mac/WebPageMac.mm:
          - removed setLayerHostingMode.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160695 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aeaa0987
  5. 08 Dec, 2013 1 commit
    • weinig@apple.com's avatar
      [Cocoa] Remove knowledge of the WKView from the WebFullScreenManagerProxy by adding a proper client · 93360c27
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125427
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::fullScreenManagerProxyClient):
      (WebKit::PageClientImpl::closeFullScreenManager):
      (WebKit::PageClientImpl::isFullScreen):
      (WebKit::PageClientImpl::enterFullScreen):
      (WebKit::PageClientImpl::exitFullScreen):
      (WebKit::PageClientImpl::beganEnterFullScreen):
      (WebKit::PageClientImpl::beganExitFullScreen):
      Implement the new client.
      
      * UIProcess/API/mac/WKView.mm:
      Remove call to setWebView() and do some cleanup.
      
      * UIProcess/API/mac/WKViewInternal.h:
      Convert to property syntax and re-arrange.
      
      * UIProcess/PageClient.h:
      Expose access to the new client.
      
      * UIProcess/WebFullScreenManagerProxy.cpp:
      (WebKit::WebFullScreenManagerProxy::create):
      (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
      (WebKit::WebFullScreenManagerProxy::invalidate):
      (WebKit::WebFullScreenManagerProxy::close):
      (WebKit::WebFullScreenManagerProxy::isFullScreen):
      (WebKit::WebFullScreenManagerProxy::enterFullScreen):
      (WebKit::WebFullScreenManagerProxy::exitFullScreen):
      (WebKit::WebFullScreenManagerProxy::beganEnterFullScreen):
      (WebKit::WebFullScreenManagerProxy::beganExitFullScreen):
      * UIProcess/WebFullScreenManagerProxy.h:
      Use the new client.
      
      * UIProcess/WebPageProxy.cpp:
      Pass the new client.
      
      * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
      Removed. Now goes through the client.
      
      * WebKit2.xcodeproj/project.pbxproj:
      Remove WebFullScreenManagerProxyMac.mm.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93360c27
  6. 02 Dec, 2013 1 commit
    • enrica@apple.com's avatar
      Merging some more iOS WebKit2 stuff. · 8723db29
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125119
      
      Reviewed by Tim Horton.
      
      * Shared/EditorState.h:
      * Shared/NativeWebKeyboardEvent.h:
      * Shared/NativeWebMouseEvent.h:
      * Shared/NativeWebTouchEvent.h:
      * Shared/mac/RemoteLayerBackingStore.h:
      * Shared/mac/RemoteLayerTreePropertyApplier.mm:
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      * UIProcess/PageClient.h:
      * UIProcess/ios/TiledCoreAnimationDrawingAreaProxyIOS.mm:
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
      * UIProcess/mac/SecItemShimProxy.messages.in:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8723db29
  7. 28 Nov, 2013 1 commit
    • weinig@apple.com's avatar
      Perform some spring cleaning to WKContentView and WKView · 57850ccd
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124961
      
      Reviewed by Dan Bernstein.
      
      - Store the PageClientImpl in a std::unique_ptr.
      - Remove the WKBrowsingContextController internal load delegate. Replace its use with
        a new PageClient function, didCommitLoadForMainFrame.
      - Fix typo in the WKContentViewDelegate. contentViewdidCommitLoadForMainFrame -> contentViewDidCommitLoadForMainFrame.
      - Add initializers for WKContentView and WKView that take WKContextRefs and WKPageGroupRefs to match the Mac WKView.
        These are needed for WebKitTestRunner.
      - Require a WKProcessGroup (or WKContextRef) and a WKBrowsingContextGroup (or WKPageGroupRef).
      - Stop caching the WKProcessGroup and WKBrowsingContextGroup on the WKContentView.
      - Remove incorrect implementations of initWithCoder.
      - Make WKContentView lazily create its WKBrowsingContextController wrapper.
      
      * UIProcess/API/ios/PageClientImplIOS.h:
      * UIProcess/API/ios/PageClientImplIOS.mm:
      (WebKit::PageClientImpl::PageClientImpl):
      (WebKit::PageClientImpl::didCommitLoadForMainFrame):
      (WebKit::PageClientImpl::mainDocumentDidReceiveMobileDocType):
      * UIProcess/API/ios/WKContentView.h:
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView initWithCoder:]):
      (-[WKContentView initWithFrame:processGroup:browsingContextGroup:]):
      (-[WKContentView browsingContextController]):
      (-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
      (-[WKContentView _didCommitLoadForMainFrame]):
      (-[WKContentView _didReceiveMobileDocTypeForMainFrame]):
      (-[WKContentView _didChangeViewportArguments:WebCore::]):
      (-[WKContentView _decidePolicyForGeolocationRequestFromOrigin:frame:request:]):
      (-[WKContentView _pageRef]):
      (-[WKContentView initWithFrame:contextRef:pageGroupRef:]):
      (-[WKContentView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      * UIProcess/API/ios/WKContentViewInternal.h:
      * UIProcess/API/ios/WKContentViewPrivate.h: Added.
      * UIProcess/API/ios/WKView.mm:
      (-[WKView initWithFrame:processGroup:browsingContextGroup:]):
      (-[WKView initWithFrame:processGroup:browsingContextGroup:relatedToView:]):
      (-[WKView contentViewDidCommitLoadForMainFrame:]):
      (-[WKView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
      (-[WKView pageRef]):
      (-[WKView initWithFrame:contextRef:pageGroupRef:]):
      (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::didCommitLoadForMainFrame):
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      (didCommitLoadForFrame):
      * UIProcess/API/mac/WKBrowsingContextControllerInternal.h:
      * UIProcess/API/mac/WKViewPrivate.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didCommitLoadForFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57850ccd
  8. 27 Nov, 2013 1 commit
    • weinig@apple.com's avatar
      Give the PageClient a chance to handle geolocation permission requests if the... · 1b53aa12
      weinig@apple.com authored
      Give the PageClient a chance to handle geolocation permission requests if the UIClient doesn't handle it
      https://bugs.webkit.org/show_bug.cgi?id=124955
      
      Reviewed by Dan Bernstein.
      
      Use the new PageClient function to remove the need for WKContentView to take over the WKPageUIClient.
      
      * UIProcess/API/ios/PageClientImplIOS.h:
      * UIProcess/API/ios/PageClientImplIOS.mm:
      (WebKit::PageClientImpl::decidePolicyForGeolocationPermissionRequest):
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView _decidePolicyForGeolocationRequestFromOrigin:frame:request:]):
      (-[WKContentView _commonInitWithProcessGroup:browsingContextGroup:]):
      * UIProcess/API/ios/WKContentViewInternal.h:
      * UIProcess/PageClient.h:
      (WebKit::PageClient::decidePolicyForGeolocationPermissionRequest):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::requestGeolocationPermissionForFrame):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b53aa12
  9. 22 Nov, 2013 1 commit
  10. 06 Nov, 2013 1 commit
  11. 24 Oct, 2013 1 commit
  12. 11 Oct, 2013 1 commit
    • andersca@apple.com's avatar
      Remove ENABLE(GESTURE_EVENTS) from WebKit2 · de54d32b
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122673
      
      Reviewed by Ryosuke Niwa.
      
      * Shared/WebEvent.h:
      * Shared/WebEventConversion.cpp:
      * Shared/WebEventConversion.h:
      * Shared/WebGestureEvent.cpp: Removed.
      * Shared/mac/WebEventFactory.h:
      * Shared/mac/WebEventFactory.mm:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/mac/WKView.mm:
      (-[WKView viewDidMoveToWindow]):
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveEvent):
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      * UIProcess/WebPageProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebPage/EventDispatcher.cpp:
      * WebProcess/WebPage/EventDispatcher.h:
      * WebProcess/WebPage/EventDispatcher.messages.in:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de54d32b
  13. 03 Oct, 2013 1 commit
    • andersca@apple.com's avatar
      Remove the last remnants of Qt from WebKit2 · 465f9d33
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122290
      
      Reviewed by Andreas Kling.
      
      * Platform/PlatformProcessIdentifier.h:
      * Shared/API/c/WKSharedAPICast.h:
      (WebKit::toAPI):
      (WebKit::toImpl):
      * Shared/Downloads/Download.cpp:
      (WebKit::Download::Download):
      * Shared/Downloads/Download.h:
      * Shared/Downloads/DownloadManager.cpp:
      * Shared/Downloads/DownloadManager.h:
      * Shared/EditorState.cpp:
      (WebKit::EditorState::encode):
      (WebKit::EditorState::decode):
      * Shared/EditorState.h:
      (WebKit::EditorState::EditorState):
      * Shared/LayerTreeContext.h:
      * Shared/NativeWebKeyboardEvent.h:
      * Shared/NativeWebMouseEvent.h:
      * Shared/NativeWebWheelEvent.h:
      * Shared/PlatformPopupMenuData.cpp:
      (WebKit::PlatformPopupMenuData::encode):
      (WebKit::PlatformPopupMenuData::decode):
      * Shared/PlatformPopupMenuData.h:
      * Shared/ShareableBitmap.h:
      * Shared/WebPreferencesStore.h:
      * UIProcess/Downloads/DownloadProxy.cpp:
      * UIProcess/Downloads/DownloadProxy.h:
      * UIProcess/PageClient.h:
      * UIProcess/Plugins/PluginProcessProxy.cpp:
      (WebKit::PluginProcessProxy::didFinishLaunching):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::download):
      * UIProcess/WebFullScreenManagerProxy.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::performDragControllerAction):
      (WebKit::WebPageProxy::receivedPolicyDecision):
      (WebKit::WebPageProxy::editorStateChanged):
      (WebKit::WebPageProxy::showPopupMenu):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebPopupMenuProxy.h:
      * WebProcess/InjectedBundle/InjectedBundle.h:
      * WebProcess/WebCoreSupport/WebDragClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::respondToChangedSelection):
      (WebKit::WebEditorClient::willSetInputMethodState):
      (WebKit::WebEditorClient::supportsGlobalSelection):
      * WebProcess/WebCoreSupport/WebEditorClient.h:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::shouldFallBack):
      * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
      (WebKit::WebPopupMenu::didChangeSelectedIndex):
      * WebProcess/WebCoreSupport/WebPopupMenu.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::editorState):
      (WebKit::WebPage::performDragControllerAction):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::WebProcess):
      * WebProcess/WebProcess.h:
      * WebProcess/WebProcess.messages.in:
      * config.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      465f9d33
  14. 30 Sep, 2013 1 commit
    • andersca@apple.com's avatar
      Get rid of more uses of OwnPtr and PassOwnPtr · c5e54cd2
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=122136
      
      Reviewed by Antti Koivisto.
      
      Source/WebCore:
      
      * Modules/websockets/WebSocket.cpp:
      (WebCore::WebSocket::didReceiveBinaryData):
      * WebCore.exp.in:
      * fileapi/Blob.cpp:
      (WebCore::Blob::Blob):
      (WebCore::Blob::slice):
      * fileapi/Blob.h:
      (WebCore::Blob::create):
      * fileapi/File.cpp:
      (WebCore::createBlobDataForFileWithType):
      (WebCore::createBlobDataForFile):
      (WebCore::createBlobDataForFileWithName):
      * fileapi/ThreadableBlobRegistry.cpp:
      (WebCore::BlobRegistryContext::BlobRegistryContext):
      (WebCore::registerBlobURLTask):
      (WebCore::ThreadableBlobRegistry::registerBlobURL):
      * fileapi/ThreadableBlobRegistry.h:
      * fileapi/WebKitBlobBuilder.cpp:
      (WebCore::BlobBuilder::getBlob):
      * platform/network/BlobData.cpp:
      (WebCore::BlobDataHandle::BlobDataHandle):
      * platform/network/BlobData.h:
      (WebCore::BlobData::BlobData):
      (WebCore::BlobDataHandle::create):
      * platform/network/BlobRegistry.h:
      * platform/network/BlobRegistryImpl.cpp:
      (WebCore::BlobRegistryImpl::registerBlobURL):
      * platform/network/BlobRegistryImpl.h:
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::responseBlob):
      
      Source/WebKit2:
      
      * NetworkProcess/AsynchronousNetworkLoaderClient.h:
      * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
      (WebKit::NetworkBlobRegistry::registerBlobURL):
      * NetworkProcess/FileAPI/NetworkBlobRegistry.h:
      * NetworkProcess/NetworkResourceLoader.cpp:
      (WebKit::NetworkResourceLoader::NetworkResourceLoader):
      * NetworkProcess/NetworkResourceLoader.h:
      * NetworkProcess/SynchronousNetworkLoaderClient.h:
      * NetworkProcess/mac/RemoteNetworkingContext.mm:
      * Platform/CoreIPC/ArgumentDecoder.h:
      * Platform/CoreIPC/ArgumentEncoder.h:
      * Platform/CoreIPC/MessageDecoder.cpp:
      (CoreIPC::MessageDecoder::setImportanceAssertion):
      * Platform/CoreIPC/MessageDecoder.h:
      * Platform/CoreIPC/mac/ConnectionMac.cpp:
      (CoreIPC::Connection::receiveSourceEventHandler):
      * Platform/CoreIPC/mac/ImportanceAssertion.h:
      (CoreIPC::ImportanceAssertion::ImportanceAssertion):
      * Platform/mac/LayerHostingContext.h:
      * Platform/mac/LayerHostingContext.mm:
      (WebKit::LayerHostingContext::createForPort):
      (WebKit::LayerHostingContext::createForWindowServer):
      * PluginProcess/PluginControllerProxy.cpp:
      (WebKit::PluginControllerProxy::paint):
      * PluginProcess/PluginControllerProxy.h:
      * PluginProcess/WebProcessConnection.cpp:
      (WebKit::WebProcessConnection::addPluginControllerProxy):
      (WebKit::WebProcessConnection::removePluginControllerProxy):
      (WebKit::WebProcessConnection::createPluginInternal):
      * PluginProcess/WebProcessConnection.h:
      * Shared/API/c/cg/WKImageCG.cpp:
      (WKImageCreateFromCGImage):
      * Shared/BlockingResponseMap.h:
      (BlockingResponseMap::waitForResponse):
      (BlockingResponseMap::didReceiveResponse):
      * Shared/Downloads/Download.cpp:
      * Shared/Downloads/Download.h:
      * Shared/Downloads/DownloadManager.cpp:
      (WebKit::DownloadManager::startDownload):
      (WebKit::DownloadManager::convertHandleToDownload):
      * Shared/FileAPI/BlobRegistrationData.cpp:
      (WebKit::BlobRegistrationData::BlobRegistrationData):
      (WebKit::BlobRegistrationData::releaseData):
      (WebKit::BlobRegistrationData::decode):
      * Shared/FileAPI/BlobRegistrationData.h:
      * Shared/Plugins/NPObjectMessageReceiver.cpp:
      * Shared/Plugins/NPObjectMessageReceiver.h:
      * Shared/Plugins/NPRemoteObjectMap.cpp:
      (WebKit::NPRemoteObjectMap::registerNPObject):
      * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
      (WebKit::NetscapePluginModule::tryLoad):
      * Shared/Plugins/Netscape/NetscapePluginModule.h:
      * Shared/ShareableBitmap.h:
      * Shared/WebURL.h:
      (WebKit::WebURL::create):
      (WebKit::WebURL::WebURL):
      (WebKit::WebURL::parseURLIfNecessary):
      * Shared/cg/ShareableBitmapCG.cpp:
      (WebKit::ShareableBitmap::createGraphicsContext):
      (WebKit::ShareableBitmap::makeCGImageCopy):
      * Shared/mac/SecItemShim.cpp:
      (WebKit::sendSecItemRequest):
      (WebKit::webSecItemCopyMatching):
      (WebKit::webSecItemAdd):
      (WebKit::webSecItemUpdate):
      (WebKit::webSecItemDelete):
      (WebKit::SecItemShim::secItemResponse):
      * UIProcess/API/mac/FindIndicatorWindow.h:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::createDrawingAreaProxy):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView std::WebKit::]):
      (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/BackingStore.cpp:
      * UIProcess/BackingStore.h:
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
      * UIProcess/DrawingAreaProxyImpl.h:
      * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.h:
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
      * WebProcess/FileAPI/BlobRegistryProxy.cpp:
      (WebKit::BlobRegistryProxy::registerBlobURL):
      * WebProcess/FileAPI/BlobRegistryProxy.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
      * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
      (WKBundlePageBannerCreateBannerWithCALayer):
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      (WebKit::imageForRect):
      * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
      (WebKit::NetscapePlugin::scheduleTimer):
      (WebKit::NetscapePlugin::unscheduleTimer):
      (WebKit::NetscapePlugin::snapshot):
      * WebProcess/Plugins/Netscape/NetscapePlugin.h:
      * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      (WebKit::PDFPlugin::snapshot):
      * WebProcess/Plugins/PluginProxy.cpp:
      (WebKit::PluginProxy::paint):
      (WebKit::PluginProxy::update):
      * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
      (WebKit::convertImageToBitmap):
      * WebProcess/WebPage/DrawingArea.cpp:
      (WebKit::DrawingArea::create):
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/DrawingAreaImpl.cpp:
      (WebKit::DrawingAreaImpl::display):
      * WebProcess/WebPage/DrawingAreaImpl.h:
      * WebProcess/WebPage/FindController.cpp:
      (WebKit::FindController::getFindIndicatorBitmapAndRect):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::createWithCoreMainFrame):
      (WebKit::WebFrame::createSubframe):
      (WebKit::WebFrame::create):
      (WebKit::WebFrame::WebFrame):
      * WebProcess/WebPage/WebFrame.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::scaledSnapshotWithOptions):
      (WebKit::WebPage::drawRectToImage):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/mac/LayerTreeHostMac.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156688 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5e54cd2
  15. 16 Sep, 2013 1 commit
    • andersca@apple.com's avatar
      Remove some uses of PassOwnPtr in WebKit2 · 79868b37
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=121443
      
      Reviewed by Andreas Kling.
      
      * Scripts/webkit2/messages.py:
      (message_to_struct_declaration):
      (generate_message_handler):
      * Scripts/webkit2/messages_unittest.py:
      * UIProcess/API/mac/FindIndicatorWindow.h:
      * UIProcess/API/mac/FindIndicatorWindow.mm:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::createDrawingAreaProxy):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView WebKit::]):
      (-[WKView _setFindIndicator:fadeOut:animate:]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/DrawingAreaProxyImpl.cpp:
      * UIProcess/DrawingAreaProxyImpl.h:
      * UIProcess/PageClient.h:
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
      * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
      (PageOverlayClientImpl::PageOverlayClientImpl):
      (WKBundlePageOverlayCreate):
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::createWebEvent):
      * WebProcess/Plugins/PluginView.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79868b37
  16. 24 Jul, 2013 1 commit
    • ruth_fong@apple.com's avatar
      Rename WebColorChooserProxy · 0a7a361b
      ruth_fong@apple.com authored
      <rdar://problem/14528039> and https://bugs.webkit.org/show_bug.cgi?id=119025
      
      Reviewed by Brady Eidson.
      
      Renamed WebColorChooserProxy to WebColorPicker since the name WebColorChoooserProxy
      implies that it represents the same object as WebColorChooser, which is not true.
      Also, renamed createColorChooserProxy to createColorPicker in WebPageProxy and
      platform-equivalent versions of it.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * Target.pri:
      * UIProcess/API/gtk/PageClientImpl.cpp:
      (WebKit::PageClientImpl::createColorPicker):
      * UIProcess/API/gtk/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::createColorPicker):
      * UIProcess/API/qt/raw/qrawwebview.cpp:
      (QRawWebViewPrivate::createColorPicker):
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      * UIProcess/CoordinatedGraphics/WebView.cpp:
      (WebKit::WebView::createColorPicker):
      * UIProcess/CoordinatedGraphics/WebView.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebColorChooserProxy.cpp: Removed.
      * UIProcess/WebColorChooserProxy.h: Removed.
      * UIProcess/WebColorPicker.cpp: Copied from Source/WebKit2/UIProcess/WebColorChooserProxy.cpp.
      (WebKit::WebColorPicker::WebColorPicker):
      (WebKit::WebColorPicker::~WebColorPicker):
      (WebKit::WebColorPicker::endChooser):
      (WebKit::WebColorPicker::setSelectedColor):
      * UIProcess/WebColorPicker.h: Copied from Source/WebKit2/UIProcess/WebColorChooserProxy.h.
      (WebKit::WebColorPicker::create):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::showColorChooser):
      (WebKit::WebPageProxy::setColorChooserColor):
      (WebKit::WebPageProxy::endColorChooser):
      (WebKit::WebPageProxy::didEndColorChooser):
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      * UIProcess/WebPageProxy.h: Renamed m_colorChooser to m_colorPicker.
      * UIProcess/qt/QtPageClient.cpp:
      (WebKit::QtPageClient::createColorPicker):
      * UIProcess/qt/QtPageClient.h:
      * UIProcess/qt/WebColorChooserProxyQt.cpp: Removed.
      * UIProcess/qt/WebColorChooserProxyQt.h: Removed.
      * UIProcess/qt/WebColorPickerQt.cpp: Added.
      (WebKit::ColorChooserContextObject::ColorChooserContextObject):
      (WebKit::ColorChooserContextObject::currentColor):
      (WebKit::ColorChooserContextObject::elementRect):
      (WebKit::ColorChooserContextObject::accept):
      (WebKit::ColorChooserContextObject::reject):
      (WebKit::WebColorPickerQt::WebColorPickerQt):
      (WebKit::WebColorPickerQt::~WebColorPickerQt):
      (WebKit::WebColorPickerQt::createItem):
      (WebKit::WebColorPickerQt::createContext):
      (WebKit::WebColorPickerQt::setSelectedColor):
      (WebKit::WebColorPickerQt::notifyColorSelected):
      (WebKit::WebColorPickerQt::endChooser):
      * UIProcess/qt/WebColorPickerQt.h: Added.
      (WebKit::WebColorPickerQt::create):
      * WebKit2.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a7a361b
  17. 18 Jul, 2013 2 commits
    • commit-queue@webkit.org's avatar
      [WK2] Share Qt port's codes to find zoomable area with CoordinatedGraphics. · f612b4bf
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=118585
      
      Patch by Eunmi Lee <eunmi15.lee@samsung.com> on 2013-07-18
      Reviewed by Anders Carlsson.
      
      The function to find zoomable area is needed in order to implement the
      feature to scale for double-tap gesture. The WK2 EFL and NIX port want
      to use that function, so extract the code from the Qt port, make it
      usable in the CoordinatedGraphics and add API and callback.
      
      * CMakeLists.txt:
      * Target.pri:
      * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
      (WKViewFindZoomableAreaForRect):
      * UIProcess/API/C/CoordinatedGraphics/WKView.h:
      * UIProcess/API/efl/EwkView.cpp:
      (EwkView::didFindZoomableArea):
      * UIProcess/API/efl/EwkView.h:
      * UIProcess/CoordinatedGraphics/WebPageProxyCoordinatedGraphics.cpp: Added.
      (WebKit::WebPageProxy::findZoomableAreaForPoint):
      (WebKit::WebPageProxy::didFindZoomableArea):
      * UIProcess/CoordinatedGraphics/WebView.cpp:
      (WebKit::WebView::didFindZoomableArea):
      (WebKit::WebView::findZoomableAreaForPoint):
      * UIProcess/CoordinatedGraphics/WebView.h:
      * UIProcess/CoordinatedGraphics/WebViewClient.cpp:
      (WebKit::WebViewClient::didFindZoomableArea):
      * UIProcess/CoordinatedGraphics/WebViewClient.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/efl/ViewClientEfl.cpp:
      (WebKit::ViewClientEfl::didFindZoomableArea):
      (WebKit::ViewClientEfl::ViewClientEfl):
      * UIProcess/efl/ViewClientEfl.h:
      * UIProcess/qt/WebPageProxyQt.cpp:
      * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp: Added.
      (WebKit::WebPage::findZoomableAreaForPoint):
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f612b4bf
    • timothy_horton@apple.com's avatar
      Remove PDFViewController and WKView "custom representations" · f0f33c6d
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=118720
      
      Reviewed by Alexey Proskuryakov.
      
      PDFViewController was the only implementation of
      a "custom representation" for a WKView. As it has
      been superceded by PDFPlugin, we can remove both
      PDFViewController and the notion of a WKView custom
      representation.
      
      * UIProcess/API/gtk/PageClientImpl.cpp:
      * UIProcess/API/gtk/PageClientImpl.h:
      * UIProcess/API/mac/PDFViewController.h: Removed.
      * UIProcess/API/mac/PDFViewController.mm: Removed.
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/mac/WKView.mm:
      (-[WKView accessibilityFocusedUIElement]):
      (-[WKView accessibilityHitTest:]):
      (-[WKView accessibilityAttributeValue:]):
      (-[WKView printOperationWithPrintInfo:forFrame:]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      * UIProcess/CoordinatedGraphics/WebView.cpp:
      * UIProcess/CoordinatedGraphics/WebView.h:
      * UIProcess/DrawingAreaProxy.h:
      * UIProcess/DrawingAreaProxyImpl.cpp:
      * UIProcess/DrawingAreaProxyImpl.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::supportsTextEncoding):
      (WebKit::WebPageProxy::supportsTextZoom):
      (WebKit::WebPageProxy::setTextZoomFactor):
      (WebKit::WebPageProxy::setPageZoomFactor):
      (WebKit::WebPageProxy::setPageAndTextZoomFactors):
      (WebKit::WebPageProxy::findString):
      (WebKit::WebPageProxy::countStringMatches):
      (WebKit::WebPageProxy::didCommitLoadForFrame):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::textZoomFactor):
      (WebKit::WebPageProxy::pageZoomFactor):
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/qt/QtPageClient.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::WebFrameLoaderClient):
      (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
      (WebKit::WebFrameLoaderClient::committedLoad):
      (WebKit::WebFrameLoaderClient::finishedLoading):
      (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
      (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      * WebProcess/WebPage/DrawingArea.h:
      * WebProcess/WebPage/DrawingArea.messages.in:
      * WebProcess/WebPage/DrawingAreaImpl.cpp:
      (WebKit::DrawingAreaImpl::setNeedsDisplayInRect):
      (WebKit::DrawingAreaImpl::scroll):
      (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode):
      (WebKit::DrawingAreaImpl::display):
      * WebProcess/WebPage/DrawingAreaImpl.h:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::platformPreferencesDidChange):
      * mac/WebKit2.order:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@152841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0f33c6d
  18. 10 Jun, 2013 1 commit
    • andersca@apple.com's avatar
      -[WKView _updateWindowAndViewFrames] should avoid updating the view frame in... · 14000c50
      andersca@apple.com authored
      -[WKView _updateWindowAndViewFrames] should avoid updating the view frame in window coordinates if we don't have plugins
      https://bugs.webkit.org/show_bug.cgi?id=117420
      <rdar://problem/14073034>
      
      Reviewed by Tim Horton.
      
      If plug-ins are disabled there's no need for the web process to know about the view frame in window coordinates so only
      send it when plug-ins are enabled. In addition, if accessibility is disabled we don't need to send a message at all.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::preferencesDidChange):
      Call through to -[WKView _preferencesDidChange].
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _updateWindowAndViewFrames]):
      Don't compute viewFrameInWindowCoordinates or accessibilityPosition unless they're required. If neither are required,
      don't even send a message to the web process.
      
      (-[WKView _preferencesDidChange]):
      Update _needsViewFrameInWindowCoordinates and call -[WKView _updateWindowAndViewFrames] if needed.
      
      (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      Set _needsViewFrameInWindowCoordinates based on whether plug-ins are enabled or not.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::preferencesDidChange):
      Call the page client.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151403 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14000c50
  19. 17 May, 2013 1 commit
    • ap@apple.com's avatar
      Text input is largely broken when there are subframes loading · e042b63d
      ap@apple.com authored
              http://bugs.webkit.org/show_bug.cgi?id=59121
              <rdar://problem/9320468>
      
              Reviewed by Darin Adler.
      
              * UIProcess/PageClient.h:
              * UIProcess/API/mac/PageClientImpl.h:
              * UIProcess/API/mac/PageClientImpl.mm:
              (WebKit::PageClientImpl::updateSecureInputState): Separated secure input state
              updating into a separate function. Removed updateTextInputState, we don't need
              to go through PageClient to implement its behavior at all.
              (WebKit::PageClientImpl::dismissDictionaryLookupPanel): Added a FIXME.
      
              * UIProcess/API/mac/WKView.mm:
              * UIProcess/API/mac/WKViewInternal.h:
              Removed _updateTextInputStateIncludingSecureInputState.
      
              * UIProcess/WebPageProxy.h: Added m_temporarilyClosedComposition, which helps
              to figure out that WebCore decided to close a composition. The issue is that WebCore
              would first send an EditorState with hasComposition set to false, and with
              shouldIgnoreCompositionSelectionChange set to true, at which time we forget the
              previous m_editorState, but can't make any decisions based on this transient state.
              We should find a way to simplify this (maybe not send these updates with
              shouldIgnoreCompositionSelectionChange at all?)
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::WebPageProxy): Initialize m_temporarilyClosedComposition.
              (WebKit::WebPageProxy::didCommitLoadForFrame): Removed the code to kill a composition
              when any frame commits a load, which made no sense (along with surrounding code,
              which will unfortunately survive longer).
              (WebKit::WebPageProxy::editorStateChanged): Implemented state updating here,
              we don't need to go to WKView.mm to implement this logic. Figure out when WebCore
              discards a composition, and notify input methods about this.
              (WebKit::WebPageProxy::resetStateAfterProcessExited): Reset m_temporarilyClosedComposition.
              Added some FIXMEs.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e042b63d
  20. 15 May, 2013 1 commit
    • ap@apple.com's avatar
      [WK2][Mac] Split resetTextInputState into two functions · da52501d
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=116174
      
              Reviewed by Anders Carlsson.
      
              Splitting resetTextInputState into resetSecureInputState and
              notifyInputContextAboutDiscardedComposition, paving the way for a fix where these
              won't be happening simultaneously.
      
              * UIProcess/API/mac/PageClientImpl.h:
              * UIProcess/API/mac/PageClientImpl.mm:
              (WebKit::PageClientImpl::resetSecureInputState):
              (WebKit::PageClientImpl::notifyInputContextAboutDiscardedComposition):
              * UIProcess/API/mac/WKView.mm:
              (-[WKView resignFirstResponder]):
              (-[WKView _resetSecureInputState]):
              (-[WKView _notifyInputContextAboutDiscardedComposition]):
              * UIProcess/API/mac/WKViewInternal.h:
              * UIProcess/PageClient.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::didCommitLoadForFrame):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@150132 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da52501d
  21. 16 Apr, 2013 1 commit
    • ap@apple.com's avatar
      Remove unused AlternativeTextClient::dismissDictationAlternativeUI · e7b48f78
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=114598
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      Removing dead code.
      
      * WebCore.exp.in:
      * editing/mac/AlternativeTextUIController.h: Made dismissAlternatives() private.
      * page/AlternativeTextClient.h:
      
      Source/WebKit/mac:
      
      * WebCoreSupport/WebAlternativeTextClient.h:
      * WebCoreSupport/WebAlternativeTextClient.mm:
      * WebView/WebView.mm:
      * WebView/WebViewInternal.h:
      
      Source/WebKit2:
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::dictationAlternatives):
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/WebCoreSupport/WebAlternativeTextClient.h:
      * WebProcess/WebCoreSupport/mac/WebAlternativeTextClient.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7b48f78
  22. 12 Mar, 2013 1 commit
    • jocelyn.turcotte@digia.com's avatar
      [Qt][WK2] Allow QtWebContext to call directly to QQuickWebView with a WKPageRef · 5ade53ab
      jocelyn.turcotte@digia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=109829
      
      Reviewed by Allan Sandfeld Jensen.
      Signed off for WebKit2 by Benjamin Poulain.
      
      Instead of going through WebPageProxy and PageClient to forward
      injected bundle messages received by the context, maintain a static map
      of WKPageRef to QQuickWebViewPrivate.
      
      * UIProcess/API/qt/qquickwebview.cpp:
      (QQuickWebViewPrivate::get):
      (QQuickWebViewPrivate::~QQuickWebViewPrivate):
      (QQuickWebViewPrivate::initialize):
      (QQuickWebViewPrivate::didReceiveMessageFromNavigatorQtObject):
      * UIProcess/API/qt/qquickwebview_p_p.h:
      (QQuickWebViewPrivate):
      * UIProcess/API/qt/raw/qrawwebview.cpp:
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/qt/QtPageClient.cpp:
      * UIProcess/qt/QtPageClient.h:
      (QtPageClient):
      * UIProcess/qt/QtWebContext.cpp:
      (WebKit::didReceiveMessageFromInjectedBundle):
      * UIProcess/qt/WebPageProxyQt.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ade53ab
  23. 07 Jan, 2013 2 commits
    • andersca@apple.com's avatar
      Remove PLATFORM(WIN) #ifdefs · 30854d12
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=106279
      
      Reviewed by Sam Weinig.
      
      * Platform/CoreIPC/BinarySemaphore.cpp:
      * Platform/CoreIPC/Connection.cpp:
      (CoreIPC::Connection::waitForSyncReply):
      * Platform/CoreIPC/Connection.h:
      (Client):
      * Platform/Module.cpp:
      (WebKit::Module::Module):
      * Platform/Module.h:
      (Module):
      * Platform/PlatformProcessIdentifier.h:
      (WebKit):
      * Shared/CommandLine.h:
      (CommandLine):
      * Shared/FontSmoothingLevel.h:
      * Shared/LayerTreeContext.h:
      (LayerTreeContext):
      * Shared/NativeWebKeyboardEvent.h:
      (NativeWebKeyboardEvent):
      * Shared/NativeWebMouseEvent.h:
      (NativeWebMouseEvent):
      * Shared/NativeWebWheelEvent.h:
      (NativeWebWheelEvent):
      * Shared/PlatformPopupMenuData.cpp:
      (WebKit::PlatformPopupMenuData::PlatformPopupMenuData):
      (WebKit::PlatformPopupMenuData::encode):
      (WebKit::PlatformPopupMenuData::decode):
      * Shared/PlatformPopupMenuData.h:
      (PlatformPopupMenuData):
      * Shared/Plugins/PluginModuleInfo.h:
      (PluginModuleInfo):
      (WebKit::PluginModuleInfo::isolatedCopy):
      * Shared/ShareableBitmap.h:
      (ShareableBitmap):
      * Shared/WebCoreArgumentCoders.h:
      * Shared/WebEvent.h:
      (WebMouseEvent):
      * Shared/WebEventConversion.cpp:
      (WebKit::WebKit2PlatformMouseEvent::WebKit2PlatformMouseEvent):
      * Shared/WebMouseEvent.cpp:
      (WebKit::WebMouseEvent::WebMouseEvent):
      (WebKit::WebMouseEvent::encode):
      (WebKit::WebMouseEvent::decode):
      * Shared/WebPageCreationParameters.cpp:
      (WebKit::WebPageCreationParameters::encode):
      (WebKit::WebPageCreationParameters::decode):
      * Shared/WebPageCreationParameters.h:
      (WebPageCreationParameters):
      * Shared/WebPreferencesStore.h:
      (WebKit):
      * Shared/WebProcessCreationParameters.cpp:
      (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
      (WebKit::WebProcessCreationParameters::encode):
      (WebKit::WebProcessCreationParameters::decode):
      * Shared/WebProcessCreationParameters.h:
      (WebProcessCreationParameters):
      * Shared/WebURLRequest.h:
      * Shared/WebURLResponse.h:
      * Shared/cg/ShareableBitmapCG.cpp:
      (WebKit::ShareableBitmap::makeCGImageCopy):
      * UIProcess/API/C/WKAPICast.h:
      (WebKit::toFontSmoothingLevel):
      (WebKit::toAPI):
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/BackingStore.h:
      (BackingStore):
      * UIProcess/PageClient.h:
      (WebKit):
      (PageClient):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext):
      * UIProcess/WebContext.h:
      (WebContext):
      * UIProcess/WebFullScreenManagerProxy.h:
      (WebKit):
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::WebInspectorProxy):
      * UIProcess/WebInspectorProxy.h:
      (WebInspectorProxy):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::performDragControllerAction):
      (WebKit::WebPageProxy::didReceiveEvent):
      (WebKit::WebPageProxy::creationParameters):
      (WebKit):
      * UIProcess/WebPageProxy.h:
      (WebKit):
      (WebPageProxy):
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebProcessProxy.h:
      (WebProcessProxy):
      * WebKit2Prefix.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameCopyWebArchiveFilteringSubframes):
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
      (WebKit::InjectedBundle::switchNetworkLoaderToNewTestingSession):
      * WebProcess/InjectedBundle/InjectedBundle.h:
      (WebKit):
      (InjectedBundle):
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      (WebKit::NPN_GetValue):
      * WebProcess/Plugins/Netscape/NetscapePlugin.h:
      (NetscapePlugin):
      * WebProcess/Plugins/PluginController.h:
      (PluginController):
      * WebProcess/Plugins/PluginView.cpp:
      * WebProcess/Plugins/PluginView.h:
      (PluginView):
      * WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::selectItemWritingDirectionIsNatural):
      (WebKit::WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
      (WebKit):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      (WebChromeClient):
      * WebProcess/WebCoreSupport/WebDragClient.cpp:
      (WebKit):
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::respondToChangedSelection):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      (WebFrameLoaderClient):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
      (WebKit::WebPopupMenu::updateFromElement):
      * WebProcess/WebKitMain.cpp:
      * WebProcess/WebPage/DrawingArea.h:
      (WebKit):
      (DrawingArea):
      * WebProcess/WebPage/DrawingAreaImpl.cpp:
      (WebKit::DrawingAreaImpl::createGraphicsContext):
      * WebProcess/WebPage/DrawingAreaImpl.h:
      (DrawingAreaImpl):
      * WebProcess/WebPage/LayerTreeHost.cpp:
      (WebKit::LayerTreeHost::create):
      * WebProcess/WebPage/LayerTreeHost.h:
      (WebCore):
      (WebKit):
      (LayerTreeHost):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit):
      * WebProcess/WebPage/WebFrame.h:
      (WebFrame):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::installPageOverlay):
      (WebKit::WebPage::uninstallPageOverlay):
      (WebKit::WebPage::getWebArchiveOfFrame):
      (WebKit):
      * WebProcess/WebPage/WebPage.h:
      (WebPage):
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::initializeWebProcess):
      (WebKit::WebProcess::ensurePrivateBrowsingSession):
      (WebKit::WebProcess::destroyPrivateBrowsingSession):
      * WebProcess/WebProcess.h:
      (WebProcess):
      * WebProcess/WebProcess.messages.in:
      * config.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      30854d12
    • simon.fraser@apple.com's avatar
      Make WKViews work when layer-backed · b7c0cd3f
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=106166
      
      Reviewed by Sam Weinig.
      
      When not in TileCache mode, WebKit2 views had redraw problems on scrolling,
      if layer-backed.
      
      The issue is that the DrawingAreaProxy code tries to optimize scrolling by
      calling -scrollRect:by: on the WKView (an NSView) to copy bits, rather than
      repainting the entire view. However, -scrollRect:by: does nothing for NSViews
      that have layers.
      
      Fix by plumbing through a canScrollView() function which PageClientImpl()
      implements, returning true if the view does not have layer backing.
      When canScrollView() is false, DrawingAreaProxyImpl::incorporateUpdate()
      dirties the entire view.
      
      * UIProcess/API/gtk/PageClientImpl.h:
      (WebKit::PageClientImpl::canScrollView):
      * UIProcess/API/mac/PageClientImpl.h:
      (PageClientImpl):
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::canScrollView):
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      (QRawWebViewPrivate::canScrollView):
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::canScrollView):
      * UIProcess/WebPageProxy.h:
      * UIProcess/efl/PageClientBase.h:
      (WebKit::PageClientBase::canScrollView):
      * UIProcess/qt/QtPageClient.h:
      (WebKit::QtPageClient::canScrollView):
      * UIProcess/win/WebView.h:
      (WebKit::WebView::canScrollView):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7c0cd3f
  24. 28 Dec, 2012 1 commit
    • mrobinson@webkit.org's avatar
      [GTK][WK2] Add support for IME Composition · feba23d4
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65093
      
      Reviewed by Carlos Garcia Campos.
      
      Source/WebCore:
      
      No new tests. The GtkInputMethodFilter is covered by unit tests in TestWebKitAPI.
      Doing functional tests for this behavior is much more complex.
      
      * platform/gtk/GtkInputMethodFilter.cpp:
      (WebCore::GtkInputMethodFilter::sendCompositionAndPreeditWithFakeKeyEvents): Now
      pass along whether or not an event was faked.
      * platform/gtk/GtkInputMethodFilter.h: Ditto.
      
      Source/WebKit/gtk:
      
      Update the method signatures for concrete WebKit1 implementation of
      the GtkInputMethodFilter.
      
      * WebCoreSupport/WebViewInputMethodFilter.cpp:
      (WebKit::WebViewInputMethodFilter::sendSimpleKeyEvent):
      (WebKit::WebViewInputMethodFilter::sendKeyEventWithCompositionResults):
      * WebCoreSupport/WebViewInputMethodFilter.h:
      (WebViewInputMethodFilter):
      
      Source/WebKit2:
      
      Add a WebKit2 implementation of the GtkInputMethodFilter and provide
      the necessary plumbing to pass composition information along with
      input method events.
      
      * GNUmakefile.list.am: Add new files to the source list.
      * Shared/EditorState.cpp: The cursorRect is now passed for GTK+ as well as
      Qt, so update the encode and decode methods to pass that along.
      * Shared/EditorState.h: Add the cursorRect member for GTK+ as well.
      * Shared/NativeWebKeyboardEvent.h:
      (NativeWebKeyboardEvent): Keyboard events should also have knowledge of
      the compositionResults and whether or not the event was faked for composition
      purposes.
      * Shared/gtk/NativeWebKeyboardEventGtk.cpp: Ditto.
      * Shared/gtk/WebEventFactory.cpp:
      (WebKit::WebEventFactory::createWebKeyboardEvent): Copy the logic of PlatformKeyEvent,
      for properly setting the windows key code and the event text from the composition
      results.
      * Shared/gtk/WebEventFactory.h: The createWebKeyboardEvent factory now takes a
      CompositionResults argument.
      * UIProcess/API/gtk/PageClientImpl.cpp:
      (WebKit::PageClientImpl::doneWithKeyEvent): Don't forward keyboard events that
      were faked for composition reasons. These events originated from WebKit and should
      never be passed to parent classes.
      (WebKit::PageClientImpl::updateTextInputState): Plumb through the updateTextInputState
      method to the WebViewBase.
      * UIProcess/API/gtk/PageClientImpl.h:
      (PageClientImpl): Add a updateTextInputState method.
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (_WebKitWebViewBasePrivate): Instead of having an input method context as a member
      keep a WebViewBaseInputMethodFilter.
      (webkitWebViewBaseRealize): Set the filter widget when the WebViewBase is realized.
      (webkit_web_view_base_init): No longer create a input method context during init.
      (webkitWebViewBaseFocusInEvent): Pass along focus in events to the filter.
      (webkitWebViewBaseFocusOutEvent): Pass along focus out events to the filter.
      (webkitWebViewBaseKeyPressEvent): Instead of passing key presses directly to the WebProcess,
      filter them through the input method filter.
      (webkitWebViewBaseKeyReleaseEvent): Ditto.
      (webkitWebViewBaseButtonPressEvent): Notify the input method filter about button press events.
      (webkitWebViewBaseGetIMContext): The input method filter owns the input method now.
      (webkitWebViewBaseSetInputMethodState): Add a bit of plumbing for the PageClient.
      (webkitWebViewBaseUpdateTextInputState): Ditto.
      * UIProcess/API/gtk/WebKitWebViewBasePrivate.h: Add plumbing declarations.
      * UIProcess/API/gtk/WebViewBaseInputMethodFilter.cpp: Added. An implementation of GtkInputMethodFilter for WebKit2.
      * UIProcess/API/gtk/WebViewBaseInputMethodFilter.h: Copied from Source/WebKit/gtk/WebCoreSupport/WebViewInputMethodFilter.h.
      * UIProcess/PageClient.h:
      (PageClient): updateInputMethod state is now for both Qt and GTK+.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::editorStateChanged): Pass the editor state for GTK+ as well as Qt.
      (WebKit::WebPageProxy::setComposition): Moved this method from WebPageProxyQt as it's used for GTK+ now as well.
      (WebKit::WebPageProxy::confirmComposition): Ditto.
      (WebKit::WebPageProxy::cancelComposition): Ditto.
      * UIProcess/WebPageProxy.h:
      (WebPageProxy): The setInputMethodState message is for GTK+ as well as Qt now.
      * UIProcess/WebPageProxy.messages.in: Ditto.
      * UIProcess/gtk/WebPageProxyGtk.cpp:
      (WebKit::WebPageProxy::setInputMethodState): Ditto.
      * UIProcess/qt/WebPageProxyQt.cpp: Move some methods to the platform-independent file.
      * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp: More closely match the WebKit1
      logic for dealing with key events so that composition events will be handled properly.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::editorState): Properly pass the cursorRect for GTK+.
      (WebKit::targetFrameForEditing): Moved from the Qt file, because its used by GTK+ as well. They
      now pass along the updated EditorState as well, just like the Mac versions.
      (WebKit::WebPage::confirmComposition): Ditto.
      (WebKit::WebPage::setComposition): Ditto.
      (WebKit::WebPage::cancelComposition): Ditto.
      * WebProcess/WebPage/WebPage.h: The above messages are now for GTK+ as well as Qt.
      * WebProcess/WebPage/WebPage.messages.in: Ditto.
      * WebProcess/WebPage/qt/WebPageQt.cpp: Moved some methods to the platform-independent file.
      
      Tools:
      
      Update unit tests for GtkInputMethodFilter to note whether or not an event
      was a fake event synthesized for composition purposes. This is now used
      for WebKit2.
      
      * TestWebKitAPI/Tests/gtk/InputMethodFilter.cpp:
      (TestWebKitAPI::TestInputMethodFilter::sendSimpleKeyEvent):
      (TestWebKitAPI::TestInputMethodFilter::sendKeyEventWithCompositionResults):
      (TestWebKitAPI::TEST):
      * gtk/generate-gtkdoc:
      (get_webkit2_options): Skip new files in the WebKit2 source directory for documentation
      generation.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138544 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      feba23d4
  25. 04 Dec, 2012 1 commit
    • andersca@apple.com's avatar
      Remove PageClient::didChangeScrollbarsForMainFrame · c0a4c3a4
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=104077
      
      Reviewed by Andreas Kling.
      
      The aforementioned function was only used to implement some Snow Leopard specific behavior that we no longer support.
      
      * UIProcess/API/gtk/PageClientImpl.cpp:
      * UIProcess/API/gtk/PageClientImpl.h:
      (PageClientImpl):
      * UIProcess/API/mac/PageClientImpl.h:
      (PageClientImpl):
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/mac/WKView.mm:
      (-[WKView viewWillMoveToWindow:]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didChangeScrollbarsForMainFrame):
      * UIProcess/efl/PageClientBase.cpp:
      (WebKit):
      * UIProcess/efl/PageClientBase.h:
      (PageClientBase):
      * UIProcess/qt/QtPageClient.h:
      * UIProcess/win/WebView.cpp:
      * UIProcess/win/WebView.h:
      (WebView):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0a4c3a4
  26. 29 Nov, 2012 2 commits
    • andersca@apple.com's avatar
      Add a minimumLayoutWidth WKView property · 3d26164c
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=103660
      <rdar://problem/11791729>
      
      Reviewed by Beth Dakin.
      
      When minimumLayoutWidth is set to a positive value, the WKView will update its intrinsic content size given the layout width.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::intrinsicContentSizeDidChange):
      Call the WKView.
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView intrinsicContentSize]):
      Override the intrinsicContentSize getter.
      
      (-[WKView _setIntrinsicContentSize:]):
      Update the intrinsic content size and mark it as invalid.
      
      (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      By default, the WKView should have no intrinsic size.
      
      (-[WKView minimumLayoutWidth]):
      (-[WKView setMinimumLayoutWidth:]):
      Call through to the WebPageProxy object.
      
      * UIProcess/API/mac/WKViewPrivate.h:
      Add the SPI here.
      
      * UIProcess/DrawingAreaProxy.h:
      (WebKit::DrawingAreaProxy::minimumLayoutWidthDidChange):
      (WebKit::DrawingAreaProxy::didUpdateGeometry):
      (WebKit::DrawingAreaProxy::intrinsicContentSizeDidChange):
      Add empty stubs.
      
      * UIProcess/DrawingAreaProxy.messages.in:
      Update the DidUpdateGeometry signature and add IntrinsicContentSizeDidChange.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      Initialize the minimum layout width.
      
      (WebKit::WebPageProxy::setMinimumLayoutWidth):
      Update the minimum layout width and call the drawing area proxy.
      
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::minimumLayoutWidth):
      Add getter.
      
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
      (TiledCoreAnimationDrawingAreaProxy):
      * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
      (WebKit::TiledCoreAnimationDrawingAreaProxy::minimumLayoutWidthDidChange):
      Update the geometry if needed.
      
      (WebKit::TiledCoreAnimationDrawingAreaProxy::didUpdateGeometry):
      Update the intrinsic content size.
      
      (WebKit::TiledCoreAnimationDrawingAreaProxy::intrinsicContentSizeDidChange):
      Call through to WebPageProxy::intrinsicContentSizeDidChange.
      
      (WebKit::TiledCoreAnimationDrawingAreaProxy::sendUpdateGeometry):
      Pass along the minimum layout width.
      
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::intrinsicContentSizeDidChange):
      Call through to the page client.
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::contentsSizeChanged):
      Call DrawingArea::mainFrameContentSizeChanged.
      
      * WebProcess/WebPage/DrawingArea.h:
      (WebKit::DrawingArea::mainFrameContentSizeChanged):
      Add empty stub.
      
      (WebKit::DrawingArea::updateGeometry):
      Update signature.
      
      * WebProcess/WebPage/DrawingArea.messages.in:
      Add minimumLayoutWidth to UpdateGeometry.
      
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::mainFrameContentSizeChanged):
      If the content size change is not coming from updateGeometry, send an InstrinsicContentSizeDidChange message.
      
      (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
      If m_minimumLayoutWidth is positive, do an initial layout pass to figure out the height of the page and then do another
      layout with the viewport set to that height.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d26164c
    • michael.bruning@digia.com's avatar
      [Qt][WK2] Commit the preedit string in the input method when focus is about to be moved. · 278aef30
      michael.bruning@digia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97774
      
      Reviewed by Kenneth Rohde Christiansen.
      
      Implements the handler for willSetInputMethodState in WebKit2 in Qt.
      This is needed to tell the input method instance in Qt to commit its
      preedit content when the focus has moved to another node to prevent a
      bug where the old preedit string was kept as the preedit string and
      the editor moved focus back to the old node when continuing to enter
      text via the input method.
      
      This behavior is analog to the behavior of the QtQuick text input
      elements.
      
      * UIProcess/API/qt/raw/qrawwebview.cpp:
      (QRawWebViewPrivate::handleWillSetInputMethodState):
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      (QRawWebViewPrivate):
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/qt/QtPageClient.cpp:
      (WebKit::QtPageClient::handleWillSetInputMethodState):
      (WebKit):
      * UIProcess/qt/QtPageClient.h:
      (QtPageClient):
      * UIProcess/qt/QtWebPageEventHandler.cpp:
      (WebKit::QtWebPageEventHandler::handleWillSetInputMethodState):
      (WebKit):
      * UIProcess/qt/QtWebPageEventHandler.h:
      (QtWebPageEventHandler):
      * UIProcess/qt/WebPageProxyQt.cpp:
      (WebKit::WebPageProxy::willSetInputMethodState):
      (WebKit):
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      (WebKit::WebEditorClient::willSetInputMethodState):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136126 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      278aef30
  27. 28 Nov, 2012 1 commit
    • timothy_horton@apple.com's avatar
      [mac] Dictionary lookup bubble loses intrarange formatting · 2c0bff45
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=103496
      <rdar://problem/12762172>
      
      Reviewed by Alexey Proskuryakov.
      
      Pass an NSAttributedString (made via WebHTMLConverter on the WebProcess side) through
      when showing dictionary popups, so that we preserve more formatting in the yellow dictionary
      highlight. Also, remove the fontInfo member from DictionaryPopupInfo, since we don't need it anymore.
      
      * Shared/DictionaryPopupInfo.cpp:
      (WebKit::DictionaryPopupInfo::encode): Don't encode the now-removed fontInfo member.
      (WebKit::DictionaryPopupInfo::decode): Don't decode the now-removed fontInfo member.
      * Shared/DictionaryPopupInfo.h: Remove the fontInfo member.
      * UIProcess/API/mac/PageClientImpl.h:
      (PageClientImpl): didPerformDictionaryLookup should take an AttributedString instead of a plain String, and
      no longer needs to take the page scale factor.
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::didPerformDictionaryLookup): Use the AttributedString we're handed from the WebProcess
      instead of constructing one ourselves; this way, we have all the attributes instead of just a single font.
      * UIProcess/PageClient.h:
      (PageClient): didPerformDictionaryLookup should take an AttributedString instead of a plain String.
      * UIProcess/WebPageProxy.h:
      (WebPageProxy): didPerformDictionaryLookup should take an AttributedString instead of a plain String.
      * UIProcess/WebPageProxy.messages.in: DidPerformDictionaryLookup should take an AttributedString instead of a plain String.
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::didPerformDictionaryLookup): didPerformDictionaryLookup should take an AttributedString instead of a plain String.
      * WebProcess/WebPage/mac/WebPageMac.mm:
      (WebKit::WebPage::performDictionaryLookupForRange): performDictionaryLookupForRange should hand WebPageProxy an AttributedString
      constructed via WebHTMLConverter instead of a plain text string paired with a single font descriptor.
      Also, scale the size of every font attribute by the current pageScaleFactor.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2c0bff45
  28. 15 Nov, 2012 1 commit
    • andersca@apple.com's avatar
      Consolidate four accelerated compositing WKView methods into a single method · 771cc286
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=102419
      
      Reviewed by Andreas Kling.
      
      Add a single -[WKView _setAcceleratedCompositingModeRootLayer:] method and have
      the existing PageClientImpl member functions call it. Also, add a new
      PageClient member function, setAcceleratedCompositingRootLayer.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::enterAcceleratedCompositingMode):
      (WebKit::PageClientImpl::exitAcceleratedCompositingMode):
      (WebKit::PageClientImpl::updateAcceleratedCompositingMode):
      (WebKit::PageClientImpl::setAcceleratedCompositingRootLayer):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _processDidCrash]):
      (-[WKView _setAcceleratedCompositingModeRootLayer:]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.h:
      * UIProcess/mac/RemoteLayerTreeHost.mm:
      (WebKit::RemoteLayerTreeHost::commit):
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::setAcceleratedCompositingRootLayer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      771cc286
  29. 24 Oct, 2012 1 commit
    • carlosgc@webkit.org's avatar
      [GTK] Add API to get the WebKitWebView associated to a WebKitDownload to WebKit2 GTK+ · 40dff4a2
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99836
      
      Reviewed by Martin Robinson.
      
      Add webkit_download_get_web_view() to get the WebKitWebView that
      initiated the download and webkit_web_view_download_uri() to start
      a new download associated to a WebKitWebView.
      
      * UIProcess/API/gtk/PageClientImpl.cpp:
      (WebKit::PageClientImpl::handleDownloadRequest): Call
      webkitWebViewBaseHandleDownloadRequest().
      * UIProcess/API/gtk/PageClientImpl.h:
      (PageClientImpl): Add handleDownloadRequest().
      * UIProcess/API/gtk/WebKitDownload.cpp:
      (webkitDownloadSetWebView): Set the WebKitWebView associated to
      the download.
      (webkit_download_get_web_view): Public method to get the
      WebKitWebView associated to the download.
      * UIProcess/API/gtk/WebKitDownload.h:
      * UIProcess/API/gtk/WebKitDownloadPrivate.h:
      * UIProcess/API/gtk/WebKitWebContext.cpp:
      (webkit_web_context_download_uri): Use the new helper
      webkitWebContextStartDownload().
      (webkitWebContextStartDownload): Helper function to start a new
      download that is also used by WebKitWebView.
      * UIProcess/API/gtk/WebKitWebContextPrivate.h:
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkitWebViewHandleDownloadRequest): Call
      webkitDownloadSetWebView() to associate the download with the
      WebKitWebView.
      (webkitWebViewConstructed): Set a download request handler.
      (webkit_web_view_download_uri): Public method to start a new
      download associated to the web view.
      * UIProcess/API/gtk/WebKitWebView.h:
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (webkitWebViewBaseSetDownloadRequestHandler): Set a function
      pointer to be called when a new download is request for the web
      view.
      (webkitWebViewBaseHandleDownloadRequest): Call the download
      request handler if any.
      * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
      * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
      * UIProcess/API/gtk/tests/TestDownloads.cpp:
      (testDownloadLocalFile):
      (testDownloadLocalFileError):
      (testDownloadRemoteFile):
      (testDownloadRemoteFileError):
      (testWebViewDownloadURI):
      (testPolicyResponseDownload):
      (beforeAll):
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::receivedPolicyDecision):
      (WebKit):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40dff4a2
  30. 23 Oct, 2012 2 commits
    • commit-queue@webkit.org's avatar
      [EFL][WK2] Use the port independent PageViewportController · b623bbb1
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99850
      
      Patch by Yael Aharon <yael.aharon@intel.com> on 2012-10-23
      Reviewed by Kenneth Rohde Christiansen.
      
      Take PageViewportController into use, and rely on it to calculate
      scroll position and zoom level.
      With this patch, we can do intra page navigation and use the scrollwheel
      to scroll, when WTF_USE_TILED_BACKING_STORE and all related flags are enabled.
      
      * CMakeLists.txt:
      * UIProcess/API/efl/PageClientImpl.cpp:
      (WebKit::PageClientImpl::didChangeViewportProperties):
      (WebKit::PageClientImpl::pageDidRequestScroll):
      (WebKit::PageClientImpl::didChangeContentsSize):
      (WebKit):
      (WebKit::PageClientImpl::didRenderFrame):
      (WebKit::PageClientImpl::pageTransitionViewportReady):
      * UIProcess/API/efl/PageClientImpl.h:
      (WebKit):
      (PageClientImpl):
      (WebKit::PageClientImpl::setPageViewportController):
      * UIProcess/API/efl/PageViewportControllerClientEfl.cpp:
      (WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl):
      (WebKit::PageViewportControllerClientEfl::display):
      (WebKit::PageViewportControllerClientEfl::updateViewportSize):
      (WebKit::PageViewportControllerClientEfl::setVisibleContentsRect):
      (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
      (WebKit::PageViewportControllerClientEfl::setViewportPosition):
      (WebKit::PageViewportControllerClientEfl::setContentsScale):
      (WebKit::PageViewportControllerClientEfl::didResumeContent):
      (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
      (WebKit::PageViewportControllerClientEfl::setController):
      * UIProcess/API/efl/PageViewportControllerClientEfl.h:
      (WebKit::PageViewportControllerClientEfl::scaleFactor):
      (WebKit::PageViewportControllerClientEfl::scrollPosition):
      (PageViewportControllerClientEfl):
      * UIProcess/API/efl/ewk_view.cpp:
      (Ewk_View_Private_Data):
      (mapToWebContent):
      (_ewk_view_smart_mouse_wheel):
      (_ewk_view_smart_mouse_down):
      (_ewk_view_smart_mouse_up):
      (_ewk_view_smart_mouse_move):
      (_ewk_view_initialize):
      (ewk_view_load_committed):
      (ewk_view_feed_touch_event):
      * UIProcess/API/efl/ewk_view_private.h:
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
      (WebKit::LayerTreeCoordinatorProxy::didRenderFrame):
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/PageViewportController.cpp:
      * UIProcess/PageViewportController.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit):
      (WebKit::WebPageProxy::pageTransitionViewportReady):
      (WebKit::WebPageProxy::didRenderFrame):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/efl/PageLoadClientEfl.cpp:
      (WebKit):
      (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
      (WebKit::PageLoadClientEfl::PageLoadClientEfl):
      * UIProcess/efl/PageLoadClientEfl.h:
      (PageLoadClientEfl):
      * UIProcess/qt/WebPageProxyQt.cpp:
      (WebKit):
      (WebKit::WebPageProxy::setUserScripts):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::didCompletePageTransition):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b623bbb1
    • ryuan.choi@samsung.com's avatar
      [EFL][WK2] Add support for IMF composition · 84707780
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=89552
      
      Reviewed by Gyuyoung Kim.
      
      .:
      
      * Source/cmake/FindEcore.cmake: Checked Ecore_IMF.
      
      Source/WebKit2:
      
      Implemented basic IMF support.
      
      * PlatformEfl.cmake:
      * Shared/NativeWebKeyboardEvent.h:
      (NativeWebKeyboardEvent):
      (WebKit::NativeWebKeyboardEvent::isFiltered):
      Added to determine whether current keyboard event is compositing.
      * Shared/efl/NativeWebKeyboardEventEfl.cpp:
      (WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent):
      * UIProcess/API/efl/PageClientImpl.cpp:
      (WebKit::PageClientImpl::updateTextInputState):
      Added to change input state.
      * UIProcess/API/efl/PageClientImpl.h:
      (PageClientImpl):
      * UIProcess/API/efl/ewk_main.cpp:
      (ewk_init): Called ecore_imf_init.
      (ewk_shutdown): Called ecore_imf_shutdown.
      * UIProcess/API/efl/ewk_view.cpp:
      (_Ewk_View_Private_Data):
      (_Ewk_View_Private_Data::_Ewk_View_Private_Data):
      (_Ewk_View_Private_Data::~_Ewk_View_Private_Data):
      (_ewk_view_smart_key_down): Modified to send keyboard event to IMF.
      (_ewk_view_smart_mouse_up): Modified to reset input method context.
      (_ewk_view_preedit_changed): Added to send composition string.
      (_ewk_view_commit): Added to send a message that composition is finished.
      (_ewk_view_imf_context_create): Added to create Ecore_IMF_Context.
      (_ewk_view_imf_context_destroy): Added to destroy Ecore_IMF_Context.
      (ewk_view_text_input_state_update): Added to update input state.
      * UIProcess/API/efl/ewk_view_private.h:
      * UIProcess/PageClient.h: Moved updateTextInputState() to share with EFL port.
      (PageClient):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::editorStateChanged):
      Added PLATFORM(EFL) to call updateTextInputState()
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/WebPageProxy.messages.in:
      Added HandleInputMethodKeydown message to determine whether keydown is handled.
      * UIProcess/efl/WebPageProxyEfl.cpp:
      (WebKit::WebPageProxy::handleInputMethodKeydown):
      Added to check whether input method handled keydown.
      (WebKit::WebPageProxy::confirmComposition): Added to support composition.
      (WebKit::WebPageProxy::setComposition): Ditto.
      (WebKit::WebPageProxy::cancelComposition): Ditto.
      * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
      (WebKit::WebEditorClient::handleInputMethodKeydown):
      Added to check whether input method handled keydown.
      * WebProcess/WebPage/WebPage.h:
      (WebPage):
      * WebProcess/WebPage/WebPage.messages.in: Added messages to support composition.
      * WebProcess/WebPage/efl/WebPageEfl.cpp:
      (WebKit::targetFrameForEditing): Referenced from QT port to get focused frame.
      (WebKit::WebPage::confirmComposition): Added to support composition.
      (WebKit::WebPage::setComposition): Ditto.
      (WebKit::WebPage::cancelComposition): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      84707780
  31. 01 Oct, 2012 3 commits
    • jocelyn.turcotte@digia.com's avatar
      [Qt] Decide when to apply a scrolled position to the viewport based on the... · a1081ec3
      jocelyn.turcotte@digia.com authored
      [Qt] Decide when to apply a scrolled position to the viewport based on the rect covered by the tiles
      https://bugs.webkit.org/show_bug.cgi?id=97777
      
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebCore:
      
      * platform/graphics/TiledBackingStore.cpp:
      (WebCore::TiledBackingStore::createTiles):
      * platform/graphics/TiledBackingStore.h:
      (WebCore::TiledBackingStore::coverRect):
      (WebCore::TiledBackingStore::setCoverRect):
      (TiledBackingStore):
      
      Source/WebKit2:
      
      This patch achieves two things:
      - Apply a short scroll position request directly if we already have rendered tiles
        at this position.
      - Since our visible rect request is asynchronous, the next frame might not always
        be the one covering this position. This will wait for a frame that does to apply it.
      
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      (QRawWebViewPrivate::didRenderFrame):
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
      (WebKit::LayerTreeCoordinatorProxy::didRenderFrame):
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
      (LayerTreeCoordinatorProxy):
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/PageViewportController.cpp:
      (WebKit::PageViewportController::didCommitLoad):
      (WebKit::PageViewportController::didRenderFrame):
      (WebKit::PageViewportController::pageDidRequestScroll):
      * UIProcess/PageViewportController.h:
      (PageViewportController):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/qt/QtPageClient.cpp:
      (WebKit::QtPageClient::didRenderFrame):
      * UIProcess/qt/QtPageClient.h:
      (QtPageClient):
      * UIProcess/qt/WebPageProxyQt.cpp:
      (WebKit::WebPageProxy::didRenderFrame):
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
      (WebCore::CoordinatedGraphicsLayer::coverRect):
      * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
      (WebKit::LayerTreeCoordinator::flushPendingLayerChanges):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1081ec3
    • jocelyn.turcotte@digia.com's avatar
      [Qt] Delay viewport position, scale and contents size updates until tiles are rendered · 151441ef
      jocelyn.turcotte@digia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97775
      
      Reviewed by Kenneth Rohde Christiansen.
      
      A few events from the web process can cause the viewport position or scale to be
      adjusted in the UI process:
      - Scroll position request
      - Viewport attributes (initialScale, minimumScale)
      - Contents size change
      
      We previously applied those updates directly to the viewport, which would then in turn
      produce a corresponding visible rect request to the web process to render the contents
      at the new position/scale. This could leave the viewport showing the old content, either
      by scaling the tiles, or by showing checkerboard if no contents was rendered at this
      position yet. When the web process was done rendering new tiles, the proper tiles
      were then shown to the user.
      Since many of these updates happen during page load, all producing an itterative adjustment
      to the viewport, this could show sharpness and position jitter until the final rendering
      was done.
      
      This patch makes those updates go through the PageViewportController first and then to the
      QQuickWebView rather than the other way around, and keep them pending until the
      LayerTreeHostProxy reports that the new tiles are ready to be shown. Since the rendering
      is blocked until the page first layout is done, this apply the modifications to
      the viewport only once when the first frame is ready to be shown.
      
      * UIProcess/API/qt/qquickwebview.cpp:
      * UIProcess/API/qt/qquickwebview_p_p.h:
      (QQuickWebViewFlickablePrivate):
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      (QRawWebViewPrivate::didRenderFrame):
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
      (WebKit::LayerTreeCoordinatorProxy::didRenderFrame):
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
      (LayerTreeCoordinatorProxy):
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/PageViewportController.cpp:
      (WebKit::PageViewportController::didCommitLoad):
      (WebKit::PageViewportController::didChangeContentsSize):
      (WebKit::PageViewportController::didRenderFrame):
      (WebKit::PageViewportController::initialViewportReady):
      (WebKit::PageViewportController::pageDidRequestScroll):
      (WebKit::PageViewportController::didChangeContentsVisibility):
      (WebKit::PageViewportController::resumeContent):
      (WebKit::PageViewportController::applyScaleAfterRenderingContents):
      (WebKit):
      (WebKit::PageViewportController::applyPositionAfterRenderingContents):
      (WebKit::PageViewportController::updateMinimumScaleToFit):
      * UIProcess/PageViewportController.h:
      (PageViewportController):
      * UIProcess/PageViewportControllerClient.h:
      (PageViewportControllerClient):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/qt/PageViewportControllerClientQt.cpp:
      (WebKit::PageViewportControllerClientQt::didChangeContentsSize):
      * UIProcess/qt/PageViewportControllerClientQt.h:
      (PageViewportControllerClientQt):
      * UIProcess/qt/QtPageClient.cpp:
      (WebKit::QtPageClient::didRenderFrame):
      (WebKit):
      (WebKit::QtPageClient::didChangeContentsSize):
      * UIProcess/qt/QtPageClient.h:
      (QtPageClient):
      * UIProcess/qt/QtWebPageLoadClient.cpp:
      (WebKit::QtWebPageLoadClient::didCommitLoad):
      * UIProcess/qt/WebPageProxyQt.cpp:
      (WebKit::WebPageProxy::didRenderFrame):
      (WebKit):
      * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
      (WebKit::LayerTreeCoordinator::flushPendingLayerChanges):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      151441ef
    • jocelyn.turcotte@digia.com's avatar
      [Qt] Wait for the UI process before re-enabling rendering during page load · 2088a03d
      jocelyn.turcotte@digia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=97773
      
      Reviewed by Kenneth Rohde Christiansen.
      
      During page navigation, WebCore might ask asynchronously the UI process to
      scroll to an anchor or restored history position and the UI process will
      return the corresponding visible rect to be rendered by the web process.
      
      To avoid rendering tiles for the invalidated area by the new page layout at
      the wrong position, we should do an extra message round-trip to the UI
      process before resuming the rendering.
      Assuming that all messages are handled in order by both the web and UI process,
      sending the round-trip request in the web process once we sent all scroll
      requests, contents size and viewport attributes updates and then handling
      the round-trip response, we make sure that final visible rect request have
      been handled already.
      
      * UIProcess/API/qt/raw/qrawwebview.cpp:
      (QRawWebViewPrivate::pageTransitionViewportReady):
      * UIProcess/API/qt/raw/qrawwebview_p_p.h:
      (QRawWebViewPrivate):
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/PageViewportController.cpp:
      (WebKit::PageViewportController::pageTransitionViewportReady):
      (WebKit):
      * UIProcess/PageViewportController.h:
      (PageViewportController):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/qt/QtPageClient.cpp:
      (WebKit::QtPageClient::pageTransitionViewportReady):
      (WebKit):
      * UIProcess/qt/QtPageClient.h:
      (QtPageClient):
      * UIProcess/qt/WebPageProxyQt.cpp:
      (WebKit::WebPageProxy::commitPageTransitionViewport):
      (WebKit):
      (WebKit::WebPageProxy::pageTransitionViewportReady):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::WebFrameLoaderClient):
      (WebKit::WebFrameLoaderClient::dispatchDidLayout):
      (WebKit::WebFrameLoaderClient::frameLoadCompleted):
      (WebKit::WebFrameLoaderClient::provisionalLoadStarted):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
      (WebFrameLoaderClient):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::didStartPageTransition):
      (WebKit):
      (WebKit::WebPage::didCompletePageTransition):
      * WebProcess/WebPage/WebPage.h:
      (WebPage):
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebPage/qt/WebPageQt.cpp:
      (WebKit::WebPage::commitPageTransitionViewport):
      (WebKit):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2088a03d
  32. 09 Sep, 2012 1 commit
    • pierre.rossi@gmail.com's avatar
      [WK2] expose element rect for color input type · e2489219
      pierre.rossi@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=91664
      
      Reviewed by Simon Hausmann.
      
      Source/WebKit2:
      
      In the same way we do for select elements already. This allows placing the picker
      in a sensible location.
      
      * UIProcess/API/efl/PageClientImpl.cpp: Update the function's signature.
      (WebKit::PageClientImpl::createColorChooserProxy): Ditto.
      * UIProcess/API/efl/PageClientImpl.h: Ditto.
      (PageClientImpl):
      * UIProcess/API/gtk/PageClientImpl.cpp:
      (WebKit::PageClientImpl::createColorChooserProxy): Ditto.
      * UIProcess/API/gtk/PageClientImpl.h: Ditto.
      (PageClientImpl):
      * UIProcess/API/mac/PageClientImpl.h: Ditto.
      (PageClientImpl):
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::createColorChooserProxy): Ditto.
      * UIProcess/API/qt/raw/qrawwebview.cpp:
      (QRawWebViewPrivate::createColorChooserProxy): Ditto.
      * UIProcess/API/qt/raw/qrawwebview_p_p.h: Ditto.
      (QRawWebViewPrivate):
      * UIProcess/PageClient.h: Ditto.
      (PageClient):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::showColorChooser): Compute the rect mapped to the current view's transform.
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/qt/QtPageClient.cpp:
      (WebKit::QtPageClient::createColorChooserProxy):
      * UIProcess/qt/QtPageClient.h:
      (QtPageClient):
      * UIProcess/qt/WebColorChooserProxyQt.cpp:
      (ColorChooserContextObject):
      (WebKit::ColorChooserContextObject::ColorChooserContextObject):
      (WebKit::ColorChooserContextObject::elementRect):
      (WebKit::ColorChooserContextObject::accept):
      (WebKit::WebColorChooserProxyQt::WebColorChooserProxyQt):
      * UIProcess/qt/WebColorChooserProxyQt.h:
      (WebKit::WebColorChooserProxyQt::create):
      (WebColorChooserProxyQt):
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::createColorChooserProxy): Update the function's signature.
      * UIProcess/win/WebView.h:
      (WebView): Ditto.
      * WebProcess/WebCoreSupport/WebColorChooser.cpp:
      (WebKit::WebColorChooser::WebColorChooser):
      
      Tools:
      
      Update the QML logic in MiniBrowser to take advantage of this.
      The picker size is now hardcoded and we try to place it below the
      input element if possible.
      
      * MiniBrowser/qt/qml/ColorChooser.qml:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2489219
  33. 07 Aug, 2012 1 commit
    • commit-queue@webkit.org's avatar
      [WK2][EFL] Implement accelerated compositing on WK2 Efl port · adb694db
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=89840
      
      Patch by YoungTaeck Song <youngtaeck.song@samsung.com> on 2012-08-07
      Reviewed by Noam Rosenthal.
      
      .:
      
      Implement accelerated composition with TiledBackingStore on WK2 Efl port.
      This implementation is based on COORDINATED_GRAPHICS.
      Add COORDINATED_GRAPHICS related definitions in OptionsEfl.cmake.
      
      * Source/cmake/OptionsEfl.cmake:
      
      Source/WebKit2:
      
      Implement accelerated composition with TiledBackingStore on WK2 Efl port.
      This implementation is based on COORDINATED_GRAPHICS.
      
      * CMakeLists.txt:
      * PlatformEfl.cmake:
      * Shared/ShareableSurface.cpp:
      * Shared/WebCoreArgumentCoders.cpp:
      * Shared/WebCoreArgumentCoders.h:
      * UIProcess/API/efl/PageClientImpl.cpp:
      (WebKit::PageClientImpl::PageClientImpl):
      (WebKit::PageClientImpl::didChangeContentsSize):
      (WebKit):
      * UIProcess/API/efl/PageClientImpl.h:
      (PageClientImpl):
      * UIProcess/API/efl/ViewportProcessor.cpp: Added.
      (WebKit):
      (WebKit::ViewportProcessor::ViewportProcessor):
      (WebKit::ViewportProcessor::~ViewportProcessor):
      (WebKit::ViewportProcessor::display):
      (WebKit::ViewportProcessor::updateViewportSize):
      (WebKit::ViewportProcessor::setVisibleContentsRect):
      (WebKit::ViewportProcessor::didChangeContentsSize):
      * UIProcess/API/efl/ViewportProcessor.h: Added.
      (WebKit):
      (ViewportProcessor):
      (WebKit::ViewportProcessor::create):
      (WebKit::ViewportProcessor::drawingArea):
      (WebKit::ViewportProcessor::viewSize):
      * UIProcess/API/efl/ewk_view.cpp:
      (_Ewk_View_Private_Data):
      (_ewk_view_smart_calculate):
      (ewk_view_base_add):
      (ewk_view_display):
      (ewk_view_contents_size_changed):
      * UIProcess/API/efl/ewk_view_private.h:
      * UIProcess/PageClient.h:
      (PageClient):
      * UIProcess/WebPageProxy.cpp:
      (WebKit):
      (WebKit::WebPageProxy::didChangeContentsSize):
      * UIProcess/WebPageProxy.h:
      (WebPageProxy):
      * UIProcess/WebPageProxy.messages.in:
      * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
      * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
      * WebProcess/WebPage/LayerTreeHost.cpp:
      (WebKit::LayerTreeHost::create):
      * WebProcess/WebPage/LayerTreeHost.h:
      (WebKit):
      * WebProcess/efl/WebProcessMainEfl.cpp:
      (WebKit::WebProcessMainEfl):
      
      Tools:
      
      Implement accelerated composition with TiledBackingStore on WK2 Efl port.
      Add OPENGL_LIBRARIES in CMakeList.txt.
      
      * MiniBrowser/efl/CMakeLists.txt:
      * WebKitTestRunner/PlatformEfl.cmake:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      adb694db