diff options
Diffstat (limited to 'Source/WebKit2/ChangeLog')
-rw-r--r-- | Source/WebKit2/ChangeLog | 6079 |
1 files changed, 6079 insertions, 0 deletions
diff --git a/Source/WebKit2/ChangeLog b/Source/WebKit2/ChangeLog index 04a92a04e..4253caa5f 100644 --- a/Source/WebKit2/ChangeLog +++ b/Source/WebKit2/ChangeLog @@ -1,3 +1,6082 @@ +2012-11-07 Christophe Dumez <christophe.dumez@intel.com> + + Add replaceWithLiteral() method to WTF::String + https://bugs.webkit.org/show_bug.cgi?id=101257 + + Reviewed by Benjamin Poulain. + + Substitute String::replace() calls by String::replaceWithLiteral() where + adequate, for efficiency. + + * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp: + (WebKit::makeURLString): + +2012-11-06 Vivek Galatage <vivekgalatage@gmail.com> + + Move DrawingAreaImpl methods graphicsLayerFactory, setRootCompositingLayer & scheduleCompositingLayerSync under ACCELERATED_COMPOSITING + https://bugs.webkit.org/show_bug.cgi?id=101427 + + Reviewed by Anders Carlsson. + + Moving these methods under the ACCELERATED_COMPOSITING flag. + This fixes broken wincairo due to use of override specifier. + + * WebProcess/WebPage/DrawingAreaImpl.cpp: + (WebKit): + * WebProcess/WebPage/DrawingAreaImpl.h: + (DrawingAreaImpl): + +2012-11-06 Viatcheslav Ostapenko <v.ostapenko@samsung.com> + + [EFL][WK2] API test crash with accelerated compositing on. + https://bugs.webkit.org/show_bug.cgi?id=101384 + + Reviewed by Gyuyoung Kim. + + If accelerated compositing is enabled API tests should create GL evas engine + instead of default one. + Also, in API tests first window resize and display often comes earlier + than enterAcceleratedCompositingMode call, so let's create GL surface in + _ewk_view_smart_calculate on first window resize. + + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_calculate): + * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp: + (EWK2UnitTest::EWK2UnitTestBase::SetUp): + +2012-11-06 Anders Carlsson <andersca@apple.com> + + Update Java related WKSI function names + https://bugs.webkit.org/show_bug.cgi?id=101414 + + Reviewed by Sam Weinig. + + * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: + (WebKit::PluginInfoStore::shouldUsePlugin): + (WebKit::PluginInfoStore::policyForPlugin): + (WebKit::PluginInfoStore::reactivateInactivePlugin): + +2012-11-06 Kiran Muppala <cmuppala@apple.com> + + Add application occlusion criterion to enable/disable process suppression on Mac + https://bugs.webkit.org/show_bug.cgi?id=100997 + + Reviewed by Alexey Proskuryakov. + + Provide support for enabling and disabling process suppression when application is completely occluded on Mac. + + * NetworkProcess/NetworkProcess.messages.in: Added message to update application occlusion status. + * NetworkProcess/mac/NetworkProcessMainMac.mm: + (WebKit::NetworkProcessMain): Removed call to take process suppression assertion since ChildProcess + takes one on constrution. + * PluginProcess/PluginProcess.messages.in: Added message to update application occlusion status. + * PluginProcess/mac/PluginProcessMainMac.mm: + (WebKit::PluginProcessMain): Removed call to take process suppression assertion since ChildProcess + takes one on construction. + * Shared/ChildProcess.cpp: + (WebKit::ChildProcess::ChildProcess): Take process suppression assertion on construction. + * Shared/ChildProcess.h: + (WebKit::ChildProcess::applicationIsOccluded): + * Shared/mac/ChildProcessMac.mm: Added. + (WebKit::ChildProcess::setApplicationIsOccluded): Release process suppression assertion if application + becomes occluded or take a new assertion if application becomes visible. + (WebKit::ChildProcess::disableProcessSuppression): + (WebKit::ChildProcess::enableProcessSuppression): + Helper methods to take and release process suppression assertion. + * SharedWorkerProcess/SharedWorkerProcess.messages.in: Added message to update application occlusion status. + * SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm: + (WebKit::SharedWorkerProcessMain): Removed call to take process suppression assertion since ChildProcess + takes one on construction. + * UIProcess/Network/NetworkProcessManager.h: + * UIProcess/Network/NetworkProcessProxy.cpp: + (WebKit::NetworkProcessProxy::didFinishLaunching): Update application occlusion status post launch. + * UIProcess/Network/NetworkProcessProxy.h: + (WebKit::NetworkProcessProxy::isValid): + * UIProcess/Network/mac/NetworkProcessManagerMac.mm: Added. + (WebKit::NetworkProcessManager::setApplicationIsOccluded): + * UIProcess/Network/mac/NetworkProcessProxyMac.mm: + (WebKit::NetworkProcessProxy::setApplicationIsOccluded): + * UIProcess/Plugins/PluginProcessManager.h: + * UIProcess/Plugins/PluginProcessProxy.cpp: + (WebKit::PluginProcessProxy::didFinishLaunching): Update application occlusion status post launch. + * UIProcess/Plugins/PluginProcessProxy.h: + (WebKit::PluginProcessProxy::isValid): + * UIProcess/Plugins/mac/PluginProcessManagerMac.mm: Added. + (WebKit::PluginProcessManager::setApplicationIsOccluded): + * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: + (WebKit::PluginProcessProxy::setApplicationIsOccluded): + * UIProcess/SharedWorkers/SharedWorkerProcessManager.h: + * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp: + (WebKit::SharedWorkerProcessProxy::didFinishLaunching): Update application occlusion status post launch. + * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h: + (WebKit::SharedWorkerProcessProxy::isValid): + * UIProcess/SharedWorkers/mac/SharedWorkerProcessManagerMac.mm: Added. + (WebKit::SharedWorkerProcessManager::setApplicationIsOccluded): + * UIProcess/SharedWorkers/mac/SharedWorkerProcessProxyMac.mm: Added. + (WebKit::SharedWorkerProcessProxy::setApplicationIsOccluded): + * UIProcess/WebContext.cpp: + (WebKit::WebContext::create): Added call to initialize process suppression support. + * UIProcess/WebContext.h: + (WebKit::WebContext::applicationIsOccluded): + * UIProcess/WebProcessProxy.cpp: + (WebKit::WebProcessProxy::didFinishLaunching): Update application occlusion status post launch. + * UIProcess/mac/WebContextMac.mm: + (WebKit::WebContext::applicationBecameVisible): + (WebKit::WebContext::applicationBecameOccluded): + Notification handlers for informing non UI WebKit2 processes of changes to application occlusion state. + (WebKit::WebContext::registerOcclusionNotificationHandlers): + (WebKit::WebContext::initializeProcessSuppressionSupport): + Helper method to register occlusion notification handlers if process suppression support is enabled. + * WebKit2.xcodeproj/project.pbxproj: + * WebProcess/WebProcess.messages.in: Added message to update application occlusion status. + * WebProcess/mac/WebProcessInitialization.mm: + (WebKit::InitializeWebProcess): Removed call to take process supression assertion since ChildProcess + takes one on construction. + +2012-11-06 Alexey Proskuryakov <ap@apple.com> + + Clean up which storage cookie jar functions use + https://bugs.webkit.org/show_bug.cgi?id=101395 + + Reviewed by Brady Eidson. + + * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: (InitWebCoreSystemInterface): + Updated for two new functions. + +2012-11-06 Jihye Kang <jye.kang@samsung.com> + + [EFL][WK2] Add ewk_database_manager APIs + https://bugs.webkit.org/show_bug.cgi?id=101193 + + Reviewed by Gyuyoung Kim. + + Add ewk_database_manager to manage web database and + ewk_database_manaager_origins_get to get origins list of web storage. + Add unit tests for ewk_database_manager APIs. + + * PlatformEfl.cmake: + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::Ewk_Context): + (Ewk_Context::databaseManager): + (ewk_context_database_manager_get): + * UIProcess/API/efl/ewk_context.h: + * UIProcess/API/efl/ewk_context_private.h: + (Ewk_Context): + * UIProcess/API/efl/ewk_database_manager.cpp: Added. + (Ewk_Database_Manager::Ewk_Database_Manager): + (Ewk_Database_Manager::getDatabaseOrigins): + (Ewk_Database_Manager::createOriginList): + (Ewk_Database_Origins_Async_Get_Context): + (Ewk_Database_Origins_Async_Get_Context::Ewk_Database_Origins_Async_Get_Context): + (getDatabaseOriginsCallback): + (ewk_database_manager_origins_get): + * UIProcess/API/efl/ewk_database_manager.h: Added. + * UIProcess/API/efl/ewk_database_manager_private.h: Added. + (Ewk_Database_Manager): + (Ewk_Database_Manager::create): + * UIProcess/API/efl/tests/test_ewk2_context.cpp: + (TEST_F): + * UIProcess/API/efl/tests/test_ewk2_database_manager.cpp: Added. + (OriginData): + (OriginData::OriginData): + (getDatabaseOriginsCallback): + (timerCallback): + (TEST_F): + +2012-11-06 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Refactor Ewk_Auth_Request, Ewk_Url_Scheme_Request and Ewk_Download_Job to be Ewk_Objects + https://bugs.webkit.org/show_bug.cgi?id=101383 + + Reviewed by Kenneth Rohde Christiansen. + + Ewk_Auth_Request, Ewk_Url_Scheme_Request and Ewk_Download_Job are Ewk_Objects now. + + * UIProcess/API/efl/EwkViewCallbacks.h: + * UIProcess/API/efl/EwkViewImpl.h: + * UIProcess/API/efl/ewk_auth_request.cpp: + (EwkAuthRequest::EwkAuthRequest): + (EwkAuthRequest::~EwkAuthRequest): + (EwkAuthRequest::suggestedUsername): + (EwkAuthRequest::realm): + (EwkAuthRequest::host): + (EwkAuthRequest::continueWithoutCredential): + (EwkAuthRequest::authenticate): + (EwkAuthRequest::isRetrying): + (ewk_auth_request_suggested_username_get): + (ewk_auth_request_cancel): + (ewk_auth_request_authenticate): + (ewk_auth_request_retrying_get): + (ewk_auth_request_realm_get): + (ewk_auth_request_host_get): + * UIProcess/API/efl/ewk_auth_request.h: + * UIProcess/API/efl/ewk_auth_request_private.h: + (EwkAuthRequest): + (EwkAuthRequest::create): + * UIProcess/API/efl/ewk_back_forward_list.h: + * UIProcess/API/efl/ewk_context_private.h: + (EwkContext): + * UIProcess/API/efl/ewk_download_job.cpp: + (EwkDownloadJob::EwkDownloadJob): + (EwkDownloadJob::id): + (EwkDownloadJob::viewImpl): + (ewk_download_job_state_get): + (EwkDownloadJob::state): + (ewk_download_job_request_get): + (EwkDownloadJob::request): + (ewk_download_job_response_get): + (EwkDownloadJob::response): + (ewk_download_job_destination_get): + (EwkDownloadJob::destination): + (ewk_download_job_destination_set): + (EwkDownloadJob::setDestination): + (ewk_download_job_suggested_filename_get): + (EwkDownloadJob::suggestedFileName): + (ewk_download_job_cancel): + (EwkDownloadJob::cancel): + (ewk_download_job_estimated_progress_get): + (EwkDownloadJob::estimatedProgress): + (ewk_download_job_elapsed_time_get): + (EwkDownloadJob::elapsedTime): + (EwkDownloadJob::setResponse): + (EwkDownloadJob::setSuggestedFileName): + (EwkDownloadJob::incrementReceivedData): + (EwkDownloadJob::setState): + * UIProcess/API/efl/ewk_download_job.h: + * UIProcess/API/efl/ewk_download_job_private.h: + (EwkDownloadJob): + (EwkDownloadJob::create): + * UIProcess/API/efl/ewk_url_scheme_request.cpp: + (EwkUrlSchemeRequest::EwkUrlSchemeRequest): + (EwkUrlSchemeRequest::id): + (EwkUrlSchemeRequest::url): + (EwkUrlSchemeRequest::scheme): + (EwkUrlSchemeRequest::path): + (EwkUrlSchemeRequest::finish): + (ewk_url_scheme_request_scheme_get): + (ewk_url_scheme_request_url_get): + (ewk_url_scheme_request_path_get): + (ewk_url_scheme_request_finish): + * UIProcess/API/efl/ewk_url_scheme_request.h: + * UIProcess/API/efl/ewk_url_scheme_request_private.h: + (EwkUrlSchemeRequest): + (EwkUrlSchemeRequest::create): + * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp: + (onAuthenticationRequest): + (TEST_F): + * UIProcess/efl/DownloadManagerEfl.cpp: + (WebKit::DownloadManagerEfl::decideDestinationWithSuggestedFilename): + (WebKit::DownloadManagerEfl::didReceiveResponse): + (WebKit::DownloadManagerEfl::didCreateDestination): + (WebKit::DownloadManagerEfl::didReceiveData): + (WebKit::DownloadManagerEfl::didFail): + (WebKit::DownloadManagerEfl::didCancel): + (WebKit::DownloadManagerEfl::didFinish): + (WebKit::DownloadManagerEfl::registerDownload): + (WebKit::DownloadManagerEfl::downloadJob): + * UIProcess/efl/DownloadManagerEfl.h: + (DownloadManagerEfl): + * UIProcess/efl/PageLoadClientEfl.cpp: + (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame): + * UIProcess/efl/RequestManagerClientEfl.cpp: + (WebKit::RequestManagerClientEfl::didReceiveURIRequest): + +2012-11-06 Yael Aharon <yael.aharon@intel.com> + + [WK2] Wrong scroll position when going back in history + https://bugs.webkit.org/show_bug.cgi?id=101358 + + Reviewed by Kenneth Rohde Christiansen. + + Reset the contentsSize after a new load was committed. We should not continue + to use the contentsSize of the previous page in any calculation. + + * UIProcess/PageViewportController.cpp: + (WebKit::PageViewportController::didCommitLoad): + +2012-11-06 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Declare all smart callbacks in EwkViewCallbacks.h + https://bugs.webkit.org/show_bug.cgi?id=101360 + + Reviewed by Kenneth Rohde Christiansen. + + Declare all EwkView smart callbacks in EwkViewCallbacks.h + and remove remaining calls to evas_object_smart_callback_call(). + It is a good idea to have all the callbacks declared in one + place for convenience and consistency. We also have better + argument type checking if we use the new callback mechanism. + + * UIProcess/API/efl/EwkViewCallbacks.h: + (EwkViewCallbacks::CallBack::call): + (CallBack): + (EwkViewCallbacks): + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::informIconChange): + (EwkViewImpl::informURLChange): + (EwkViewImpl::createNewPage): + (EwkViewImpl::closePage): + +2012-11-05 Anders Carlsson <andersca@apple.com> + + Hook up the remote layer tree drawing area to an environment variable + https://bugs.webkit.org/show_bug.cgi?id=101267 + + Reviewed by Andreas Kling. + + * UIProcess/API/mac/WKView.mm: + * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm: + (WebKit::RemoteLayerTreeDrawingAreaProxy::sizeDidChange): + (WebKit::RemoteLayerTreeDrawingAreaProxy::deviceScaleFactorDidChange): + +2012-11-06 Andras Becsi <andras.becsi@digia.com> + + [Qt][WK2] Fit-to-width broken on pages with viewport meta tag + https://bugs.webkit.org/show_bug.cgi?id=99715 + + Reviewed by Jocelyn Turcotte. + + The initial scale from the viewport attributes should only + be applied if the scale was explicitly specified in the + viewport meta tag. + If the initial scale is auto it should be calculated using + the final contents size, which might be larger than the + layout size, so that the content fits horizontally into + the view. + + Also add QML unit tests that cover this functionality. + + * UIProcess/API/qt/tests/qmltests/WebView/tst_fitToView.qml: + * UIProcess/API/qt/tests/qmltests/common/test5.html: Added. + * UIProcess/PageViewportController.cpp: + (WebKit::PageViewportController::PageViewportController): + (WebKit::PageViewportController::pageTransitionViewportReady): + +2012-11-06 Huang Dongsung <luxtella@company100.net> + + Coordinated Graphics: Remove a parent member in WebLayerInfo. + https://bugs.webkit.org/show_bug.cgi?id=101142 + + Reviewed by Noam Rosenthal. + + The parent member is not used in UI Process, and GraphicsLayer::setParent is + internally used only, so we don't need to send the parent layer id to UI Process. + + * Shared/WebLayerTreeInfo.h: + (WebKit::WebLayerInfo::WebLayerInfo): + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: + (WebCore::CoordinatedGraphicsLayer::syncLayerState): + +2012-11-06 Huang Dongsung <luxtella@company100.net> + + Coordinated Graphics: Remove two methods' virtual modifiers in CoordinatedGraphicsLayer. + https://bugs.webkit.org/show_bug.cgi?id=101141 + + Reviewed by Noam Rosenthal. + + The methods exist for only CoordinatedGraphicsLayer and we have no plan to + extend CoordinatedGraphicsLayer. + + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: + (CoordinatedGraphicsLayer): + +2012-11-06 Balazs Kelemen <kbalazs@webkit.org> + + [CoordinatedGraphics] Access to LayerTreeRenderer::m_renderQueue should be thread safe + https://bugs.webkit.org/show_bug.cgi?id=101341 + + Reviewed by Noam Rosenthal. + + The queue can be accessed from public API so we should make + sure it is not updated concurrently with a threaded render loop. + + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp: + (WebKit::LayerTreeRenderer::syncRemoteContent): + (WebKit::LayerTreeRenderer::appendUpdate): + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: + (LayerTreeRenderer): + +2012-11-06 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Make Ewk_Context Ewk_Object + https://bugs.webkit.org/show_bug.cgi?id=101322 + + Reviewed by Kenneth Rohde Christiansen. + + Ewk_Context is Ewk_Object now and using common ref/unref API. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl::ewkContext): + (EwkViewImpl): + * UIProcess/API/efl/ewk_context.cpp: + (EwkContext::EwkContext): + (EwkContext::~EwkContext): + (EwkContext::create): + (EwkContext::defaultContext): + (EwkContext::cookieManager): + (EwkContext::ensureFaviconDatabase): + (EwkContext::setFaviconDatabaseDirectoryPath): + (EwkContext::faviconDatabase): + (EwkContext::storageManager): + (EwkContext::requestManager): + (EwkContext::vibrationProvider): + (EwkContext::addVisitedLink): + (EwkContext::setCacheModel): + (EwkContext::cacheModel): + (ewk_context_cookie_manager_get): + (ewk_context_favicon_database_directory_set): + (ewk_context_favicon_database_get): + (ewk_context_storage_manager_get): + (EwkContext::wkContext): + (EwkContext::downloadManager): + (EwkContext::historyClient): + (ewk_context_default_get): + (ewk_context_new): + (ewk_context_new_with_injected_bundle_path): + (ewk_context_url_scheme_register): + (ewk_context_vibration_client_callbacks_set): + (ewk_context_history_callbacks_set): + (ewk_context_visited_link_add): + (ewk_context_cache_model_set): + (ewk_context_cache_model_get): + * UIProcess/API/efl/ewk_context.h: + * UIProcess/API/efl/ewk_context_private.h: + (EwkContext): + * UIProcess/API/efl/ewk_view.cpp: + (createEwkView): + (ewk_view_base_add): + (ewk_view_smart_add): + (ewk_view_add_with_context): + * UIProcess/API/efl/tests/test_ewk2_context.cpp: + (TEST_F): + * UIProcess/efl/DownloadManagerEfl.cpp: + (WebKit::DownloadManagerEfl::DownloadManagerEfl): + * UIProcess/efl/DownloadManagerEfl.h: + (WebKit::DownloadManagerEfl::create): + (DownloadManagerEfl): + * UIProcess/efl/PageClientBase.cpp: + (WebKit::PageClientBase::handleDownloadRequest): + * UIProcess/efl/RequestManagerClientEfl.cpp: + (WebKit::RequestManagerClientEfl::RequestManagerClientEfl): + * UIProcess/efl/RequestManagerClientEfl.h: + (WebKit::RequestManagerClientEfl::create): + (RequestManagerClientEfl): + +2012-11-06 Balazs Kelemen <kbalazs@webkit.org> + + [CoordinatedGraphics] compositing/iframes/connect-compositing-iframe.html crashes + https://bugs.webkit.org/show_bug.cgi?id=101232 + + Reviewed by Jocelyn Turcotte. + + The crash is happening in CoordinatedGraphicsLayer::flushCompositingState + because we dereferencing a null m_coordinatedGraphicsLayerClient. + This happens when the root layer became composited because it has content overlapping + with an inner iframe that is composited. In this case the RenderLayerCompositor attaches + the layer with RootLayerAttachedViaEnclosingFrame attachment flag and do not call + ChromeClient::attachRootGraphcisLayer so we don't have a chance to set m_coordinatedGraphicsLayerClient. + The solution is to set the client early in the factory method. + + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit::LayerTreeCoordinator::createGraphicsLayer): + +2012-11-06 Viatcheslav Ostapenko <v.ostapenko@samsung.com> + + [EFL] [WK2] Random crash in Minibrowser + https://bugs.webkit.org/show_bug.cgi?id=101241 + + Reviewed by Gyuyoung Kim. + + Do not clear GL context and GL surface in exitAcceleratedCompositing. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::createGLSurface): + (EwkViewImpl::enterAcceleratedCompositingMode): + (EwkViewImpl::exitAcceleratedCompositingMode): + +2012-11-05 Sam Weinig <sam@webkit.org> + + Need a way to send and receive messages between the WKWebProcessPlugIn object and the client + https://bugs.webkit.org/show_bug.cgi?id=101282 + + Reviewed by Anders Carlsson. + + API wise, this adds: + - A connection property on the WKWebProcessPlugInController + - A method to send messages across a WKConnection (sendMessageWithName:body). + + It also implements message sending and receiving for WKConnection. Message bodies are currently + restricted to being object graphs with values that are property list types, but in the future, should + support all types conforming to the NSSecureCoding protocol. + + * Shared/WebConnection.cpp: + (WebKit::WebConnection::postMessage): + (WebKit::WebConnection::handleMessage): + * Shared/WebConnection.h: + (WebConnection): + * Shared/WebConnection.messages.in: + Switch HandleMessage to be a variadic message to avoid an extra copy and support attachments correctly. + + * Shared/mac/ArgumentCodersMac.h: + * Shared/mac/ArgumentCodersMac.mm: + (CoreIPC::typeFromObject): + (CoreIPC::encode): + (CoreIPC::decode): + Add support for encoding/decoding NSArray, NSDate and NSData. + + * UIProcess/API/mac/WKConnection.h: + * UIProcess/API/mac/WKConnection.mm: + (-[WKConnection sendMessageWithName:body:]): + (didReceiveMessage): + Implement message sending and receiving. + + * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h: + * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm: + (-[WKWebProcessPlugInController _initWithPrincipalClassInstance:bundleRef:]): + (-[WKWebProcessPlugInController connection]): + Add a wrapper for the WKConnectionRef vended via WKBundleGetApplicationConnection() and expose it as + API on the WKWebProcessPlugInController. + +2012-11-05 Jinwoo Song <jinwoo7.song@samsung.com> + + [EFL][WK2] Fix wrong coding style in the boilerplates + https://bugs.webkit.org/show_bug.cgi?id=101283 + + Reviewed by Gyuyoung Kim. + + Fix boilerplate which have wrong coding style. + + * UIProcess/efl/InputMethodContextEfl.cpp: + * UIProcess/efl/InputMethodContextEfl.h: + * UIProcess/efl/PageClientDefaultImpl.cpp: + * UIProcess/efl/PageClientDefaultImpl.h: + * UIProcess/efl/PageClientLegacyImpl.cpp: + * UIProcess/efl/PageClientLegacyImpl.h: + +2012-11-05 KyungTae Kim <ktf.kim@samsung.com> + + [EFL][WK2] Fix build warning in PageClientLegacyImpl.cpp + https://bugs.webkit.org/show_bug.cgi?id=101266 + + Reviewed by Laszlo Gombos. + + The 'size' is not used when !USE(TILED_BACKING_STORE) + Use UNUSED_PARAM macro for removing -Wunused-parameter warning + + * UIProcess/efl/PageClientLegacyImpl.cpp: + (WebKit::PageClientLegacyImpl::updateViewportSize): + +2012-11-05 Anders Carlsson <andersca@apple.com> + + Begin stubbing out the new remote layer tree drawing area + https://bugs.webkit.org/show_bug.cgi?id=101256 + + Reviewed by Andreas Kling. + + * Shared/DrawingAreaInfo.h: + * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h: + * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm: + * WebKit2.xcodeproj/project.pbxproj: + * WebProcess/WebPage/DrawingArea.cpp: + * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h: + * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm: + +2012-11-05 Alexey Proskuryakov <ap@apple.com> + + Get rid of setCookieStoragePrivateBrowsingEnabled. + https://bugs.webkit.org/show_bug.cgi?id=101247 + + Reviewed by Brady Eidson. + + * WebProcess/InjectedBundle/InjectedBundle.cpp: + (WebKit::InjectedBundle::switchNetworkLoaderToNewTestingSession): Added a FIXME. + + * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: (InitWebCoreSystemInterface): + We no longer have this function. + +2012-11-05 Simon Fraser <simon.fraser@apple.com> + + Fix layer borders to cleaning appear and disappear on switching + https://bugs.webkit.org/show_bug.cgi?id=101136 + + Reviewed by Sam Weinig. + + Remove the GraphicsLayerClient methods showDebugBorders() and + showRepaintCounter(). + + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: + (LayerTreeCoordinator): + * WebProcess/WebPage/ca/LayerTreeHostCA.cpp: + * WebProcess/WebPage/ca/LayerTreeHostCA.h: + (LayerTreeHostCA): + * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: + * WebProcess/WebPage/gtk/LayerTreeHostGtk.h: + (LayerTreeHostGtk): + * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h: + (TiledCoreAnimationDrawingArea): + * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: + +2012-11-05 Yael Aharon <yael.aharon@intel.com> + + [EFL][WK2] Allow using ACCELERATED_COMPOSITING without COORDINATED_GRAPHICS + https://bugs.webkit.org/show_bug.cgi?id=100674 + + Reviewed by Kenneth Rohde Christiansen. + + Make a distinction between calling ewk_view_base_add and ewk_view_smart_add. + Calling ewk_view_base_add creates a desktop style view, that does not support + fixed layout size, while calling ewk_view_smart_add does support fixed layout size. + As a result, WebKitTestRunner and the inspector window do not support + fixed layout size, while MiniBrowser does. This change allows many DumpAsText + layout tests to pass without modification, when AC is enabled. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::transformFromScene): + (EwkViewImpl::informLoadCommitted): + (EwkViewImpl::enterAcceleratedCompositingMode): + (EwkViewImpl::informContentsSizeChange): + * UIProcess/API/efl/EwkViewImpl.h: + (WebKit): + (EwkViewImpl): + (EwkViewImpl::pageClient): + (EwkViewImpl::setScaleFactor): + (EwkViewImpl::scaleFactor): + (EwkViewImpl::setScrollPosition): + (EwkViewImpl::scrollPosition): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_calculate): + (createEwkView): + (ewk_view_base_add): + * UIProcess/efl/PageClientBase.cpp: Copied from Source/WebKit2/UIProcess/efl/PageClientImpl.cpp. + (WebKit::PageClientBase::PageClientBase): + (WebKit::PageClientBase::~PageClientBase): + (WebKit::PageClientBase::viewImpl): + (WebKit::PageClientBase::createDrawingAreaProxy): + (WebKit::PageClientBase::setViewNeedsDisplay): + (WebKit::PageClientBase::displayView): + (WebKit::PageClientBase::scrollView): + (WebKit::PageClientBase::viewSize): + (WebKit::PageClientBase::isViewWindowActive): + (WebKit::PageClientBase::isViewFocused): + (WebKit::PageClientBase::isViewVisible): + (WebKit::PageClientBase::isViewInWindow): + (WebKit::PageClientBase::processDidCrash): + (WebKit::PageClientBase::didRelaunchProcess): + (WebKit::PageClientBase::pageClosed): + (WebKit::PageClientBase::toolTipChanged): + (WebKit::PageClientBase::setCursor): + (WebKit::PageClientBase::setCursorHiddenUntilMouseMoves): + (WebKit::PageClientBase::registerEditCommand): + (WebKit::PageClientBase::clearAllEditCommands): + (WebKit::PageClientBase::canUndoRedo): + (WebKit::PageClientBase::executeUndoRedo): + (WebKit::PageClientBase::convertToDeviceSpace): + (WebKit::PageClientBase::convertToUserSpace): + (WebKit::PageClientBase::screenToWindow): + (WebKit::PageClientBase::windowToScreen): + (WebKit::PageClientBase::doneWithKeyEvent): + (WebKit::PageClientBase::doneWithTouchEvent): + (WebKit::PageClientBase::createPopupMenuProxy): + (WebKit::PageClientBase::createContextMenuProxy): + (WebKit::PageClientBase::createColorChooserProxy): + (WebKit::PageClientBase::setFindIndicator): + (WebKit::PageClientBase::enterAcceleratedCompositingMode): + (WebKit::PageClientBase::exitAcceleratedCompositingMode): + (WebKit::PageClientBase::updateAcceleratedCompositingMode): + (WebKit::PageClientBase::didChangeScrollbarsForMainFrame): + (WebKit::PageClientBase::didCommitLoadForMainFrame): + (WebKit::PageClientBase::didFinishLoadingDataForCustomRepresentation): + (WebKit::PageClientBase::customRepresentationZoomFactor): + (WebKit::PageClientBase::setCustomRepresentationZoomFactor): + (WebKit::PageClientBase::flashBackingStoreUpdates): + (WebKit::PageClientBase::findStringInCustomRepresentation): + (WebKit::PageClientBase::countStringMatchesInCustomRepresentation): + (WebKit::PageClientBase::updateTextInputState): + (WebKit::PageClientBase::handleDownloadRequest): + * UIProcess/efl/PageClientBase.h: Copied from Source/WebKit2/UIProcess/efl/PageClientImpl.h. + (PageClientBase): + * UIProcess/efl/PageClientDefaultImpl.cpp: Added. + (WebKit): + (WebKit::PageClientDefaultImpl::PageClientDefaultImpl): + (WebKit::PageClientDefaultImpl::didCommitLoad): + (WebKit::PageClientDefaultImpl::updateViewportSize): + (WebKit::PageClientDefaultImpl::didChangeViewportProperties): + (WebKit::PageClientDefaultImpl::didChangeContentsSize): + (WebKit::PageClientDefaultImpl::pageDidRequestScroll): + (WebKit::PageClientDefaultImpl::didRenderFrame): + (WebKit::PageClientDefaultImpl::pageTransitionViewportReady): + * UIProcess/efl/PageClientDefaultImpl.h: Added. + (WebKit): + (PageClientDefaultImpl): + (WebKit::PageClientDefaultImpl::create): + (WebKit::PageClientDefaultImpl::~PageClientDefaultImpl): + * UIProcess/efl/PageClientImpl.cpp: Removed. + * UIProcess/efl/PageClientImpl.h: Removed. + * UIProcess/efl/PageClientLegacyImpl.cpp: Added. + (WebKit): + (WebKit::PageClientLegacyImpl::PageClientLegacyImpl): + (WebKit::PageClientLegacyImpl::didCommitLoad): + (WebKit::PageClientLegacyImpl::updateViewportSize): + (WebKit::PageClientLegacyImpl::didChangeViewportProperties): + (WebKit::PageClientLegacyImpl::didChangeContentsSize): + (WebKit::PageClientLegacyImpl::pageDidRequestScroll): + (WebKit::PageClientLegacyImpl::didRenderFrame): + (WebKit::PageClientLegacyImpl::pageTransitionViewportReady): + * UIProcess/efl/PageClientLegacyImpl.h: Added. + (WebKit): + (PageClientLegacyImpl): + (WebKit::PageClientLegacyImpl::create): + (WebKit::PageClientLegacyImpl::~PageClientLegacyImpl): + * UIProcess/efl/PageViewportControllerClientEfl.cpp: + (WebKit::PageViewportControllerClientEfl::updateViewportSize): + (WebKit::PageViewportControllerClientEfl::didChangeContentsSize): + (WebKit::PageViewportControllerClientEfl::setViewportPosition): + (WebKit::PageViewportControllerClientEfl::setContentsScale): + * UIProcess/efl/PageViewportControllerClientEfl.h: + * UIProcess/efl/WebPageProxyEfl.cpp: + (WebKit::WebPageProxy::viewWidget): + +2012-11-05 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Make Ewk_Url_Request, Ewk_Url_Response, Ewk_Navigation_Data Ewk_Objects + https://bugs.webkit.org/show_bug.cgi?id=101205 + + Reviewed by Gyuyoung Kim. + + Ewk_Url_Request, Ewk_Url_Response, Ewk_Navigation_Data are using common Ewk_Object interface now. + + * UIProcess/API/efl/EwkViewImpl.h: + * UIProcess/API/efl/ewk_download_job.cpp: + (Ewk_Download_Job::request): + (Ewk_Download_Job::response): + (Ewk_Download_Job::setResponse): + * UIProcess/API/efl/ewk_download_job_private.h: + (Ewk_Download_Job): + * UIProcess/API/efl/ewk_navigation_data.cpp: + (EwkNavigationData::EwkNavigationData): + (EwkNavigationData::originalRequest): + (EwkNavigationData::title): + (EwkNavigationData::url): + (ewk_navigation_data_title_get): + (ewk_navigation_data_original_request_get): + (ewk_navigation_data_url_get): + * UIProcess/API/efl/ewk_navigation_data.h: + * UIProcess/API/efl/ewk_navigation_data_private.h: + (EwkNavigationData): + (EwkNavigationData::create): + * UIProcess/API/efl/ewk_navigation_policy_decision.cpp: + (Ewk_Navigation_Policy_Decision::Ewk_Navigation_Policy_Decision): + (Ewk_Navigation_Policy_Decision::request): + * UIProcess/API/efl/ewk_navigation_policy_decision_private.h: + (Ewk_Navigation_Policy_Decision::create): + (Ewk_Navigation_Policy_Decision): + * UIProcess/API/efl/ewk_url_request.cpp: + (EwkUrlRequest::EwkUrlRequest): + (EwkUrlRequest::url): + (EwkUrlRequest::firstParty): + (EwkUrlRequest::httpMethod): + (ewk_url_request_url_get): + (ewk_request_cookies_first_party_get): + (ewk_url_request_http_method_get): + * UIProcess/API/efl/ewk_url_request.h: + * UIProcess/API/efl/ewk_url_request_private.h: + (EwkUrlRequest): + (EwkUrlRequest::create): + * UIProcess/API/efl/ewk_url_response.cpp: + (EwkUrlResponse::EwkUrlResponse): + (EwkUrlResponse::httpStatusCode): + (EwkUrlResponse::url): + (EwkUrlResponse::mimeType): + (EwkUrlResponse::contentLength): + (ewk_url_response_url_get): + (ewk_url_response_status_code_get): + (ewk_url_response_mime_type_get): + (ewk_url_response_content_length_get): + * UIProcess/API/efl/ewk_url_response.h: + * UIProcess/API/efl/ewk_url_response_private.h: + (EwkUrlResponse): + (EwkUrlResponse::create): + * UIProcess/efl/ContextHistoryClientEfl.cpp: + (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData): + * UIProcess/efl/DownloadManagerEfl.cpp: + (WebKit::DownloadManagerEfl::didReceiveResponse): + * UIProcess/efl/ResourceLoadClientEfl.cpp: + (WebKit::ResourceLoadClientEfl::didInitiateLoadForResource): + (WebKit::ResourceLoadClientEfl::didSendRequestForResource): + (WebKit::ResourceLoadClientEfl::didReceiveResponseForResource): + +2012-11-05 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] EWK2UnitTestBase.ewk_auth_request_cancel API test is failing after r133389 + https://bugs.webkit.org/show_bug.cgi?id=101203 + + Reviewed by Kenneth Rohde Christiansen. + + Attempt for continue without credential when the client cancels + authentication (or does not handle the authentication request) + instead of cancelling the load. We now get a 402 error when + when cancelling the authentication, which is the behavior we + want (and the behavior we used to have before r133389). + + * UIProcess/API/efl/ewk_auth_request.cpp: + (Ewk_Auth_Request::~Ewk_Auth_Request): + (Ewk_Auth_Request::continueWithoutCredential): + (ewk_auth_request_cancel): + * UIProcess/API/efl/ewk_auth_request_private.h: + (Ewk_Auth_Request): + * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp: + (TEST_F): + +2012-11-05 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] The icon database path should be set by the client + https://bugs.webkit.org/show_bug.cgi?id=101182 + + Reviewed by Kenneth Rohde Christiansen. + + No longer set the favicon database path in database instance getter. + Instead, a new ewk_context_favicon_database_directory_set() API + function was added to let the client set the icon database path. + This is needed because the icon database path can only be set once + and setting it unconditionally in the getter prevents the client + from setting it. + + This will also avoid crashes in WebKitTestRunner since WKTR was + setting the path once and ewk_context was attempting to override it. + + Note that the favicon database functionality is disabled until the + client sets its path. + + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::ensureFaviconDatabase): + (Ewk_Context::setFaviconDatabaseDirectoryPath): + (Ewk_Context::faviconDatabase): + (ewk_context_favicon_database_directory_set): + * UIProcess/API/efl/ewk_context.h: + * UIProcess/API/efl/ewk_context_private.h: + (Ewk_Context): + * UIProcess/API/efl/ewk_favicon_database.cpp: + (Ewk_Favicon_Database::Ewk_Favicon_Database): + (Ewk_Favicon_Database::~Ewk_Favicon_Database): + (Ewk_Favicon_Database::iconURLForPageURL): + (Ewk_Favicon_Database::iconForPageURL): + (Ewk_Favicon_Database::getIconSurfaceSynchronously): + * UIProcess/API/efl/ewk_favicon_database_private.h: + (WebKit): + (Ewk_Favicon_Database::create): + (Ewk_Favicon_Database): + * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp: + (TEST_F): + +2012-11-04 Halton Huo <halton.huo@intel.com> + + [EFL] Use _LIBRARIES instead of _LIBRARY + https://bugs.webkit.org/show_bug.cgi?id=101042 + + Reviewed by Gyuyoung Kim. + + In CMake Find files, _LIBRARY is intended for internal use, should + use _LIBRARIES instead. + + * PlatformEfl.cmake: s/_LIBRARY}/_LIBRARIES} + +2012-11-04 Jon Lee <jonlee@apple.com> + + Expose security origin to BundleFrame + https://bugs.webkit.org/show_bug.cgi?id=101139 + <rdar://problem/12629900> + + Reviewed by Darin Adler. + + Create a WebSecurityOrigin instance, sharing the security origin instance + that comes directly from the frame's document. We can do this because the + WK2 API only retrieves information about the origin, and because those + results are returned as copies. The security origin holds no references + that could lead to a retain cycle, avoiding the possibility that the + injected bundle accidentally keeps something alive. + + * Shared/API/c/WKSharedAPICast.h: + (WebKit::toCopiedAPI): Create copied API for WebCore::SecurityOrigin + instances. + * Shared/WebSecurityOrigin.h: + (WebKit::WebSecurityOrigin::create): Add a new create() function that + takes a PassRefPtr to a WebCore SecurityOrigin instance. + (WebKit::WebSecurityOrigin::createFromString): Refactor to use new create() + function. + (WebKit::WebSecurityOrigin::createFromDatabaseIdentifier): Refactor to + use new create() function. + (WebKit::WebSecurityOrigin::create): Refactor to use new create() + function. + * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: + (WKBundleFrameCopySecurityOrigin): Add function to retrieve the security + origin as a WK2 API object. + * WebProcess/InjectedBundle/API/c/WKBundleFrame.h: + +2012-11-02 Kenneth Rohde Christiansen <kenneth@webkit.org> + + [EFL] Unify transforms in WK2 + https://bugs.webkit.org/show_bug.cgi?id=101051 + + Reviewed by Simon Hausmann. + + Move our transforms into EwkViewImpl and use them + everywhere needed. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::smartData): + (EwkViewImpl::transformFromScene): + (EwkViewImpl::transformToScene): + (EwkViewImpl::transformToScreen): + (EwkViewImpl::displayTimerFired): + * UIProcess/API/efl/EwkViewImpl.h: + (WebCore): + (EwkViewImpl): + (EwkViewImpl::pageViewportControllerClient): + (EwkViewImpl::pageViewportController): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_mouse_wheel): + (_ewk_view_smart_mouse_down): + (_ewk_view_smart_mouse_up): + (_ewk_view_smart_mouse_move): + (ewk_view_feed_touch_event): + +2012-11-03 Alexey Proskuryakov <ap@apple.com> + + Get rid of USE(CFURLSTORAGESESSIONS) + https://bugs.webkit.org/show_bug.cgi?id=101131 + + Reviewed by Sam Weinig. + + * Shared/WebProcessCreationParameters.cpp: + (WebKit::WebProcessCreationParameters::encode): + (WebKit::WebProcessCreationParameters::decode): + * Shared/WebProcessCreationParameters.h: + (WebProcessCreationParameters): + * UIProcess/win/WebContextWin.cpp: + (WebKit::WebContext::platformInitializeWebProcess): + * WebProcess/Cookies/mac/WebCookieManagerMac.mm: + (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy): + * WebProcess/InjectedBundle/InjectedBundle.cpp: + (WebKit::InjectedBundle::switchNetworkLoaderToNewTestingSession): + * WebProcess/WebPage/mac/WebPageMac.mm: + (WebKit::WebPage::platformHasLocalDataForURL): + (WebKit::cachedResponseForURL): + * WebProcess/WebPage/win/WebPageWin.cpp: + (WebKit::cachedResponseForURL): + * WebProcess/WebProcess.cpp: + (WebKit::WebProcess::initializeWebProcess): + * WebProcess/win/WebProcessWin.cpp: + (WebKit::WebProcess::platformSetCacheModel): + (WebKit::WebProcess::platformClearResourceCaches): + +2012-11-03 Pavel Feldman <pfeldman@chromium.org> + + REGRESSION (r132014-r132047): Webkit Inspector Window docking broken + https://bugs.webkit.org/show_bug.cgi?id=101125 + + Reviewed by Vsevolod Vlasov. + + Migrated from ?docked= to ?dockSide= format. + + * UIProcess/WebInspectorProxy.cpp: + (WebKit::WebInspectorProxy::createInspectorPage): + +2012-10-25 Martin Robinson <mrobinson@igalia.com> + + [GTK] Move soup authentication from GtkAuthenticationDialog to WebCore + https://bugs.webkit.org/show_bug.cgi?id=99914 + + Reviewed by Carlos Garcia Campos. + + Instead of passing the libsoup objects to the GtkAuthenticationDialog, pass the + AuthenticationChallenge itself. + + * WebProcess/WebCoreSupport/gtk/WebFrameLoaderClientGtk.cpp: + (WebKit::WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): + +2012-11-02 Anders Carlsson <andersca@apple.com> + + Very speculative ArgumentDecoder crash fix + https://bugs.webkit.org/show_bug.cgi?id=101130 + <rdar://problem/11917046> + + Reviewed by Sam Weinig. + + Switch from fastMalloc/fastFree to system malloc/free in the hopes that it'll give more information about + a crash inside TCMalloc when freeing the argument data. (It seems unlikely that this is a bug in TCMalloc, but + switching to the system malloc could potentially give better error reporting). + + * Platform/CoreIPC/ArgumentDecoder.cpp: + (CoreIPC::ArgumentDecoder::~ArgumentDecoder): + (CoreIPC::ArgumentDecoder::initialize): + +2012-11-02 Anders Carlsson <andersca@apple.com> + + Don't instantiate the Java plug-in if it's inactive + https://bugs.webkit.org/show_bug.cgi?id=101102 + <rdar://problem/12595679> + + Reviewed by Andreas Kling. + + * Shared/Plugins/PluginModuleInfo.h: + Add a PluginModuleLoadPolicy enum. + + * UIProcess/Plugins/PluginInfoStore.cpp: + (WebKit::PluginInfoStore::policyForPlugin): + * UIProcess/Plugins/PluginInfoStore.h: + (PluginInfoStore): + Rename shouldBlockPlugin to policyForPlugin and make it return an enum so we can handle inactive plug-ins. + + * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: + (WebKit::shouldBlockPlugin): + Add helper function. + + (WebKit::PluginInfoStore::policyForPlugin): + If the Java plug-in is inactive, return PluginModuleInactive. + + (WebKit::PluginInfoStore::reactivateInactivePlugin): + If the given plug-in is the Java plug-in, call WKJLReportWebComponentsUsed() to reactivate it. + + * UIProcess/WebPageProxy.cpp: + (WebKit::WebPageProxy::unavailablePluginButtonClicked): + If the plug-in is inactive, try to reactivate it and reload the page if reactivation succeeded. + + * UIProcess/WebProcessProxy.cpp: + (WebKit::WebProcessProxy::getPluginPath): + * UIProcess/WebProcessProxy.h: + This now returns a plug-in load policy. + + * UIProcess/WebProcessProxy.messages.in: + GetPluginPack now returns a load policy enum. + + * WebProcess/WebCoreSupport/WebChromeClient.cpp: + (WebKit::WebChromeClient::shouldUnavailablePluginMessageBeButton): + Change this to a switch statement and always return true for RenderEmbeddedObject::PluginInactive. + + (WebKit::WebChromeClient::unavailablePluginButtonClicked): + Add RenderEmbeddedObject::PluginInactive to the assertion. + + * WebProcess/WebPage/WebPage.cpp: + (WebKit::WebPage::createPlugin): + Update now that GetPluginPath returns a pluginLoadPolicy enum. + + (WebKit::canPluginHandleResponse): + Ditto. + +2012-11-02 Alexey Proskuryakov <ap@apple.com> + + [Mac] ResourceHandle changes for network process + https://bugs.webkit.org/show_bug.cgi?id=101111 + + Reviewed by Jessie Berlin. + + * NetworkProcess/mac/NetworkProcessMainMac.mm: (WebKit::NetworkProcessMain): + We want to use WebKitSystemInterface in network process. + * NetworkProcess/mac/RemoteNetworkingContext.h: + (WebKit::RemoteNetworkingContext::create): Added a constructor and a create function. + Switched from scheduledRunLoopPairs() to the new scheduledOperationQueue(). + + * NetworkProcess/mac/RemoteNetworkingContext.mm: + (WebKit::RemoteNetworkingContext::RemoteNetworkingContext): + (WebKit::RemoteNetworkingContext::scheduledOperationQueue): + Ditto. + +2012-11-02 Simon Fraser <simon.fraser@apple.com> + + Enable SUBPIXEL_LAYOUT on Mac + https://bugs.webkit.org/show_bug.cgi?id=101076 + + Reviewed by Dave Hyatt. + + Define ENABLE_SUBPIXEL_LAYOUT and include it in FEATURE_DEFINES. + + * Configurations/FeatureDefines.xcconfig: + +2012-11-02 Anders Carlsson <andersca@apple.com> + + Add a PluginInactive plug-in unavailability reason + https://bugs.webkit.org/show_bug.cgi?id=101089 + + Reviewed by Sam Weinig. + + * UIProcess/WebPageProxy.cpp: + (WebKit::WebPageProxy::unavailablePluginButtonClicked): + +2012-11-02 Adam Barth <abarth@webkit.org> + + ENABLE(UNDO_MANAGER) is disabled everywhere and is not under active development + https://bugs.webkit.org/show_bug.cgi?id=100711 + + Reviewed by Eric Seidel. + + * Configurations/FeatureDefines.xcconfig: + +2012-11-02 Christophe Dumez <christophe.dumez@intel.com> + + [WK2][EFL] Crash when calling WebOpenPanelResultListenerProxy::cancel() after PageClient is destroyed + https://bugs.webkit.org/show_bug.cgi?id=100977 + + Reviewed by Alexey Proskuryakov. + + Call WebPageProxy::close() in EwkViewImpl's destructor to avoid crashes + if other objects keep a reference to the WebPageProxy and try to use + it after the view (and therefore the PageClient) is destroyed. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::~EwkViewImpl): + +2012-11-02 Martin Robinson <mrobinson@igalia.com> + + [GTK] Remove dependency on SoupPasswordManager + https://bugs.webkit.org/show_bug.cgi?id=100775 + + Reviewed by Carlos Garcia Campos. + + Add a libsecret dependency to the build. This is necessary so that we can remove + a dependency on SoupPasswordManager. + + * GNUmakefile.am: Add libsecret CFLAGS to the WebKit2 build. + +2012-11-02 Byungwoo Lee <bw80.lee@samsung.com> + + [EFL][WK2] Change the scope of locking in WorkQueueEfl.cpp. + https://bugs.webkit.org/show_bug.cgi?id=98978 + + Reviewed by Kenneth Rohde Christiansen. + + Release the m_workItemQueueLock and m_timerWorkItemsLock mutexes + immediately after the protected resource is no longer modified to + prevent a possible source of a deadlock. + + And additional mutex locker for the m_writeToPipeDescriptor is added + to ensure thread-safety of the sendMessageToThread() function. + + * Platform/WorkQueue.h: + (WorkQueue): + * Platform/efl/WorkQueueEfl.cpp: + (WorkQueue::insertTimerWorkItem): + (WorkQueue::performTimerWork): + (WorkQueue::sendMessageToThread): + (WorkQueue::dispatch): + (WorkQueue::dispatchAfterDelay): + +2012-11-02 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Add API unit tests for Ewk_Object + https://bugs.webkit.org/show_bug.cgi?id=101037 + + Reviewed by Kenneth Rohde Christiansen. + + Added API unit tests for Ewk_Object. + + * PlatformEfl.cmake: + * UIProcess/API/efl/tests/test_ewk2_object.cpp: Added. + (TestEwkObject1): + (TestEwkObject1::create): + (TestEwkObject1::~TestEwkObject1): + (TestEwkObject2): + (TestEwkObject2::create): + (TEST_F): + +2012-11-02 Sudarsana Nagineni <sudarsana.nagineni@intel.com> + + REGRESSION (r133075): plugins/plugin-javascript-access.html is failing + https://bugs.webkit.org/show_bug.cgi?id=101045 + + Reviewed by Kenneth Rohde Christiansen. + + Encode the plugin filename in ArgumentCoder<PluginInfo> so that + plugin.filename returns the filename instead of name of the plugin. + + * Shared/WebCoreArgumentCoders.cpp: + (CoreIPC::::encode): + +2012-11-01 Yael Aharon <yael.aharon@intel.com> + + [EFL][WK2][AC] Wrong translation of mouse events + https://bugs.webkit.org/show_bug.cgi?id=100983 + + Reviewed by Kenneth Rohde Christiansen. + + The transform that we build for mouse events is scaled by the scale factor. + The url bar should not be scaled, so it should be scaled in the oposite + direction to compensate for that. + + * UIProcess/API/efl/ewk_view.cpp: + (toWebContentTransform): + +2012-11-02 Andras Becsi <andras.becsi@digia.com> + + [Qt][WK2] Add missing variable initialization in PageViewportController + + Reviewed by Jocelyn Turcotte. + + Updating the viewport state depends on uninitialized booleans + which it should not. + + * UIProcess/PageViewportController.cpp: + (WebKit::PageViewportController::PageViewportController): + +2012-11-02 Byungwoo Lee <bw80.lee@samsung.com> + + [EFL][WK2] Use MutexLocker instead of lock()/unlock(). + https://bugs.webkit.org/show_bug.cgi?id=101015 + + Reviewed by Kenneth Rohde Christiansen. + + Instead of lock()/unlock(), use MutexLocker in WorkQueue::performWork() + and WorkQueue::performTimerWork(). + + The locking scope will be more clear and simple with using MutexLocker. + + * Platform/efl/WorkQueueEfl.cpp: + (WorkQueue::performWork): + (WorkQueue::insertTimerWorkItem): + (WorkQueue::performTimerWork): + (WorkQueue::dispatchAfterDelay): + +2012-11-02 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Common ref and unref functions for EFL WK2 objects + https://bugs.webkit.org/show_bug.cgi?id=100751 + + Reviewed by Kenneth Rohde Christiansen. + + Added common Ewk_Object class with ref/unref API also added several aux functions for safe + Ewk_Object conversion. Used new approach on ewk_back_forward_list_item as example. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/ewk_back_forward_list.cpp: + (Ewk_Back_Forward_List::getFromCacheOrCreate): + (Ewk_Back_Forward_List::createEinaList): + * UIProcess/API/efl/ewk_back_forward_list_item.cpp: + (EwkBackForwardListItem::EwkBackForwardListItem): + (EwkBackForwardListItem::url): + (EwkBackForwardListItem::title): + (EwkBackForwardListItem::originalURL): + (ewk_back_forward_list_item_url_get): + (ewk_back_forward_list_item_title_get): + (ewk_back_forward_list_item_original_url_get): + * UIProcess/API/efl/ewk_back_forward_list_item.h: + * UIProcess/API/efl/ewk_back_forward_list_item_private.h: + (EwkBackForwardListItem): + (EwkBackForwardListItem::create): + * UIProcess/API/efl/ewk_back_forward_list_private.h: + * UIProcess/API/efl/ewk_object.cpp: Copied from Source/WebKit2/UIProcess/API/efl/ewk_back_forward_list_item_private.h. + (ewk_object_ref): + (ewk_object_unref): + * UIProcess/API/efl/ewk_object.h: Copied from Source/WebKit2/UIProcess/API/efl/ewk_back_forward_list_item_private.h. + * UIProcess/API/efl/ewk_object_private.h: Added. + (Ewk_Object): + (Ewk_Object::~Ewk_Object): + (ewk_object_is_of_type): + (ewk_object_cast_check): + (ewk_object_cast): + * UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp: + (freeEinaList): + +2012-11-02 Nandor Huszka <hnandor@inf.u-szeged.hu> + + [Qt][Mac][Win] Unreviewed build fix after r133182 + https://bugs.webkit.org/show_bug.cgi?id=100995 + + Remove two methods' OVERRIDE and virtual modifiers, because they cannot be found in any base class. + Also relocate their prototypes, because they mix with the overridden ones. + + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: + (CoordinatedGraphicsLayer): + +2012-11-02 Jihye Kang <jye.kang@samsung.com> + + [EFL][WK2] Add ewk_security_origin and ewk_storage_manager APIs + https://bugs.webkit.org/show_bug.cgi?id=92827 + + Reviewed by Gyuyoung Kim. + + Add ewk_security_origin APIs to get security origin. + These APIs will be used to get host, protocol and port of security + origin. + Add ewk_storage_manager to manage web storage and + ewk_storage_manager_origins_get to get origins list of web storage. + Add Unit tests for ewk_storage_manager and ewk_security_origin APIs. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::storageManager): + (ewk_context_storage_manager_get): + * UIProcess/API/efl/ewk_context.h: + * UIProcess/API/efl/ewk_context_private.h: + (Ewk_Context): + * UIProcess/API/efl/ewk_security_origin.cpp: Added. + (Ewk_Security_Origin::Ewk_Security_Origin): + (Ewk_Security_Origin::host): + (Ewk_Security_Origin::protocol): + (Ewk_Security_Origin::port): + (ewk_security_origin_ref): + (ewk_security_origin_unref): + (ewk_security_origin_host_get): + (ewk_security_origin_protocol_get): + (ewk_security_origin_port_get): + * UIProcess/API/efl/ewk_security_origin.h: Added. + * UIProcess/API/efl/ewk_security_origin_private.h: Added. + (Ewk_Security_Origin): + (Ewk_Security_Origin::create): + * UIProcess/API/efl/ewk_storage_manager.cpp: Added. + (Ewk_Storage_Manager::Ewk_Storage_Manager): + (Ewk_Storage_Manager::getStorageOrigins): + (Ewk_Storage_Manager::createOriginList): + (_Ewk_Storage_Origins_Async_Get_Context): + (_Ewk_Storage_Origins_Async_Get_Context::_Ewk_Storage_Origins_Async_Get_Context): + (getStorageOriginsCallback): + (ewk_storage_manager_origins_get): + * UIProcess/API/efl/ewk_storage_manager.h: Added. + * UIProcess/API/efl/ewk_storage_manager_private.h: Added. + (Ewk_Storage_Manager): + (Ewk_Storage_Manager::create): + * UIProcess/API/efl/tests/test_ewk2_context.cpp: + (TEST_F): + * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp: Added. + (getStorageOriginsCallback): + (TEST_F): + +2012-11-02 Huang Dongsung <luxtella@company100.net> + + Coordinated Graphics: Manage the lifecycle of shareable surfaces precisely. + https://bugs.webkit.org/show_bug.cgi?id=100797 + + Reviewed by Noam Rosenthal. + + Internal Review by Gwang Yoon Hwang and Jae Hyun Park. + + This patch makes UpdateAtlas manage the lifecycle of shareable surfaces + containing the updates in the way how CoordinatedTile manages the lifecycle of + tiles. Currently, UI Process creates the shareable surface when receiving an + UpdateTileForLayer message, but there is no exact point to remove the shareable + surface. Now, we introduce new two messages to handle the lifecycle: + CreateUpdateAtlas and RemoveUpdateAtlas. + + This patch gives us two benefits. + 1. Reduce file and mmap operations. Web Process does not need to duplicate a + file handle every tile update. UI Process does not need to create a + ShareableSurface every UpdateTileForLayer message. + 2. Save memory. We can remove a ShareableSurface in UI Process when UpdateAtlas + in Web Process is removed. + + * Shared/SurfaceUpdateInfo.cpp: + (WebKit::SurfaceUpdateInfo::encode): + (WebKit::SurfaceUpdateInfo::decode): + * Shared/SurfaceUpdateInfo.h: + (SurfaceUpdateInfo): + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp: + (WebKit::LayerTreeCoordinatorProxy::updateTileForLayer): + (WebKit::LayerTreeCoordinatorProxy::createUpdateAtlas): + (WebKit): + (WebKit::LayerTreeCoordinatorProxy::removeUpdateAtlas): + (WebKit::LayerTreeCoordinatorProxy::purgeBackingStores): + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h: + (LayerTreeCoordinatorProxy): + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in: + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: + (WebCore::CoordinatedGraphicsLayer::beginContentUpdate): + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: + (CoordinatedGraphicsLayerClient): + (CoordinatedGraphicsLayer): + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.cpp: + (WebKit::CoordinatedTile::updateBackBuffer): + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.h: + (CoordinatedTileClient): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit::LayerTreeCoordinator::createUpdateAtlas): + (WebKit): + (WebKit::LayerTreeCoordinator::removeUpdateAtlas): + (WebKit::LayerTreeCoordinator::beginContentUpdate): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: + (LayerTreeCoordinator): + * WebProcess/WebPage/UpdateAtlas.cpp: + (WebKit::UpdateAtlas::UpdateAtlas): + (WebKit): + (WebKit::UpdateAtlas::~UpdateAtlas): + (WebKit::UpdateAtlas::beginPaintingOnAvailableBuffer): + * WebProcess/WebPage/UpdateAtlas.h: + (UpdateAtlasClient): + (WebKit): + (UpdateAtlas): + +2012-11-02 Jinwoo Song <jinwoo7.song@samsung.com> + + [EFL][WK2] Remove redundant internal function + https://bugs.webkit.org/show_bug.cgi?id=100969 + + Reviewed by Gyuyoung Kim. + + Remove ewk_view_text_found() in ewk_view.cpp which is not used anymore. + Now, "text,found" signal is emitted by DECLARE_EWK_VIEW_CALLBACK(TextFound, "text,found", unsigned) + in EwkViewCallback.h + + * UIProcess/API/efl/ewk_view.cpp: + +2012-11-01 Anders Carlsson <andersca@apple.com> + + Reformat the annotationStyle initializer to appease update-webkit-localizable-strings. + + Rubber-stamped by Dan Bernstein. + + * WebProcess/Plugins/PDF/PDFPlugin.mm: + +2012-11-01 Alexandru Chiculita <achicu@adobe.com> + + [CSS Shaders] Move MeshBoxType out of CustomFilterOperation + https://bugs.webkit.org/show_bug.cgi?id=100782 + + Reviewed by Dean Jackson. + + Renamed the CustomFilterOperation::MeshBoxType to CustomFilterMeshBoxType. + + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::::decode): + +2012-11-01 Beth Dakin <bdakin@apple.com> + + https://bugs.webkit.org/show_bug.cgi?id=100917 + There should be a way to dump the scrolling tree from the layout tests + + Reviewed by Simon Fraser. + + * win/WebKit2.def: + * win/WebKit2CFLite.def: + +2012-11-01 Huang Dongsung <luxtella@company100.net> + + Coordinated Graphics: Clean up headers of Coordinated Graphics. + https://bugs.webkit.org/show_bug.cgi?id=100907 + + Reviewed by Noam Rosenthal. + + This patch performs: + 1. Remove unused methods. + 2. Change public methods to private if needed. + 3. Put virtual, OVERRIDE and explicit keywords if needed. + + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h: + (LayerTreeCoordinatorProxy): + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: + (LayerTreeRenderer): + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: + (CoordinatedGraphicsLayer): + (WebCore::CoordinatedGraphicsLayer::fixedToViewport): + (WebCore::CoordinatedGraphicsLayer::setMaskTarget): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: + (LayerTreeCoordinator): + +2012-11-01 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Add Ewk_Auth_Request API + https://bugs.webkit.org/show_bug.cgi?id=100858 + + Reviewed by Kenneth Rohde Christiansen. + + Add Ewk_Auth_Request API for the client to handle + HTTP authentication. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/EwkViewCallbacks.h: + (EwkViewCallbacks): + * UIProcess/API/efl/ewk_auth_request.cpp: Added. + (Ewk_Auth_Request::Ewk_Auth_Request): + (Ewk_Auth_Request::~Ewk_Auth_Request): + (Ewk_Auth_Request::suggestedUsername): + (Ewk_Auth_Request::realm): + (Ewk_Auth_Request::host): + (Ewk_Auth_Request::cancel): + (Ewk_Auth_Request::authenticate): + (Ewk_Auth_Request::isRetrying): + (ewk_auth_request_ref): + (ewk_auth_request_unref): + (ewk_auth_request_suggested_username_get): + (ewk_auth_request_cancel): + (ewk_auth_request_authenticate): + (ewk_auth_request_retrying_get): + (ewk_auth_request_realm_get): + (ewk_auth_request_host_get): + * UIProcess/API/efl/ewk_auth_request.h: Added. + * UIProcess/API/efl/ewk_auth_request_private.h: Added. + (WebKit): + (Ewk_Auth_Request): + (Ewk_Auth_Request::create): + * UIProcess/API/efl/ewk_view.h: + * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp: Added corresponding API tests. + (serverCallback): + (onAuthenticationRequest): + (TEST_F): + (onResourceLoadResponse): + * UIProcess/efl/PageLoadClientEfl.cpp: + (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame): + (WebKit): + (WebKit::PageLoadClientEfl::PageLoadClientEfl): + * UIProcess/efl/PageLoadClientEfl.h: + (PageLoadClientEfl): + +2012-11-01 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + Fix the Mac breakage + https://bugs.webkit.org/show_bug.cgi?id=100383 + + Reviewed by Kenneth Rohde Christiansen. + + acceleratedCompositingForFixedPositionEnabled needs to be enabled + for fixed layout to work efficiently but it's wrong to force it + to false if fixed layout isn't enabled. + + Separate hard requirements for fixed layout from rendering optimizations + and guard the later with USE(COORDINATED_GRAPHICS). + Also add an early return to make sure that ports always having a false + useFixedLayout creation parameter won't get their settings adjusted. + + * WebProcess/WebPage/WebPage.cpp: + (WebKit::WebPage::setUseFixedLayout): + +2012-10-24 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + WebIconDatabase: Properly clean up on destruction + https://bugs.webkit.org/show_bug.cgi?id=100237 + + Reviewed by Brady Eidson. + + * UIProcess/WebIconDatabase.cpp: + (WebKit::WebIconDatabase::invalidate): + Make sure that IconDatabaseBase::iconDatabase won't return a dangling pointer. + +2012-11-01 Kenneth Rohde Christiansen <kenneth@webkit.org> + + [EFL] Fix event mapping for WebKit2 with coordinated graphics + https://bugs.webkit.org/show_bug.cgi?id=100956 + + Reviewed by Alexis Menard. + + Apply scale after translation. + + * UIProcess/API/efl/ewk_view.cpp: + (toWebContentTransform): + +2012-11-01 Kenneth Rohde Christiansen <kenneth@webkit.org> + + [EFL] Correct our use of the coordinated graphics + https://bugs.webkit.org/show_bug.cgi?id=100947 + + Reviewed by Alexis Menard. + + Replace the display(...) call with a regular update() on the view. + In the coordinated graphics case this updates our view using + paintToCurrentGLContext with our viewmodel matrix and clips it to + the viewport. This avoid the need to manually joining update regions. + + Unneeded update calls have also been removed and the resizing + logic has been improved. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::displayTimerFired): + (EwkViewImpl::update): + * UIProcess/API/efl/EwkViewImpl.h: + (WebCore): + (EwkViewImpl): + (EwkViewImpl::clearEvasGLSurface): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_calculate): + * UIProcess/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::setViewNeedsDisplay): + * UIProcess/efl/PageViewportControllerClientEfl.cpp: + (WebKit::PageViewportControllerClientEfl::setVisibleContentsRect): + (WebKit::PageViewportControllerClientEfl::didChangeContentsSize): + (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents): + * UIProcess/efl/PageViewportControllerClientEfl.h: + (PageViewportControllerClientEfl): + +2012-11-01 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + [Qt] Double clicks/taps aren't passed down to the page + https://bugs.webkit.org/show_bug.cgi?id=100949 + + Reviewed by Kenneth Rohde Christiansen. + + Since we are passing double click events as press events and that + they are preceeded by a real press event, double clicks are passed + down to the page as triple clicks. + + Ignore double click events and let WebCore::EventHandler handle it + through press and release events. + + * Shared/qt/WebEventFactoryQt.cpp: + (WebKit::webEventTypeForEvent): + * UIProcess/API/qt/qquickwebview.cpp: + (QQuickWebViewPrivate::handleMouseEvent): + * UIProcess/qt/QtWebPageEventHandler.cpp: + (WebKit::QtWebPageEventHandler::handleInputEvent): + +2012-11-01 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [AC][EFL][WK2] Rename PageViewportControllerClientEfl::m_pageViewportController to m_controller + https://bugs.webkit.org/show_bug.cgi?id=100933 + + Reviewed by Kenneth Rohde Christiansen. + + PageViewportControllerClientEfl::m_pageViewportController has to be renamed to m_controller + to keep consistency with other ports. Assertinons were also added. + + * UIProcess/efl/PageViewportControllerClientEfl.cpp: + (WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl): + (WebKit::PageViewportControllerClientEfl::updateViewportSize): + (WebKit::PageViewportControllerClientEfl::setVisibleContentsRect): + (WebKit::PageViewportControllerClientEfl::didResumeContent): + (WebKit::PageViewportControllerClientEfl::setController): + * UIProcess/efl/PageViewportControllerClientEfl.h: + (PageViewportControllerClientEfl): + +2012-11-01 Sheriff Bot <webkit.review.bot@gmail.com> + + Unreviewed, rolling out r133126. + http://trac.webkit.org/changeset/133126 + https://bugs.webkit.org/show_bug.cgi?id=100925 + + This made EFL API test break on EFL buildbots (Requested by + gyuyoung on #webkit). + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::Ewk_Context): + * UIProcess/API/efl/ewk_context.h: + * UIProcess/API/efl/ewk_context_private.h: + (Ewk_Context): + * UIProcess/API/efl/ewk_security_origin.cpp: Removed. + * UIProcess/API/efl/ewk_security_origin.h: Removed. + * UIProcess/API/efl/ewk_security_origin_private.h: Removed. + * UIProcess/API/efl/ewk_storage_manager.cpp: Removed. + * UIProcess/API/efl/ewk_storage_manager.h: Removed. + * UIProcess/API/efl/ewk_storage_manager_private.h: Removed. + * UIProcess/API/efl/tests/test_ewk2_context.cpp: + * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp: Removed. + +2012-11-01 Yuni Jeong <yhnet.jung@samsung.com> + + [WK2] Add APIs to get/set encoding detector + https://bugs.webkit.org/show_bug.cgi?id=100066 + + Reviewed by Gyuyoung Kim. + + Add setting APIs for encoding dector and a unit test. + + * Shared/WebPreferencesStore.h: + (WebKit): + * UIProcess/API/C/WKPreferences.cpp: + (WKPreferencesSetUsesEncodingDetector): + (WKPreferencesGetUsesEncodingDetector): + * UIProcess/API/C/WKPreferences.h: + * UIProcess/API/efl/ewk_settings.cpp: + (ewk_setting_uses_encoding_detector_set): + (ewk_setting_uses_encoding_detector_get): + * UIProcess/API/efl/ewk_settings.h: + * UIProcess/API/efl/tests/test_ewk2_settings.cpp: + (TEST_F): + +2012-10-31 Jihye Kang <jye.kang@samsung.com> + + [EFL][WK2] Add ewk_security_origin and ewk_storage_manager APIs + https://bugs.webkit.org/show_bug.cgi?id=92827 + + Reviewed by Gyuyoung Kim. + + Add ewk_security_origin APIs to get security origin. + These APIs will be used to get host, protocol and port of security + origin. + Add ewk_storage_manager to manage web storage and + ewk_storage_manager_origins_get to get origins list of web storage. + Add Unit tests for ewk_storage_manager and ewk_security_origin APIs. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::storageManager): + (ewk_context_storage_manager_get): + * UIProcess/API/efl/ewk_context.h: + * UIProcess/API/efl/ewk_context_private.h: + (Ewk_Context): + * UIProcess/API/efl/ewk_security_origin.cpp: Added. + (Ewk_Security_Origin::Ewk_Security_Origin): + (Ewk_Security_Origin::host): + (Ewk_Security_Origin::protocol): + (Ewk_Security_Origin::port): + (ewk_security_origin_ref): + (ewk_security_origin_unref): + (ewk_security_origin_host_get): + (ewk_security_origin_protocol_get): + (ewk_security_origin_port_get): + * UIProcess/API/efl/ewk_security_origin.h: Added. + * UIProcess/API/efl/ewk_security_origin_private.h: Added. + (Ewk_Security_Origin): + (Ewk_Security_Origin::create): + * UIProcess/API/efl/ewk_storage_manager.cpp: Added. + (Ewk_Storage_Manager::Ewk_Storage_Manager): + (Ewk_Storage_Manager::getStorageOrigins): + (Ewk_Storage_Manager::createOriginList): + (_Ewk_Storage_Origins_Async_Get_Context): + (_Ewk_Storage_Origins_Async_Get_Context::_Ewk_Storage_Origins_Async_Get_Context): + (getStorageOriginsCallback): + (ewk_storage_manager_origins_get): + * UIProcess/API/efl/ewk_storage_manager.h: Added. + * UIProcess/API/efl/ewk_storage_manager_private.h: Added. + (Ewk_Storage_Manager): + (Ewk_Storage_Manager::create): + * UIProcess/API/efl/tests/test_ewk2_context.cpp: + (TEST_F): + * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp: Added. + (getStorageOriginsCallback): + (TEST_F): + +2012-10-31 Alexandru Chiculita <achicu@adobe.com> + + CustomFilterOperation parameters list is not decoded correctly in CoordinatedGraphicsArgumentCoders + https://bugs.webkit.org/show_bug.cgi?id=100889 + + Reviewed by Noam Rosenthal. + + The custom filters parameters list was initialized with a specific size and then + the decoder was expected to fill it with all the decoded parameters. The decoder was + using the append command which added the paramters at the end, so it doubled the size + of the vector leaving empty spaces at the beginning of the list. Fixed it by writting + directly into the allocated space. + + No new tests, the code path is not activated yet. + + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::::decode): + +2012-10-31 Sam Weinig <sam@webkit.org> + + Convert the rest of the encoders to take the encoder as a reference + https://bugs.webkit.org/show_bug.cgi?id=100821 + + Reviewed by Anders Carlsson. + + * Platform/CoreIPC/ArgumentCoders.h: + (CoreIPC::SimpleArgumentCoder::encode): + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::::encode): + (CoreIPC::encodeTimingFunction): + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h: + * Shared/PrintInfo.cpp: + (WebKit::PrintInfo::encode): + * Shared/SessionState.cpp: + * Shared/UserMessageCoders.h: + (WebKit::UserMessageDecoder::baseDecode): + * Shared/WebCoreArgumentCoders.cpp: + (CoreIPC::::encode): + * Shared/WebCoreArgumentCoders.h: + * Shared/WebGeolocationPosition.cpp: + (WebKit::WebGeolocationPosition::Data::encode): + * Shared/WebLayerTreeInfo.cpp: + (WebKit::WebLayerInfo::encode): + * Shared/gtk/ArgumentCodersGtk.cpp: + (CoreIPC::encodeImage): + (CoreIPC::encodeDataObject): + (CoreIPC::::encode): + (CoreIPC::encodeGKeyFile): + (CoreIPC::encode): + * Shared/gtk/ArgumentCodersGtk.h: + * Shared/mac/WebCoreArgumentCodersMac.mm: + (CoreIPC::::encodePlatformData): + (CoreIPC::::encode): + * Shared/qt/ArgumentCodersQt.cpp: + (CoreIPC::::encode): + * Shared/qt/ArgumentCodersQt.h: + (CoreIPC): + * Shared/qt/WebCoreArgumentCodersQt.cpp: + (CoreIPC::::encodePlatformData): + * Shared/soup/WebCoreArgumentCodersSoup.cpp: + (CoreIPC::::encodePlatformData): + * Shared/win/WebCoreArgumentCodersWin.cpp: + (CoreIPC::::encodePlatformData): + * WebProcess/WebPage/DecoderAdapter.cpp: + (WebKit::DecoderAdapter::decodeBytes): + * WebProcess/WebPage/EncoderAdapter.cpp: + (WebKit::EncoderAdapter::encodeBytes): + +2012-10-31 Jesse van den Kieboom <jessevdk@gnome.org> + + Enable webkit2 introspection + https://bugs.webkit.org/show_bug.cgi?id=94313 + + Reviewed by Martin Robinson. + + This patch enables generation of introspection information for webkit2 + in the same was as it is done for webkit. The resulting gir and + typelib file are named WebKit2-3.0.{gir,typelib}. + + * GNUmakefile.am: + * UIProcess/API/gtk/WebKitBackForwardList.cpp: + +2012-10-31 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Add Ewk_File_Chooser_Request API + https://bugs.webkit.org/show_bug.cgi?id=100818 + + Reviewed by Kenneth Rohde Christiansen. + + Add Ewk_File_Chooser_Request API so that the client + can handle file chooser requests (e.g. Show a file + picker dialog) when the user clicks on an input + element of type "file". + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/EwkViewCallbacks.h: + (EwkViewCallbacks): + * UIProcess/API/efl/ewk_file_chooser_request.cpp: Added. + (Ewk_File_Chooser_Request::Ewk_File_Chooser_Request): + (Ewk_File_Chooser_Request::~Ewk_File_Chooser_Request): + (Ewk_File_Chooser_Request::allowMultipleFiles): + (Ewk_File_Chooser_Request::acceptedMIMETypes): + (Ewk_File_Chooser_Request::cancel): + (Ewk_File_Chooser_Request::chooseFiles): + (ewk_file_chooser_request_ref): + (ewk_file_chooser_request_unref): + (ewk_file_chooser_request_allow_multiple_files_get): + (ewk_file_chooser_request_accepted_mimetypes_get): + (ewk_file_chooser_request_cancel): + (ewk_file_chooser_request_files_choose): + (ewk_file_chooser_request_file_choose): + * UIProcess/API/efl/ewk_file_chooser_request.h: Added. + * UIProcess/API/efl/ewk_file_chooser_request_private.h: Added. + (WebKit): + (Ewk_File_Chooser_Request): + (Ewk_File_Chooser_Request::create): + (Ewk_File_Chooser_Request::wasHandled): + * UIProcess/API/efl/ewk_view.h: + * UIProcess/API/efl/tests/resources/file_chooser.html: Added. + * UIProcess/API/efl/tests/test_ewk2_file_chooser_request.cpp: Added corresponding + unit tests. + (onFileChooserRequest): + (compareStrings): + (freeStringList): + (TEST_F): + * UIProcess/efl/PageUIClientEfl.cpp: + (WebKit::PageUIClientEfl::runOpenPanel): + (WebKit): + (WebKit::PageUIClientEfl::PageUIClientEfl): + * UIProcess/efl/PageUIClientEfl.h: + (PageUIClientEfl): + +2012-10-31 Noam Rosenthal <noam.rosenthal@nokia.com> + + [Texmap] Enable filter animations in GraphicsLayerAnimation + https://bugs.webkit.org/show_bug.cgi?id=100318 + + Reviewed by Kenneth Rohde Christiansen. + + Encode/decode KeyframeValues of type FilterOperations. + + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::::encode): + (CoreIPC::::decode): + +2012-10-31 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2][AC] Avoid storing dirty rects in a Vector inside EwkViewImpl + https://bugs.webkit.org/show_bug.cgi?id=100736 + + Reviewed by Kenneth Rohde Christiansen. + + No longer store dirty rectangles in a temporary Vector and construct + a WebCore::Region directly from them instead. This avoid having to + iterate over the Vector in EwkViewImpl::displayTimerFired() to construct + a Region object, which should be more efficient. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::displayTimerFired): + (EwkViewImpl::redrawRegion): + * UIProcess/API/efl/EwkViewImpl.h: + (WebCore): + (EwkViewImpl): + +2012-10-30 Anders Carlsson <andersca@apple.com> + + Connection::Client::didReceiveInvalidMessage should take the full message name + https://bugs.webkit.org/show_bug.cgi?id=100788 + + Reviewed by Sam Weinig. + + Change Connection::Client::didReceiveInvalidMessage to take the message receiver name and message name as parameters + and make WebProcessProxy::didReceiveInvalidMessage print out the full message name. + + * NetworkProcess/NetworkConnectionToWebProcess.cpp: + (WebKit::NetworkConnectionToWebProcess::didReceiveInvalidMessage): + * NetworkProcess/NetworkConnectionToWebProcess.h: + (NetworkConnectionToWebProcess): + * NetworkProcess/NetworkProcess.cpp: + (WebKit::NetworkProcess::didReceiveInvalidMessage): + * NetworkProcess/NetworkProcess.h: + (NetworkProcess): + * Platform/CoreIPC/Connection.cpp: + (CoreIPC::Connection::dispatchMessage): + * Platform/CoreIPC/Connection.h: + (Client): + * Platform/CoreIPC/StringReference.cpp: + (CoreIPC::StringReference::toString): + (CoreIPC): + * Platform/CoreIPC/StringReference.h: + (StringReference): + * PluginProcess/PluginProcess.cpp: + (WebKit::PluginProcess::didReceiveInvalidMessage): + * PluginProcess/PluginProcess.h: + (PluginProcess): + * PluginProcess/WebProcessConnection.cpp: + (WebKit::WebProcessConnection::didReceiveInvalidMessage): + * PluginProcess/WebProcessConnection.h: + (WebProcessConnection): + * SharedWorkerProcess/SharedWorkerProcess.cpp: + (WebKit::SharedWorkerProcess::didReceiveInvalidMessage): + * SharedWorkerProcess/SharedWorkerProcess.h: + (SharedWorkerProcess): + * UIProcess/Network/NetworkProcessProxy.cpp: + (WebKit::NetworkProcessProxy::didReceiveInvalidMessage): + * UIProcess/Network/NetworkProcessProxy.h: + (NetworkProcessProxy): + * UIProcess/Plugins/PluginProcessProxy.cpp: + (WebKit::PluginProcessProxy::didReceiveInvalidMessage): + * UIProcess/Plugins/PluginProcessProxy.h: + (PluginProcessProxy): + * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp: + (WebKit::SharedWorkerProcessProxy::didReceiveInvalidMessage): + * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h: + (SharedWorkerProcessProxy): + * UIProcess/WebConnectionToWebProcess.cpp: + (WebKit::WebConnectionToWebProcess::didReceiveInvalidMessage): + * UIProcess/WebConnectionToWebProcess.h: + (WebConnectionToWebProcess): + * UIProcess/WebProcessProxy.cpp: + (WebKit::WebProcessProxy::didReceiveInvalidMessage): + * UIProcess/WebProcessProxy.h: + (WebProcessProxy): + * WebProcess/Network/NetworkProcessConnection.cpp: + (WebKit::NetworkProcessConnection::didReceiveInvalidMessage): + * WebProcess/Network/NetworkProcessConnection.h: + (NetworkProcessConnection): + * WebProcess/Plugins/PluginProcessConnection.cpp: + (WebKit::PluginProcessConnection::didReceiveInvalidMessage): + * WebProcess/Plugins/PluginProcessConnection.h: + (PluginProcessConnection): + * WebProcess/WebConnectionToUIProcess.cpp: + (WebKit::WebConnectionToUIProcess::didReceiveInvalidMessage): + * WebProcess/WebConnectionToUIProcess.h: + (WebConnectionToUIProcess): + * WebProcess/WebProcess.cpp: + (WebKit::WebProcess::didReceiveInvalidMessage): + * WebProcess/WebProcess.h: + (WebProcess): + +2012-10-31 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2][AC] Use smart pointers for Evas_GL types + https://bugs.webkit.org/show_bug.cgi?id=100745 + + Reviewed by Kenneth Rohde Christiansen. + + Replace raw pointers to Evas_GL, Evas_GL_Context and + Evas_GL_Surface by smart pointers in EwkViewImpl. + + C++ wrappers were added for Evas_GL_Context and + Evas_GL_Surface in order to use OwnPtr. This is needed + because their destroy functions need the Evas_GL. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EvasGLContext.cpp: Added. + (WebKit): + (WebKit::EvasGLContext::EvasGLContext): + (WebKit::EvasGLContext::~EvasGLContext): + * UIProcess/API/efl/EvasGLContext.h: Added. + (WebKit): + (EvasGLContext): + (WebKit::EvasGLContext::create): + (WebKit::EvasGLContext::context): + * UIProcess/API/efl/EvasGLSurface.cpp: Added. + (WebKit): + (WebKit::EvasGLSurface::EvasGLSurface): + (WebKit::EvasGLSurface::~EvasGLSurface): + * UIProcess/API/efl/EvasGLSurface.h: Added. + (WebKit): + (EvasGLSurface): + (WebKit::EvasGLSurface::create): + (WebKit::EvasGLSurface::surface): + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::displayTimerFired): + (EwkViewImpl::createGLSurface): + (EwkViewImpl::enterAcceleratedCompositingMode): + (EwkViewImpl::exitAcceleratedCompositingMode): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl::evasGL): + (EwkViewImpl::evasGLContext): + (EwkViewImpl::evasGLSurface): + (EwkViewImpl::resetEvasGLSurface): + (EwkViewImpl): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_calculate): + +2012-10-31 Balazs Kelemen <kbalazs@webkit.org> + + [Qt][WK2] Fix "Unable to find a renderable master window QQuickView" warnings in tst_QQuickWebView + https://bugs.webkit.org/show_bug.cgi?id=100247 + + Reviewed by Jocelyn Turcotte. + + Make sure we have a visible window for tests that want to render. + + * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp: + (tst_QQuickWebView::showWebView): + (tst_QQuickWebView::removeFromCanvas): + (tst_QQuickWebView::multipleWebViewWindows): + (tst_QQuickWebView::multipleWebViews): + (tst_QQuickWebView::basicRenderingSanity): + (tst_QQuickWebView::transparentWebViews): + Removed some unnecessary resize now that the window have a default size. + * UIProcess/API/qt/tests/testwindow.h: + (TestWindow): Resize the window to a default size at construction. + +2012-10-31 Thiago Marcos P. Santos <thiago.santos@intel.com> + + [EFL] WebContext::platformDefaultIconDatabasePath() should return a path to a file + https://bugs.webkit.org/show_bug.cgi?id=100679 + + Reviewed by Kenneth Rohde Christiansen. + + This patch aligns the EFL implementation with other ports. Before + that, we had an inconsistence: the return value of the getter could + not be used on the setter (the setter expects a full path, not a + directory). + + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::faviconDatabase): + * UIProcess/efl/WebContextEfl.cpp: + (WebKit::WebContext::platformDefaultIconDatabasePath): + +2012-10-31 Ian Vollick <vollick@chromium.org> + + Add support for text-based repaint testing + https://bugs.webkit.org/show_bug.cgi?id=100584 + + Reviewed by Simon Fraser. + + Allows tracked repaint rects to be dumped as text. + + * mac/WebKit2.order: + * win/WebKit2.def: + * win/WebKit2CFLite.def: + Exports for: + FrameView::setTracksRepaints(bool) + Frame::trackedRepaintRectsAsText() const + +2012-10-31 Sudarsana Nagineni <sudarsana.nagineni@intel.com> + + [EFL] Skip EWK2UnitTestBase.ewk_context_vibration_client_callbacks_set API test + https://bugs.webkit.org/show_bug.cgi?id=100839 + + Unreviewed, Skip EWK2UnitTestBase.ewk_context_vibration_client_callbacks_set + API test since it is failing on the bots. + + * UIProcess/API/efl/tests/test_ewk2_context.cpp: + (TEST_F): + +2012-10-31 KyungTae Kim <ktf.kim@samsung.com> + + [WK2][EFL] Assert check need to be changed in InputMethodContextEfl::InputMethodContextEfl + https://bugs.webkit.org/show_bug.cgi?id=100840 + + Reviewed by Kenneth Rohde Christiansen. + + Because 'context' is already set to 'm_context', assert check need to be done for m_context. + + * UIProcess/efl/InputMethodContextEfl.cpp: + (WebKit::InputMethodContextEfl::InputMethodContextEfl): + +2012-10-31 Kenneth Rohde Christiansen <kenneth@webkit.org> + + [WK2/EFL] Make sure all our events are transformed correctly + https://bugs.webkit.org/show_bug.cgi?id=100836 + + Reviewed by Alexis Menard. + + When moving to using the tiled backing store, we need to + transform our events before sending them to the web process. + + We needed to do that before as well, as the webkit view + doesn't have to be positioned at (0,0), but it was done in + a hacking way in the WebEvent creating. + + Now we generate two transforms, one for transforming points + to the web content, and one for transforming them into the + device screen coordinate system. + + This fixes the global position which was wrong before. + + * Shared/NativeWebMouseEvent.h: + (NativeWebMouseEvent): + * Shared/NativeWebTouchEvent.h: + (NativeWebTouchEvent): + * Shared/NativeWebWheelEvent.h: + (NativeWebWheelEvent): + * Shared/efl/NativeWebMouseEventEfl.cpp: + (WebKit::NativeWebMouseEvent::NativeWebMouseEvent): + * Shared/efl/NativeWebTouchEventEfl.cpp: + (WebKit::NativeWebTouchEvent::NativeWebTouchEvent): + * Shared/efl/NativeWebWheelEventEfl.cpp: + (WebKit::NativeWebWheelEvent::NativeWebWheelEvent): + * Shared/efl/WebEventFactory.cpp: + (WebKit::WebEventFactory::createWebMouseEvent): + (WebKit::WebEventFactory::createWebWheelEvent): + (WebKit::WebEventFactory::createWebTouchEvent): + * Shared/efl/WebEventFactory.h: + (WebEventFactory): + * UIProcess/API/efl/ewk_view.cpp: + (toDeviceScreenTransform): + (toWebContentTransform): + (_ewk_view_smart_mouse_wheel): + (_ewk_view_smart_mouse_down): + (_ewk_view_smart_mouse_up): + (_ewk_view_smart_mouse_move): + (ewk_view_feed_touch_event): + +2012-10-31 Byungwoo Lee <bw80.lee@samsung.com> + + [WK2] Change the scope of locking in CoreIPC::Connection class. + https://bugs.webkit.org/show_bug.cgi?id=98998 + + Reviewed by Laszlo Gombos. + + Release the m_incomingMessagesLock and m_outgoingMessagesLock mutexes + immediately after the protected resource is no longer modified to + prevent a possible source of a deadlock. + + The change allows the EFL port to prevent an actual dead-lock + situation with some upcoming changes. + + * Platform/CoreIPC/Connection.cpp: + (CoreIPC::Connection::sendMessage): + (CoreIPC::Connection::enqueueIncomingMessage): + +2012-10-31 Tim Horton <timothy_horton@apple.com> + + Unreviewed, fix header sorting in r132992. + + * WebProcess/Plugins/PDF/PDFPluginAnnotation.mm: + * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm: + +2012-10-31 Tim Horton <timothy_horton@apple.com> + + Unreviewed, fix 32bit build breakage. + + * WebProcess/Plugins/PDF/PDFPluginAnnotation.mm: + (WebKit::PDFPluginAnnotation::updateGeometry): + +2012-10-31 Tim Horton <timothy_horton@apple.com> + + Full-page PDFPlugin should support inline form editing + https://bugs.webkit.org/show_bug.cgi?id=100155 + + Reviewed by Dan Bernstein. + + Add form controls corresponding to Text and Choice PDF annotations, + allowing for single- and multi-line text input, and <select>-like input. + + Currently, forms are only implemented for full-page PDF documents. + + * Shared/mac/PDFKitImports.h: + (WebKit): Add pdfAnnotationTextWidgetClass and pdfAnnotationChoiceWidgetClass. + * Shared/mac/PDFKitImports.mm: + (WebKit::pdfAnnotationTextWidgetClass): Add pdfAnnotationTextWidgetClass. + (WebKit::pdfAnnotationChoiceWidgetClass): Add pdfAnnotationChoiceWidgetClass. + * WebKit2.xcodeproj/project.pbxproj: Add PDFLayerControllerDetails, PDFPluginTextAnnotation, PDFPluginChoiceAnnotation, + and PDFPluginAnnotation. + * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Added. Extract PDFLayerController details category into a header. + * WebProcess/Plugins/PDF/PDFPlugin.h: + (PDFPlugin): Add m_activeAnnotation, to keep track of the active PDFPluginAnnotation, and m_annotationContainer, + the <div> that form controls are inserted into. + * WebProcess/Plugins/PDF/PDFPlugin.mm: + (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeActiveAnnotation:]): Forward active annotation changes to PDFPlugin. + (WebKit::PDFPlugin::PDFPlugin): Add a <div> to the PluginDocument <body>, which will contain <input>, <select>, and <textarea> elements + corresponding to the active annotation. This div is made to fit to the body, and is "overflow: hidden" so that form elements scrolled + out of the viewport do not cause the Document to expand to be larger than the Plugin. + (WebKit::PDFPlugin::pdfDocumentDidLoad): Update PDFPlugin's notion of the scroll position immediately after the document loads, in case + the scroll position is constrained by PDFKit. + (WebKit::PDFPlugin::destroy): Tear down any forms for the active annotation. + (WebKit::PDFPlugin::geometryDidChange): Notify the current annotation that it should update its geometry when the Plugin's geometry changes. + (WebKit::PDFPlugin::setScrollOffset): Notify the current annotation that it should update its geometry when we scroll. + (WebKit::PDFPlugin::setActiveAnnotation): Commit changes to the current annotation, if there is one, then make a new PDFPluginAnnotation + corresponding to the newly active annotation, and attach it to our document. + * WebProcess/Plugins/PDF/PDFPluginAnnotation.h: Added. + (WebKit::PDFPluginAnnotation::element): Return the Element corresponding to this object. + (WebKit::PDFPluginAnnotation::annotation): Return the PDFAnnotation corresponding to this object. + (WebKit::PDFPluginAnnotation::plugin): Return the Plugin that created this object. + (WebKit::PDFPluginAnnotation::commit): Commit changes from the form to the PDFAnnotation. This is implemented in subclasses. + (WebKit::PDFPluginAnnotation::attach): Attach a PDFPluginAnnotation to its parent Element. + (WebKit::PDFPluginAnnotation::parent): Return the parent Element that we're attach()ed to. + (WebKit::PDFPluginAnnotation::pdfLayerController): Return the pdfLayerController that the PDFAnnotation comes from. + (PDFPluginAnnotationEventListener): Add an event listener to respond to "change" and "blur" events from m_element. + * WebProcess/Plugins/PDF/PDFPluginAnnotation.mm: Added. + (WebKit::PDFPluginAnnotation::create): Create the appropriate PDFPluginAnnotation subclass (PDFPluginTextAnnotation or + PDFPluginChoiceAnnotation based on the class of the PDFAnnotation). + (WebKit::PDFPluginAnnotation::attach): Lazily create the HTML form element corresponding to this annotation. Add it to its parent + element. Add event listeners for "change" and "blur". + (WebKit::PDFPluginAnnotation::~PDFPluginAnnotation): Tear down the annotation, by removing event listeners and removing + the form element from its parent element. + (WebKit::PDFPluginAnnotation::updateGeometry): Update the size and position of the form element, given the current PDF scale and scrolling position. + (WebKit::PDFPluginAnnotation::PDFPluginAnnotationEventListener::handleEvent): If we get a blur or change event, we should remove the + form control to match the behavior of PDFKit. + * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.h: Added. + (WebKit::PDFPluginChoiceAnnotation::choiceAnnotation): Return annotation() with the appropriate cast. + * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm: Added. + (WebKit::PDFPluginChoiceAnnotation::updateGeometry): Update the font size of the choice widget given the current PDF scale. + (WebKit::PDFPluginChoiceAnnotation::commit): Save the value of the currently selected <option> into the PDFAnnotationChoiceWidget. + (WebKit::PDFPluginChoiceAnnotation::createAnnotationElement): Create a <select> element, populated with <option> elements + for the PDFAnnotationChoiceWidget's available choices. Select the correct <option> initially. + * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.h: Added. + (WebKit::PDFPluginTextAnnotation::textAnnotation): Return annotation() with the appropriate cast. + * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm: Added. + (WebKit::cssAlignmentValueForNSTextAlignment): Return the CSS alignment value for a given NSTextAlignment. + (WebKit::PDFPluginTextAnnotation::createAnnotationElement): Create a <textarea> or <input> element, depending on whether the + PDFAnnotationTextWidget supports multiline editing or not. + (WebKit::PDFPluginTextAnnotation::updateGeometry): Update the font size of the text widget given the current PDF scale. + (WebKit::PDFPluginTextAnnotation::commit): Save the current string in the form element into the PDFAnnotationTextWidget. + * WebProcess/WebPage/WebPage.cpp: + (WebKit::focusedPluginViewForFrame): Return the PluginView for a Frame only if the Plugin's element is focused. + (WebKit::WebPage::executeEditingCommand): Only forward editing commands to PluginView if the plugin itself is focused. + (WebKit::WebPage::isEditingCommandEnabled): Ditto. + (WebKit::WebPage::validateCommand): Ditto. + +2012-10-30 Joseph Pecoraro <pecoraro@apple.com> + + [Mac] Make WebKit2 Build with NETWORK_PROCESS disabled + https://bugs.webkit.org/show_bug.cgi?id=100798 + + Reviewed by David Kilzer. + + Wrap a few remaining NetworkProcess files and related code in + ENABLE(NETWORK_PROCESS) guards to avoid being compiled when disabled. + + * NetworkProcess/HostRecord.cpp: + * NetworkProcess/HostRecord.h: + * NetworkProcess/NetworkRequest.cpp: + * NetworkProcess/NetworkRequest.h: + * NetworkProcess/mac/NetworkResourceLoadSchedulerMac.mm: + * UIProcess/Network/NetworkProcessManager.cpp: + * UIProcess/Network/NetworkProcessManager.h: + Wrap files in guards. + + * UIProcess/Launcher/ProcessLauncher.h: + * UIProcess/Launcher/ProcessLauncher.cpp: + (WebKit::ProcessLauncher::processTypeAsString): + (WebKit::ProcessLauncher::getProcessTypeFromString): + Wrap NetworkProcess enum access in guards. + + * WebProcess/WebKitMain.cpp: + (WebKitMain): + Wrap NetworkProcess enum switch case in guards. + + * WebKit2Prefix.h: + Remove an extraneous close and reopen of the same guard. + +2012-10-30 Jae Hyun Park <jae.park@company100.net> + + Coordinated Graphics: Remove unused methods + https://bugs.webkit.org/show_bug.cgi?id=100799 + + Reviewed by Noam Rosenthal. + + Currently, there are several unused methods regarding Coordinated + Graphics. This patch removes those unused methods. + + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h: + (LayerTreeCoordinatorProxy): + * UIProcess/DrawingAreaProxy.h: + +2012-10-30 Joseph Pecoraro <pecoraro@apple.com> + + [Mac] Sync up FeatureDefine Configuration Files + https://bugs.webkit.org/show_bug.cgi?id=100171 + + Reviewed by David Kilzer. + + Follow up to better coordinate with iOS feature defines. Make: + + - ENABLE_FILTERS always on + - ENABLE_INPUT_* iphonesimulator values point to the iphoneos values + + * Configurations/FeatureDefines.xcconfig: + +2012-10-30 Joseph Pecoraro <pecoraro@apple.com> + + [Mac] Sync up FeatureDefine Configuration Files + https://bugs.webkit.org/show_bug.cgi?id=100171 + + Reviewed by David Kilzer. + + Ensure an identical FeatureDefine files across all projects. Changes: + + - ENABLE_CSS_BOX_DECORATION_BREAK should be in all + - ENABLE_PDFKIT_PLUGIN should be in all + - ENABLE_RESOLUTION_MEDIA_QUERY should be in all + - ENABLE_ENCRYPTED_MEDIA should be in all + - ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING with corrected value + - Some alphabetical ordering cleanup + + * Configurations/FeatureDefines.xcconfig: + +2012-10-30 Christophe Dumez <christophe.dumez@intel.com> + + Regression(r132887): Caused segfault in a EWK2UnitTestBase.ewk_view_text_find + https://bugs.webkit.org/show_bug.cgi?id=100781 + + Reviewed by Kenneth Rohde Christiansen. + + Make sure we pass a pointer to zero instead of a NULL pointer + as parameter to the "text,found" in case the text could not + be found. This prevents crashing in + EWK2UnitTestBase.ewk_view_text_find when trying to dereference + the parameter pointer. + + * UIProcess/efl/FindClientEfl.cpp: + (WebKit::FindClientEfl::didFailToFindString): + +2012-10-30 Brady Eidson <beidson@apple.com> + + Crash in WebProcess at com.apple.WebCore: WebCore::ResourceLoader::start + <rdar://problem/12596761> and https://webkit.org/b/100792 + + Reviewed by Tim Hatcher. + + In release builds we can sometimes end up with a null ResourceLoader due to a race condition + with the WebProcess telling the NetworkProcess to remove a resource load at the very same time + the NetworkProcess is about to start that load. + + Until we can resolve that race condition an early return will be necessary. + + * WebProcess/Network/WebResourceLoadScheduler.cpp: + (WebKit::WebResourceLoadScheduler::startResourceLoad): + +2012-10-30 Jesse van den Kieboom <jessevdk@gnome.org> + + Fixed transfer annotation for default web context + https://bugs.webkit.org/show_bug.cgi?id=94314 + + Reviewed by Martin Robinson. + + Add a missing colon which prevented the transfer annotation of + webkit_web_context_get_default to be parsed correctly. + + * UIProcess/API/gtk/WebKitWebContext.cpp: + +2012-10-30 Anders Carlsson <andersca@apple.com> + + Use the message name when dispatching messages + https://bugs.webkit.org/show_bug.cgi?id=100774 + + Reviewed by Andreas Kling. + + Change the message generator to decide which function to call based on the message name instead + of the MessageID. This is yet another step towards eliminating MessageID completely. + + * Scripts/webkit2/messages.py: + (async_message_statement): + (sync_message_statement): + (generate_message_handler): + * Scripts/webkit2/messages_unittest.py: + * UIProcess/WebProcessProxy.h: + (WebKit::WebProcessProxy::send): + * WebProcess/InjectedBundle/InjectedBundle.cpp: + (WebKit::InjectedBundle::postMessage): + (WebKit::InjectedBundle::postSynchronousMessage): + +2012-10-29 Sam Weinig <sam@webkit.org> + + Switch more class to use the new << form of encode + https://bugs.webkit.org/show_bug.cgi?id=100725 + + Reviewed by Anders Carlsson. + + - Switches many uses of encoder.encode(foo) to encoder << foo. + - Switches a few places to take an ArgumentEncoder& rather than an ArgumentEncoder*. + - Switches a few places away from using encoder.encodeVariableLengthByteArray(foo) to + using encoder << CoreIPC::DataReference(foo). + + * Platform/CoreIPC/HandleMessage.h: + (CoreIPC::handleMessage): + (CoreIPC::handleMessageVariadic): + * Platform/CoreIPC/StringReference.cpp: + (CoreIPC::StringReference::encode): + (CoreIPC::StringReference::decode): + * Platform/CoreIPC/mac/MachPort.h: + (CoreIPC::MachPort::encode): + * Platform/mac/SharedMemoryMac.cpp: + (WebKit::SharedMemory::Handle::encode): + * PluginProcess/PluginCreationParameters.cpp: + (WebKit::PluginCreationParameters::encode): + * Shared/DictionaryPopupInfo.cpp: + (WebKit::DictionaryPopupInfo::encode): + * Shared/EditorState.cpp: + (WebKit::EditorState::encode): + * Shared/FontInfo.cpp: + (WebKit::FontInfo::encode): + * Shared/Network/NetworkProcessCreationParameters.cpp: + (WebKit::NetworkProcessCreationParameters::encode): + * Shared/OriginAndDatabases.cpp: + (WebKit::OriginAndDatabases::encode): + * Shared/PlatformPopupMenuData.cpp: + (WebKit::PlatformPopupMenuData::encode): + * Shared/Plugins/NPIdentifierData.cpp: + (WebKit::NPIdentifierData::encode): + * Shared/Plugins/NPVariantData.cpp: + (WebKit::NPVariantData::encode): + * Shared/Plugins/PluginProcessCreationParameters.cpp: + (WebKit::PluginProcessCreationParameters::encode): + * Shared/PrintInfo.cpp: + (WebKit::PrintInfo::encode): + * Shared/SecurityOriginData.cpp: + (WebKit::SecurityOriginData::encode): + * Shared/SessionState.cpp: + (WebKit::SessionState::encode): + * Shared/ShareableBitmap.cpp: + (WebKit::ShareableBitmap::Handle::encode): + * Shared/SharedWorkerProcessCreationParameters.cpp: + (WebKit::SharedWorkerProcessCreationParameters::encode): + * Shared/StatisticsData.cpp: + (WebKit::StatisticsData::encode): + * Shared/StringPairVector.h: + (WebKit::StringPairVector::encode): + * Shared/UpdateInfo.cpp: + (WebKit::UpdateInfo::encode): + * Shared/UserMessageCoders.h: + (WebKit::UserMessageEncoder::baseEncode): + * Shared/WebBackForwardListItem.cpp: + (WebKit::WebBackForwardListItem::encode): + * Shared/WebContextMenuItemData.cpp: + (WebKit::WebContextMenuItemData::encode): + * Shared/WebEvent.cpp: + (WebKit::WebEvent::encode): + * Shared/WebGestureEvent.cpp: + (WebKit::WebGestureEvent::encode): + * Shared/WebHitTestResult.cpp: + (WebKit::WebHitTestResult::Data::encode): + * Shared/WebKeyboardEvent.cpp: + (WebKit::WebKeyboardEvent::encode): + * Shared/WebMouseEvent.cpp: + (WebKit::WebMouseEvent::encode): + * Shared/WebNavigationDataStore.h: + (WebKit::WebNavigationDataStore::encode): + * Shared/WebPageCreationParameters.cpp: + (WebKit::WebPageCreationParameters::encode): + * Shared/WebPageGroupData.cpp: + (WebKit::WebPageGroupData::encode): + * Shared/WebPlatformTouchPoint.cpp: + (WebKit::WebPlatformTouchPoint::encode): + * Shared/WebPopupItem.cpp: + (WebKit::WebPopupItem::encode): + * Shared/WebPreferencesStore.cpp: + (WebKit::WebPreferencesStore::encode): + * Shared/WebProcessCreationParameters.cpp: + (WebKit::WebProcessCreationParameters::encode): + * Shared/WebTouchEvent.cpp: + (WebKit::WebTouchEvent::encode): + * Shared/WebWheelEvent.cpp: + (WebKit::WebWheelEvent::encode): + * Shared/cf/ArgumentCodersCF.cpp: + (CoreIPC::encode): + (CoreIPC::decode): + * Shared/cf/ArgumentCodersCF.h: + (CoreIPC): + * Shared/mac/ArgumentCodersMac.h: + (CoreIPC): + * Shared/mac/ArgumentCodersMac.mm: + (CoreIPC::encode): + * Shared/mac/AttributedString.mm: + (WebKit::AttributedString::encode): + * Shared/mac/ColorSpaceData.mm: + (WebKit::ColorSpaceData::encode): + * Shared/mac/KeychainAttribute.cpp: + (CoreIPC::encode): + * Shared/mac/KeychainAttribute.h: + (CoreIPC): + * Shared/mac/LayerTreeContextMac.mm: + (WebKit::LayerTreeContext::encode): + * Shared/mac/PlatformCertificateInfo.mm: + (WebKit::PlatformCertificateInfo::encode): + * 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): + * Shared/mac/SecItemResponseData.cpp: + (WebKit::SecItemResponseData::encode): + * Shared/mac/SecKeychainItemRequestData.cpp: + (WebKit::SecKeychainItemRequestData::encode): + (WebKit::SecKeychainItemRequestData::decode): + * Shared/mac/SecKeychainItemResponseData.cpp: + (WebKit::SecKeychainItemResponseData::encode): + * Shared/mac/WebCoreArgumentCodersMac.mm: + (CoreIPC::::encodePlatformData): + * UIProcess/WebConnectionToWebProcess.cpp: + (WebKit::WebConnectionToWebProcess::encodeMessageBody): + * UIProcess/WebContextUserMessageCoders.h: + (WebKit::WebContextUserMessageEncoder::encode): + * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h: + (WebKit::InjectedBundleUserMessageEncoder::encode): + * WebProcess/Plugins/Plugin.cpp: + (WebKit::Plugin::Parameters::encode): + * WebProcess/WebConnectionToUIProcess.cpp: + (WebKit::WebConnectionToUIProcess::encodeMessageBody): + +2012-10-29 Anders Carlsson <andersca@apple.com> + + Build WebKit as C++11 on Mac + https://bugs.webkit.org/show_bug.cgi?id=100720 + + Reviewed by Daniel Bates. + + * Configurations/Base.xcconfig: + Add CLANG_CXX_LANGUAGE_STANDARD=gnu++0x. + + * UIProcess/mac/WebCookieManagerProxyMac.mm: + (WebKit::WebCookieManagerProxy::persistHTTPCookieAcceptPolicy): + * WebProcess/Cookies/mac/WebCookieManagerMac.mm: + (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy): + Add explicit casts to NSHTTPCookieAcceptPolicy. + +2012-10-30 Sergio Villar Senin <svillar@igalia.com> + + [WK2][Qt] Enable hover and mouse events in flickable WebView + https://bugs.webkit.org/show_bug.cgi?id=100296 + + Reviewed by Kenneth Rohde Christiansen. + + Flickable WebView is now allowed to handle both hover and mouse + events. Flickable was initially meant to be the mobile interface and + was only handling touch events, but now the idea is that it will be + the WebView for both mobile and desktop environments. + + * UIProcess/API/qt/qquickwebview.cpp: + (QQuickWebViewPrivate::initialize): refactored hover and mouse + event handling from children classes. + (QQuickWebViewLegacyPrivate::initialize): + (QQuickWebViewFlickablePrivate::QQuickWebViewFlickablePrivate): + +2012-10-29 Anders Carlsson <andersca@apple.com> + + String::createCFString should return a RetainPtr + https://bugs.webkit.org/show_bug.cgi?id=100419 + + Reviewed by Andreas Kling. + + Update callers of String::createCFString. + + * Platform/mac/ModuleMac.mm: + (WebKit::Module::load): + * PluginProcess/mac/PluginProcessMac.mm: + (WebKit::initializeSandbox): + * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm: + (WebKit::NetscapePluginModule::getPluginInfo): + (WebKit::NetscapePluginModule::createPluginMIMETypesPreferences): + * UIProcess/cf/WebBackForwardListCF.cpp: + (WebKit::WebBackForwardList::createCFDictionaryRepresentation): + * UIProcess/cf/WebPageProxyCF.cpp: + (WebKit::WebPageProxy::sessionStateData): + (WebKit::autosaveKey): + (WebKit::WebPageProxy::saveRecentSearches): + * WebProcess/ResourceCache/WebResourceCacheManager.cpp: + (WebKit::WebResourceCacheManager::clearCacheForOrigin): + * WebProcess/WebPage/win/WebPageWin.cpp: + (WebKit::cachedResponseForURL): + * WebProcess/win/WebProcessWin.cpp: + (WebKit::WebProcess::platformSetCacheModel): + (WebKit::WebProcess::platformInitializeWebProcess): + +2012-10-30 Kondapally Kalyan <kalyan.kondapally@intel.com> + + Regression(r132647)-Enable WebGL in EwkView. + https://bugs.webkit.org/show_bug.cgi?id=100552. + + Reviewed by Kenneth Rohde Christiansen. + + WebGL is enabled with following changeset: http://trac.webkit.org/changeset/132627. + Some changes are lost after the following changeset: http://trac.webkit.org/changeset/132647 + i.e setWebGLEnabled(true); in EwkViewImpl.cpp. + This patch re-applies the lost changes. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + +2012-10-30 No'am Rosenthal <noam.rosenthal@nokia.com> + + [Qt] Animations jump when the page is suspended + https://bugs.webkit.org/show_bug.cgi?id=100673 + + Reviewed by Kenneth Rohde Christiansen. + + GraphicsLayerAnimations::pause() should accept time from start and not an offset. + + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: + (WebCore::CoordinatedGraphicsLayer::addAnimation): + (WebCore::CoordinatedGraphicsLayer::pauseAnimation): + (WebCore::CoordinatedGraphicsLayer::animationStartedTimerFired): + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: + (CoordinatedGraphicsLayer): + +2012-10-30 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Fix EFL build after r132887 + https://bugs.webkit.org/show_bug.cgi?id=100748 + + Reviewed by Gyuyoung Kim. + + Fixed EFL build failure with WTF_USE_TILED_BACKING_STORE enabled caused by http://trac.webkit.org/changeset/132887. + + * UIProcess/efl/PageLoadClientEfl.cpp: + (WebKit::PageLoadClientEfl::didCommitLoadForFrame): + +2012-10-30 Max Vujovic <mvujovic@adobe.com> + + [CSS Shaders] Reject vertex shaders with custom attributes + https://bugs.webkit.org/show_bug.cgi?id=98973 + + Reviewed by Dean Jackson. + + Replace CustomFilterOperation::MeshType with CustomFilterMeshType from + CustomFilterConstants.h. + + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::::encode): + Read the shader strings directly from the CustomFilterProgram instead of asking for a + CustomFilterProgramInfo object. Also, encode the meshType earlier so that decoding can + can use it to create a WebCustomFilterProgram, which now requires a meshType. + (CoreIPC::::decode): + Decode the meshType earlier to pass it to the new WebCustomFilterProgram constructor. + * Shared/CoordinatedGraphics/WebCustomFilterProgram.h: + (WebKit::WebCustomFilterProgram::create): + Add a meshType parameter to pass to the base class constructor. + (WebKit::WebCustomFilterProgram::WebCustomFilterProgram): Ditto. + +2012-10-30 Andras Becsi <andras.becsi@digia.com> + + [Qt][WK2] Remove ViewportUpdateDeferrer from PageViewportController + https://bugs.webkit.org/show_bug.cgi?id=100665 + + Reviewed by Jocelyn Turcotte. + + Since the original use case of delayed viewport updates and the issue + of infinite loop conditions between the programmatic adjustmet of the + viewport and the Qt notification signals are not present any more the + ViewportUpdateDeferrer became an unnecessary legacy and can be removed. + + * UIProcess/PageViewportController.cpp: + (WebKit::PageViewportController::PageViewportController): + (WebKit::PageViewportController::pageDidRequestScroll): + * UIProcess/PageViewportController.h: + (WebKit): + (PageViewportController): + * UIProcess/qt/PageViewportControllerClientQt.cpp: + (WebKit::PageViewportControllerClientQt::PageViewportControllerClientQt): + (WebKit::PageViewportControllerClientQt::animateContentRectVisible): + (WebKit::PageViewportControllerClientQt::flickMoveStarted): + (WebKit::PageViewportControllerClientQt::flickMoveEnded): + (WebKit::PageViewportControllerClientQt::scaleAnimationStateChanged): + (WebKit::PageViewportControllerClientQt::touchBegin): + (WebKit::PageViewportControllerClientQt::touchEnd): + (WebKit::PageViewportControllerClientQt::setContentsRectToNearestValidBounds): + (WebKit::PageViewportControllerClientQt::pinchGestureStarted): + (WebKit::PageViewportControllerClientQt::pinchGestureEnded): + (WebKit::PageViewportControllerClientQt::pinchGestureCancelled): + * UIProcess/qt/PageViewportControllerClientQt.h: + (PageViewportControllerClientQt): + +2012-10-30 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Simplify signal emitting API in EwkViewImpl + https://bugs.webkit.org/show_bug.cgi?id=100506 + + Reviewed by Kenneth Rohde Christiansen. + + Now signal emitting API in EwkViewImpl is simplified so that + there is one EwkViewImpl::smartCallback template method + returning EwkViewCallbacks::CallBack class instance + which encapsulates Ewk_view callback info and also provide + arguments type checking. + + * UIProcess/API/efl/EwkViewCallbacks.h: Added. + (EwkViewCallbacks): + (CallBackInfo): + (EwkViewCallbacks::CallBackInfo::name): + (EwkViewCallbacks::CallBackInfo::hasArguments): + (CallBack): + (EwkViewCallbacks::CallBack::CallBack): + (EwkViewCallbacks::CallBack::call): + * UIProcess/API/efl/EwkViewImpl.cpp: + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + (EwkViewImpl::smartCallback): + * UIProcess/efl/DownloadManagerEfl.cpp: + (WebKit::DownloadManagerEfl::decideDestinationWithSuggestedFilename): + (WebKit::DownloadManagerEfl::didFail): + (WebKit::DownloadManagerEfl::didCancel): + (WebKit::DownloadManagerEfl::didFinish): + * UIProcess/efl/FindClientEfl.cpp: + (WebKit::FindClientEfl::didFindString): + (WebKit::FindClientEfl::didFailToFindString): + * UIProcess/efl/FormClientEfl.cpp: + (WebKit::FormClientEfl::willSubmitForm): + * UIProcess/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::processDidCrash): + (WebKit::PageClientImpl::toolTipChanged): + * UIProcess/efl/PageLoadClientEfl.cpp: + (WebKit::PageLoadClientEfl::didReceiveTitleForFrame): + (WebKit::PageLoadClientEfl::didReceiveIntentForFrame): + (WebKit::PageLoadClientEfl::registerIntentServiceForFrame): + (WebKit::PageLoadClientEfl::didChangeProgress): + (WebKit::PageLoadClientEfl::didFinishLoadForFrame): + (WebKit::PageLoadClientEfl::didFailLoadWithErrorForFrame): + (WebKit::PageLoadClientEfl::didStartProvisionalLoadForFrame): + (WebKit::PageLoadClientEfl::didReceiveServerRedirectForProvisionalLoadForFrame): + (WebKit::PageLoadClientEfl::didFailProvisionalLoadWithErrorForFrame): + (WebKit::PageLoadClientEfl::didCommitLoadForFrame): + (WebKit::PageLoadClientEfl::didChangeBackForwardList): + * UIProcess/efl/PagePolicyClientEfl.cpp: + (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction): + (WebKit::PagePolicyClientEfl::decidePolicyForNewWindowAction): + * UIProcess/efl/ResourceLoadClientEfl.cpp: + (WebKit::ResourceLoadClientEfl::didInitiateLoadForResource): + (WebKit::ResourceLoadClientEfl::didSendRequestForResource): + (WebKit::ResourceLoadClientEfl::didReceiveResponseForResource): + (WebKit::ResourceLoadClientEfl::didFinishLoadForResource): + (WebKit::ResourceLoadClientEfl::didFailLoadForResource): + (WebKit::ResourceLoadClientEfl::ResourceLoadClientEfl): + (WebKit::ResourceLoadClientEfl::~ResourceLoadClientEfl): + +2012-10-30 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + Coordinated Graphics: Unrelease adopted images + https://bugs.webkit.org/show_bug.cgi?id=100671 + + Reviewed by Kenneth Rohde Christiansen. + + Reloading could cause a crash since r132640 where the directly composited + image would be re-adopted with the same key before it was properly released + in the UI process. + Cancel the release when this happens rather than creating a new image. + + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit::LayerTreeCoordinator::adoptImageBackingStore): + +2012-10-30 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Let Ecore_Evas own the cursor object + https://bugs.webkit.org/show_bug.cgi?id=100731 + + Reviewed by Kenneth Rohde Christiansen. + + Ecore_Evas takes care of calling evas_object_del() on + the cursor object when it is no longer used (e.g. when + it is replaced by another cursor object). Therefore, + we don't need to keep a RefPtr to the cursor Evas + Object as a data member of EwkViewImpl. We pass + ownership of the cursor object to Ecore_Evas. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::setCursor): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + +2012-10-30 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Simplify getting impl from ewk_view evas object instance + https://bugs.webkit.org/show_bug.cgi?id=100505 + + Reviewed by Kenneth Rohde Christiansen. + + Macros are removed from EwkViewImpl.h. New macro added to EwkViewImpl.cpp + so that it's possible to get impl directly from ewk view. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::displayTimerFired): + * UIProcess/API/efl/EwkViewImpl.h: + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_focus_in): + (_ewk_view_smart_focus_out): + (mapToWebContent): + (_ewk_view_smart_mouse_wheel): + (_ewk_view_smart_mouse_down): + (_ewk_view_smart_mouse_up): + (_ewk_view_smart_mouse_move): + (_ewk_view_smart_key_down): + (_ewk_view_smart_key_up): + (_ewk_view_on_show): + (_ewk_view_on_hide): + (_ewk_view_smart_calculate): + (_ewk_view_smart_color_set): + (ewk_view_context_get): + (ewk_view_url_set): + (ewk_view_url_get): + (ewk_view_icon_url_get): + (ewk_view_reload): + (ewk_view_reload_bypass_cache): + (ewk_view_stop): + (ewk_view_settings_get): + (ewk_view_title_get): + (ewk_view_load_progress_get): + (ewk_view_scale_set): + (ewk_view_scale_get): + (ewk_view_device_pixel_ratio_set): + (ewk_view_device_pixel_ratio_get): + (ewk_view_theme_set): + (ewk_view_theme_get): + (ewk_view_back): + (ewk_view_forward): + (ewk_view_intent_deliver): + (ewk_view_back_possible): + (ewk_view_forward_possible): + (ewk_view_back_forward_list_get): + (ewk_view_html_string_load): + (ewk_view_setting_encoding_custom_get): + (ewk_view_setting_encoding_custom_set): + (ewk_view_text_find): + (ewk_view_text_find_highlight_clear): + (ewk_view_text_matches_count): + (ewk_view_mouse_events_enabled_set): + (ewk_view_mouse_events_enabled_get): + (ewk_view_feed_touch_event): + (ewk_view_touch_events_enabled_set): + (ewk_view_touch_events_enabled_get): + (ewk_view_inspector_show): + (ewk_view_inspector_close): + (ewk_view_pagination_mode_set): + (ewk_view_pagination_mode_get): + +2012-10-30 Byungwoo Lee <bw80.lee@samsung.com> + + [WK2] Remove incorrect use of preprocessor macro in API headers. + https://bugs.webkit.org/show_bug.cgi?id=100722 + + Reviewed by Gyuyoung Kim. + + Remove the preprocessor macro ENABLE(INSPECTOR) from the WKAPICast.h + and WKInspector.h. + + * UIProcess/API/C/WKAPICast.h: + (WebKit): + * UIProcess/API/C/WKInspector.cpp: + (WKInspectorGetTypeID): + (WKInspectorGetPage): + (WKInspectorIsVisible): + (WKInspectorIsFront): + (WKInspectorShow): + (WKInspectorClose): + (WKInspectorShowConsole): + (WKInspectorShowResources): + (WKInspectorShowMainResourceForFrame): + (WKInspectorIsAttached): + (WKInspectorAttach): + (WKInspectorDetach): + (WKInspectorIsDebuggingJavaScript): + (WKInspectorToggleJavaScriptDebugging): + (WKInspectorIsProfilingJavaScript): + (WKInspectorToggleJavaScriptProfiling): + (WKInspectorIsProfilingPage): + (WKInspectorTogglePageProfiling): + * UIProcess/API/C/WKInspector.h: + +2012-10-29 Sergio Villar Senin <svillar@igalia.com> + + REGRESSION(r130755): All WebKit2 unit tests are failing in WebKit2 bot + https://bugs.webkit.org/show_bug.cgi?id=98864 + + Reviewed by Martin Robinson. + + Use a dedicated directory to store WebKit2 generated resources. + + * UIProcess/API/gtk/tests/GNUmakefile.am: + * UIProcess/API/gtk/tests/TestMain.cpp: + (registerGResource): load the resource from the new directory. + +2012-10-29 Huang Dongsung <luxtella@company100.net> + + Coordinated Graphics: Delete cached ShareableSurfaces when purging backingStores. + https://bugs.webkit.org/show_bug.cgi?id=100705 + + Reviewed by Noam Rosenthal. + + LayerTreeCoordinatorProxy can be used after calling + LayerTreeCoordinatorProxy::purgeBackingStores(). So we should clear cached + ShareableSurfaces. + + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp: + (WebKit::LayerTreeCoordinatorProxy::purgeBackingStores): + +2012-10-28 Mark Rowe <mrowe@apple.com> + + Simplify Xcode configuration settings that used to vary between OS versions. + + Reviewed by Dan Bernstein. + + * Configurations/Base.xcconfig: + * Configurations/WebKit2.xcconfig: + +2012-10-28 Mark Rowe <mrowe@apple.com> + + Remove references to unsupported OS and Xcode versions. + + Reviewed by Anders Carlsson. + + * Configurations/Base.xcconfig: + * Configurations/CompilerVersion.xcconfig: Removed. + * Configurations/DebugRelease.xcconfig: + * Configurations/Version.xcconfig: + * DerivedSources.make: + * WebKit2.xcodeproj/project.pbxproj: + +2012-10-29 Alexey Proskuryakov <ap@apple.com> + + [WK2] Add a NetworkingContext for NetworkProcess + https://bugs.webkit.org/show_bug.cgi?id=100708 + + Reviewed by Anders Carlsson. + + Each request will have a context, because these are so lightweight on Mac, and + other platforms will need ResourceHandle refactored anyway to use NetworkProcess. + + * NetworkProcess/mac/RemoteNetworkingContext.h: Added. + * NetworkProcess/mac/RemoteNetworkingContext.mm: Added. + These go mac/ subdirectory, because NetworkingContext interface is different on + each platform, as ResourceHandle needs dictate. + + * WebKit2.xcodeproj/project.pbxproj: + +2012-10-29 Michael Saboff <msaboff@apple.com> + + buildHTTPHeaders() should use a StringBuilder.appendLiteral() for separator + https://bugs.webkit.org/show_bug.cgi?id=100689 + + Reviewed by Darin Adler. + + Changed from using a String temporary for the separator to using StringBuilder.appendLiteral(": "). + + * WebProcess/Plugins/PluginView.cpp: + (WebKit::buildHTTPHeaders): + +2012-10-29 Michael Saboff <msaboff@apple.com> + + WKStringCopyCFString() should directly use 8 bit Strings data instead of up converting + https://bugs.webkit.org/show_bug.cgi?id=100579 + + Reviewed by Oliver Hunt. + + Changed to use CFStringCreateWithBytes() for 8 bit strings using characters8() for an 8 bit argument string. + Changed the current call to characters16(). + + * Shared/API/c/cf/WKStringCF.cpp: + (WKStringCopyCFString): + +2012-10-29 Enrica Casucci <enrica@apple.com> + + Add ENABLE_USERSELECT_ALL feature flag. + https://bugs.webkit.org/show_bug.cgi?id=100559 + + Reviewed by Eric Seidel. + + * Configurations/FeatureDefines.xcconfig: + +2012-10-29 Christophe Dumez <christophe.dumez@intel.com> + + [WK2][WKTR] Enable Shadow DOM at runtime if compiled with SHADOW_DOM support + https://bugs.webkit.org/show_bug.cgi?id=100668 + + Reviewed by Kenneth Rohde Christiansen. + + Add Bundle API to enable Shadow DOM functionality. This is + now needed by WebKitTestRunner. + + * WebProcess/InjectedBundle/API/c/WKBundle.cpp: + (WKBundleSetShadowDOMEnabled): + * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: + * WebProcess/InjectedBundle/InjectedBundle.cpp: + (WebKit::InjectedBundle::setShadowDOMEnabled): + (WebKit): + * WebProcess/InjectedBundle/InjectedBundle.h: + (InjectedBundle): + +2012-10-29 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Fix cursor change detection in EwkViewImpl::setCursor() + https://bugs.webkit.org/show_bug.cgi?id=100662 + + Reviewed by Kenneth Rohde Christiansen. + + Cursor change detection in EwkViewImpl::setCursor() relies on + addresses returned by Cursor::platformCursor(). However, the + value returned is currently assigned to a WKEinaSharedString + instead of a raw pointer. Therefore, the address is always + different and we keep recreating Evas Objects for the same + cursor. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::setCursor): Call smartData() after same cursor + detection since it is not needed if the cursor has not changed + and it may affect performance. + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + +2012-10-29 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + Coordinated Graphics: Make sure that we release images immediately when purging resources + https://bugs.webkit.org/show_bug.cgi?id=100661 + + Reviewed by Noam Rosenthal. + + When we purge, we do both on the UI and web process at the same time, + both are expected to release references of the other process. + This creates problem when delaying the release of directly composited + images. + + Release them immediately in that case. + + Fixes the tst_QQuickWebView::removeFromCanvas API test. + + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit::LayerTreeCoordinator::flushPendingLayerChanges): + (WebKit::LayerTreeCoordinator::purgeReleasedImages): + (WebKit): + (WebKit::LayerTreeCoordinator::purgeBackingStores): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: + (LayerTreeCoordinator): + +2012-10-29 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Avoid useless assignment in EwkViewImpl::setCustomTextEncodingName() + https://bugs.webkit.org/show_bug.cgi?id=100667 + + Reviewed by Kenneth Rohde Christiansen. + + Remove useless m_customEncoding assignment in EwkViewImpl::setCustomTextEncodingName() + since the member is anyway assigned in EwkViewImpl::customTextEncodingName(). + + Have EwkViewImpl::setCustomTextEncodingName() take a String in argument instead + of a const char* to make the API more C++ and since we don't need a const char* + to assign to m_customEncoding anymore. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::setCustomTextEncodingName): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + * UIProcess/API/efl/ewk_view.cpp: + (ewk_view_setting_encoding_custom_set): + +2012-10-29 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + [WK2] Enable delegated scrolling as soon as the FrameView is created when using fixed layout + https://bugs.webkit.org/show_bug.cgi?id=100383 + + Reviewed by Kenneth Rohde Christiansen. + + Scroll requests and PageTransitionViewportReady messages depend on + delegated scrolling being set properly on the FrameView to behave + properly. Since we were waiting for the viewport information to be + ready before setting the flag this could cause those messages to be avoided. + + This patch takes most of the flag set by setResizesToContentsUsingLayoutSize + and apply them as soon as possible in WebPage::setUseFixedLayout and + WebFrameLoaderClient::transitionToCommittedForNewPage. + + The behavior should be the same except for the following settings which are + now set outside of USE(TILED_BACKING_STORE) if we're using fixed layout: + - setAcceleratedCompositingForFixedPositionEnabled + - setFixedElementsLayoutRelativeToFrame + - setFixedPositionCreatesStackingContext + + This fixes the tst_QQuickWebView::scrollRequest auto test and improves the + reliability of the loadVisuallyCommitted signal with pages loaded from disk. + + * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: + (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage): + * WebProcess/WebPage/WebPage.cpp: + (WebKit::WebPage::sendViewportAttributesChanged): + (WebKit::WebPage::setUseFixedLayout): + (WebKit::WebPage::setFixedLayoutSize): + * WebProcess/WebPage/WebPage.h: + (WebPage): + +2012-10-29 Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> + + Unreviewed build fix after r132709. + + * Shared/WebMemorySampler.cpp: Include unistd.h for getpid(3). + +2012-10-28 Byungwoo Lee <bw80.lee@samsung.com> + + [WK2] Fix the incorrect use of preprocessor statement in API header. + https://bugs.webkit.org/show_bug.cgi?id=100610 + + Reviewed by Timothy Hatcher. + + Remove the preprocessor statement to check 'ENABLE_INSPECTOR' feature + from the WKPage.h. + + * UIProcess/API/C/WKPage.cpp: + (WKPageGetInspector): + * UIProcess/API/C/WKPage.h: + +2012-10-28 Yael Aharon <yael.aharon@intel.com> + + [EFL][WK2][AC] Viewport size does not change when the window size changes + https://bugs.webkit.org/show_bug.cgi?id=100573 + + Reviewed by Kenneth Rohde Christiansen. + + The viewport size is set when we create the window the first time + and does not change automatically afterwards. When we change the window size, + we need to explicitly change the viewport size as well. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::createGLSurface): + +2012-10-27 Noam Rosenthal <noam.rosenthal@nokia.com> + + Unreviewed build fix for breakage to minimal bot caused by r132742. + + * WebProcess/WebPage/LayerTreeHost.h: + (LayerTreeHost): + Added appropriate ENABLE(REQUEST_ANIMATION_FRAME) flag. + +2012-10-27 Sheriff Bot <webkit.review.bot@gmail.com> + + Unreviewed, rolling out r132740. + http://trac.webkit.org/changeset/132740 + https://bugs.webkit.org/show_bug.cgi?id=100603 + + "Causing many crashes" (Requested by weinig on #webkit). + + * UIProcess/Downloads/DownloadProxy.cpp: + (WebKit::DownloadProxy::DownloadProxy): + (WebKit::DownloadProxy::invalidate): + (WebKit): + * UIProcess/Downloads/DownloadProxy.h: + (DownloadProxy): + * UIProcess/WebContext.cpp: + (WebKit::WebContext::createDownloadProxy): + (WebKit::WebContext::downloadFinished): + (WebKit::WebContext::didReceiveMessage): + (WebKit::WebContext::didReceiveSyncMessage): + * UIProcess/WebContext.h: + (WebKit): + * UIProcess/WebPageProxy.cpp: + (WebKit::WebPageProxy::WebPageProxy): + (WebKit::WebPageProxy::~WebPageProxy): + (WebKit::WebPageProxy::didReceiveMessage): + (WebKit::WebPageProxy::didReceiveSyncMessage): + * UIProcess/WebPageProxy.h: + (CoreIPC): + (WebPageProxy): + * UIProcess/WebProcessProxy.cpp: + (WebKit::WebProcessProxy::didReceiveMessage): + (WebKit::WebProcessProxy::didReceiveSyncMessage): + * UIProcess/WebProcessProxy.h: + (WebProcessProxy): + * WebProcess/WebPage/WebPageGroupProxy.cpp: + (WebKit::WebPageGroupProxy::~WebPageGroupProxy): + (WebKit): + (WebKit::WebPageGroupProxy::didReceiveMessage): + (WebKit::WebPageGroupProxy::WebPageGroupProxy): + * WebProcess/WebPage/WebPageGroupProxy.h: + (CoreIPC): + (WebPageGroupProxy): + * WebProcess/WebProcess.cpp: + (WebKit::WebProcess::didReceiveSyncMessage): + (WebKit::WebProcess::didReceiveMessage): + +2012-10-27 Noam Rosenthal <noam.rosenthal@nokia.com> + + Coordinated Graphics: Animation jerkiness when rAF is enabled + https://bugs.webkit.org/show_bug.cgi?id=100536 + + Reviewed by Kenneth Rohde Christiansen. + + The jerkiness comes from the fact that we schedule animations excessively; That's because + the previous patch broke requestAnimationFrame behavior during CSS animations, since the + frame returns right away instead of waiting till the previous frame is actually rendered. + + This patch makes sure that when animations are scheduled, they're only serviced after the + UI process has actually painted the previous frame. We do so by sending a + RequestAnimationFrame message to the UI process, which responds with AnimationFrameReady + after the UI process paints. + + New test: fast/animations/request-animation-frame-too-rapid.html + Tests that we don't receive an unreasonably high number of callbacks from + requestAnimationFrame (> 1000FPS). + + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp: + (WebKit): + (WebKit::LayerTreeCoordinatorProxy::requestAnimationFrame): + (WebKit::LayerTreeCoordinatorProxy::animationFrameReady): + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h: + (LayerTreeCoordinatorProxy): + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in: + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp: + (WebKit::LayerTreeRenderer::LayerTreeRenderer): + (WebKit::LayerTreeRenderer::paintToCurrentGLContext): + (WebKit): + (WebKit::LayerTreeRenderer::animationFrameReady): + (WebKit::LayerTreeRenderer::requestAnimationFrame): + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: + (LayerTreeRenderer): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit): + (WebKit::LayerTreeCoordinator::scheduleAnimation): + (WebKit::LayerTreeCoordinator::animationFrameReady): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: + (LayerTreeCoordinator): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.messages.in: + +2012-10-27 Sam Weinig <sam@webkit.org> + + Yet more MessageReceivering + https://bugs.webkit.org/show_bug.cgi?id=100325 + + Reviewed by Anders Carlsson. + + Make DownloadProxy, WebPageProxy, and WebPageGroupProxy MessageReceivers. + + * UIProcess/Downloads/DownloadProxy.cpp: + (WebKit::DownloadProxy::DownloadProxy): + (WebKit::DownloadProxy::invalidate): + (WebKit::DownloadProxy::didReceiveMessage): + (WebKit::DownloadProxy::didReceiveSyncMessage): + * UIProcess/Downloads/DownloadProxy.h: + (DownloadProxy): + Make a MessageReceiver. + + * UIProcess/WebContext.cpp: + (WebKit::WebContext::WebContext): + (WebKit::WebContext::addMessageReceiver): + (WebKit::WebContext::removeMessageReceiver): + (WebKit::WebContext::didReceiveMessage): + (WebKit::WebContext::didReceiveSyncMessage): + * UIProcess/WebContext.h: + Add additional MessageReceiverMap forwards, and stop dealing with DownloadProxy explicitly. + + * UIProcess/WebPageProxy.cpp: + (WebKit::WebPageProxy::WebPageProxy): + (WebKit::WebPageProxy::~WebPageProxy): + (WebKit::WebPageProxy::didReceiveMessage): + (WebKit::WebPageProxy::didReceiveSyncMessage): + * UIProcess/WebPageProxy.h: + Make a MessageReceiver, but keep sub objects using didReceiveMessage for now (like WebPage). + + * UIProcess/WebProcessProxy.cpp: + (WebKit::WebProcessProxy::addMessageReceiver): + (WebKit::WebProcessProxy::removeMessageReceiver): + (WebKit::WebProcessProxy::didReceiveMessage): + (WebKit::WebProcessProxy::didReceiveSyncMessage): + * UIProcess/WebProcessProxy.h: + Give WebProcessProxy a MessageReceiverMap and all the appropriate forwarding methods. + + * WebProcess/WebPage/WebPageGroupProxy.cpp: + (WebKit::WebPageGroupProxy::WebPageGroupProxy): + (WebKit::WebPageGroupProxy::~WebPageGroupProxy): + (WebKit::WebPageGroupProxy::didReceiveMessage): + * WebProcess/WebPage/WebPageGroupProxy.h: + (WebKit::WebPageGroupProxy::isVisibleToHistoryClient): + (WebPageGroupProxy): + Make a MessageReceiver and register/unregister with the WebProcess. + + * WebProcess/WebProcess.cpp: + (WebKit::WebProcess::didReceiveSyncMessage): + Remove extraneous return statement. + (WebKit::WebProcess::didReceiveMessage): + Stop handling WebPageGroupProxy special. + +2012-10-27 Sam Weinig <sam@webkit.org> + + Completely roll out https://bugs.webkit.org/show_bug.cgi?id=99251 (r131686) + + It has caused too many crashes. + + * UIProcess/API/mac/PageClientImpl.mm: + * UIProcess/API/mac/WKView.mm: + * UIProcess/API/mac/WKViewInternal.h: + * UIProcess/API/mac/WKViewPrivate.h: + * UIProcess/mac/CorrectionPanel.mm: + * UIProcess/mac/WKFullScreenWindowController.mm: + * UIProcess/mac/WebFullScreenManagerProxyMac.mm: + +2012-10-27 Michael Saboff <msaboff@apple.com> + + buildHTTPHeaders() should use a StringBuilder instead of a Vector<UChar> + https://bugs.webkit.org/show_bug.cgi?id=100580 + + Reviewed by Oliver Hunt. + + Replaced Vector<UChar> with StringBuilder in the HTTP header construction function buildHTTPHeaders. + This eliminates 8 -> 16 bit up conversion of the strings involved. + + * WebProcess/Plugins/PluginView.cpp: + (WebKit::buildHTTPHeaders): + +2012-10-27 Dan Bernstein <mitz@apple.com> + + REAL_PLATFORM_NAME build setting is no longer needed + https://bugs.webkit.org/show_bug.cgi?id=100587 + + Reviewed by Mark Rowe. + + Removed the definition of REAL_PLATFORM_NAME and replaced references to it with references + to PLATFORM_NAME. + + * Configurations/Base.xcconfig: + * Configurations/BaseTarget.xcconfig: + * Configurations/CompilerVersion.xcconfig: + * Configurations/FeatureDefines.xcconfig: + * Configurations/WebKit2.xcconfig: + +2012-10-26 Brady Eidson <beidson@apple.com> + + Have NetworkProcess manage resource load scheduling. + https://bugs.webkit.org/show_bug.cgi?id=100479 + + Reviewed by Alexey Proskuryakov. + + Implement a ResourceLoadScheduler that models the same behavior as WebCore::ResourceLoadScheduler. + + The WebProcess scheduler acts as a marshall to the NetworkProcess scheduler via CoreIPC messaging. + + Besides MainResourceLoads which are started directly in the WebProcess, all other loads are now + started only when the NetworkProcess tells them to start. + + Build-system and messaging related stuff: + * DerivedSources.make: + * Platform/CoreIPC/MessageID.h: + * WebKit2.xcodeproj/project.pbxproj: + + Add a new Network logging channel. + * Platform/Logging.cpp: + (WebKit::getChannelFromName): + * Platform/Logging.h: + + Modeled after ResourceLoadScheduler::HostInformation but more specifically geared towards what NetworkProcess needs to track: + * NetworkProcess/HostRecord.cpp: Added. + (WebKit::HostRecord::HostRecord): + (WebKit::HostRecord::~HostRecord): + (WebKit::HostRecord::schedule): + (WebKit::HostRecord::addLoadInProgress): + (WebKit::HostRecord::remove): + (WebKit::HostRecord::hasRequests): + (WebKit::HostRecord::limitRequests): + * NetworkProcess/HostRecord.h: + (WebKit::HostRecord::name): + (WebKit::HostRecord::requestsPending): + + Gateway messaging from the WebResourceLoadScheduler to the NetworkResourceLoadScheduler: + * NetworkProcess/NetworkConnectionToWebProcess.cpp: + (WebKit::NetworkConnectionToWebProcess::NetworkConnectionToWebProcess): + (WebKit::NetworkConnectionToWebProcess::~NetworkConnectionToWebProcess): + (WebKit::NetworkConnectionToWebProcess::registerObserver): + (WebKit::NetworkConnectionToWebProcess::unregisterObserver): + (WebKit::NetworkConnectionToWebProcess::didReceiveMessage): + (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage): + (WebKit::NetworkConnectionToWebProcess::didClose): + (WebKit::NetworkConnectionToWebProcess::scheduleNetworkRequest): + (WebKit::NetworkConnectionToWebProcess::addLoadInProgress): + (WebKit::NetworkConnectionToWebProcess::removeLoadIdentifier): + (WebKit::NetworkConnectionToWebProcess::crossOriginRedirectReceived): + (WebKit::NetworkConnectionToWebProcess::servePendingRequests): + (WebKit::NetworkConnectionToWebProcess::suspendPendingRequests): + (WebKit::NetworkConnectionToWebProcess::resumePendingRequests): + (WebKit::NetworkConnectionToWebProcess::setSerialLoadingEnabled): + * NetworkProcess/NetworkConnectionToWebProcess.h: + (NetworkConnectionToWebProcessObserver): Add an observer interface so arbitrary objects can be notified if + a Network->WebProcess connection closes. + (WebKit::NetworkConnectionToWebProcessObserver::~NetworkConnectionToWebProcessObserver): + (WebKit::NetworkConnectionToWebProcess::isSerialLoadingEnabled): + * NetworkProcess/NetworkConnectionToWebProcess.messages.in: + + Represents a request, ResourceLoadIdentifier, and connection that all correspond to the same pending NetworkLoad: + * NetworkProcess/NetworkRequest.cpp: + (WebKit::NetworkRequest::NetworkRequest): + (WebKit::NetworkRequest::~NetworkRequest): + (WebKit::NetworkRequest::connectionToWebProcessDidClose): Using the NetworkConnectionToWebProcessObserver interface, + if the connection closes then clear out the connection pointer for this request that is now irrelevant. + * NetworkProcess/NetworkRequest.h: + (WebKit::NetworkRequest::create): + (WebKit::NetworkRequest::identifier): + (WebKit::NetworkRequest::connectionToWebProcess): + + Manages connection-per-host scheduling with the same structure as WebCore::ResourceLoadScheduling but also with IPC: + * NetworkProcess/NetworkResourceLoadScheduler.cpp: Added. + (WebKit::NetworkResourceLoadScheduler::NetworkResourceLoadScheduler): + (WebKit::NetworkResourceLoadScheduler::scheduleServePendingRequests): + (WebKit::NetworkResourceLoadScheduler::requestTimerFired): + (WebKit::NetworkResourceLoadScheduler::scheduleNetworkRequest): + (WebKit::NetworkResourceLoadScheduler::addLoadInProgress): + (WebKit::NetworkResourceLoadScheduler::hostForURL): + (WebKit::NetworkResourceLoadScheduler::removeLoadIdentifier): + (WebKit::NetworkResourceLoadScheduler::crossOriginRedirectReceived): + (WebKit::NetworkResourceLoadScheduler::servePendingRequests): + (WebKit::NetworkResourceLoadScheduler::servePendingRequestsForHost): Serve as many requests for the host as we should, + skipping the NetworkRequests who have lost their connection to their WebProcess. + (WebKit::NetworkResourceLoadScheduler::suspendPendingRequests): + (WebKit::NetworkResourceLoadScheduler::resumePendingRequests): + * NetworkProcess/NetworkResourceLoadScheduler.h: Added. + * NetworkProcess/mac/NetworkResourceLoadSchedulerMac.mm: Added. + (WebKit::NetworkResourceLoadScheduler::platformInitializeMaximumHTTPConnectionCountPerHost): + + * NetworkProcess/NetworkProcess.h: + (WebKit::NetworkProcess::networkResourceLoadScheduler): Add a scheduler global to the NetworkProcess. + + A thin derivation of WebCore::ResourceLoadScheduler, most of what WebResourceLoadScheduler does is handle IPC to the NetworkProcess: + * WebProcess/Network/WebResourceLoadScheduler.cpp: + (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler): + (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad): + (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad): + (WebKit::WebResourceLoadScheduler::scheduleLoad): + (WebKit::WebResourceLoadScheduler::addMainResourceLoad): + (WebKit::WebResourceLoadScheduler::remove): + (WebKit::WebResourceLoadScheduler::crossOriginRedirectReceived): + (WebKit::WebResourceLoadScheduler::servePendingRequests): + (WebKit::WebResourceLoadScheduler::suspendPendingRequests): + (WebKit::WebResourceLoadScheduler::resumePendingRequests): + (WebKit::WebResourceLoadScheduler::setSerialLoadingEnabled): + (WebKit::WebResourceLoadScheduler::startResourceLoad): + * WebProcess/Network/WebResourceLoadScheduler.h: + + Add the ability for the NetworkProcess to message back to the WebProcess telling it to start a resource load: + * WebProcess/Network/NetworkProcessConnection.cpp: + (WebKit::NetworkProcessConnection::didReceiveMessage): + (WebKit::NetworkProcessConnection::didReceiveSyncMessage): + (WebKit::NetworkProcessConnection::startResourceLoad): + * WebProcess/Network/NetworkProcessConnection.h: + * WebProcess/Network/NetworkProcessConnection.messages.in: + + * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: + (WebKit::WebPlatformStrategies::resourceLoadScheduler): Only return the WebResourceLoadScheduler if NetworkProcess is enabled. + + * WebProcess/WebProcess.cpp: + (WebKit::WebProcess::ensureNetworkProcessConnection): Actually keep the NetworkProcessConnection around in a member variable. + (WebKit::WebProcess::networkConnection): + * WebProcess/WebProcess.h: + (WebKit::WebProcess::usesNetworkProcess): Expose this for platform strategies sake. + +2012-10-26 Brady Eidson <beidson@apple.com> + + Crash in WebProces at WebCore::ResourceLoadScheduler::crossOriginRedirectReceived + 78 + https://bugs.webkit.org/show_bug.cgi?id=100554 + + Reviewed by Alexey Proskuryakov. + + For now, just have WebPlatformStrategies return the same default resourceLoadScheduler that + WebCore knows about. + + * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: + (WebKit::WebPlatformStrategies::resourceLoadScheduler): + +2012-10-26 Anders Carlsson <andersca@apple.com> + + Crash when making NPRuntime calls with a null NPP pointer + https://bugs.webkit.org/show_bug.cgi?id=100569 + <rdar://problem/11726426> + <rdar://problem/12352836> + + Reviewed by Darin Adler. + + Finally bite the bullet and remove the assertion from NetscapePlugin::fromNPP. The WebKit1 equivalent of this + function used to return the plug-in currently being initialized in NPP_New, but we've never done that in WebKit2 + and it has never been necessary. The crashes fixed here are not from calls underneath NPP_New so fixing it wouldn't + do us any good anyway. + + Also, make the PluginDestructionProtector handle a null plug-in gracefully. + + * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp: + (WebKit::PluginDestructionProtector::PluginDestructionProtector): + (PluginDestructionProtector): + * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: + (WebKit::NetscapePlugin::fromNPP): + +2012-10-26 Stephanie Lewis <slewis@apple.com> + + Add pids to WebMemorySampleFiles. + https://bugs.webkit.org/show_bug.cgi?id=100449. + + Reviewed by Tim Horton. + + Make it easier to associate WebMemorySamples with a process. Add the pid to the filename and header. + + * Shared/WebMemorySampler.cpp: + (WebKit::WebMemorySampler::initializeTimers): Update notification. + (WebKit::WebMemorySampler::stop): Update notification. + (WebKit::WebMemorySampler::writeHeaders): dump pid in the header. + * UIProcess/WebContext.cpp: + (WebKit::WebContext::processDidFinishLaunching): append pid to filename. + +2012-10-26 Yael Aharon <yael.aharon@intel.com> + + [EFL][WK2][AC] Build fix after r132647. + https://bugs.webkit.org/show_bug.cgi?id=100540 + + Reviewed by Kenneth Rohde Christiansen. + + AC enabled build is broken after the latest refactoring of EFL WK2. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::displayTimerFired): + (EwkViewImpl::informLoadCommitted): + (EwkViewImpl::createGLSurface): + (EwkViewImpl::enterAcceleratedCompositingMode): + (EwkViewImpl::exitAcceleratedCompositingMode): + (EwkViewImpl::informContentsSizeChange): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + (EwkViewImpl::pageViewportControllerClient): + (EwkViewImpl::pageViewportController): + (EwkViewImpl::evasGl): + (EwkViewImpl::evasGlContext): + (EwkViewImpl::evasGlSurface): + (EwkViewImpl::resetEvasGlSurface): + * UIProcess/API/efl/ewk_view.cpp: + (mapToWebContent): + (_ewk_view_smart_calculate): + +2012-10-26 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Get rid of C'ism in text checker API + https://bugs.webkit.org/show_bug.cgi?id=100513 + + Reviewed by Kenneth Rohde Christiansen. + + Make Ewk_Text_Checker a C++ class and move the + WebKitTextChecker code to this new class. This + gets rid of the C'ism in the text checker code + and make it consistent with other Ewk classes. + + * PlatformEfl.cmake: + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::Ewk_Context): + * UIProcess/API/efl/ewk_settings.cpp: + (spellCheckingLanguagesSetUpdate): + (ewk_settings_continuous_spell_checking_enabled_set): + (ewk_settings_spell_checking_available_languages_get): + (ewk_settings_spell_checking_languages_get): + * UIProcess/API/efl/ewk_text_checker.cpp: + (ClientCallbacks): + (textCheckerEnchant): + (clientCallbacks): + (isContinuousSpellCheckingEnabled): + (setContinuousSpellCheckingEnabled): + (uniqueSpellDocumentTag): + (closeSpellDocumentWithTag): + (checkSpellingOfString): + (guessesForWord): + (learnWord): + (ignoreWord): + (Ewk_Text_Checker): + (Ewk_Text_Checker::availableSpellCheckingLanguages): + (Ewk_Text_Checker::updateSpellCheckingLanguages): + (Ewk_Text_Checker::loadedSpellCheckingLanguages): + (Ewk_Text_Checker::initialize): + * UIProcess/API/efl/ewk_text_checker_private.h: + (Ewk_Text_Checker): + * UIProcess/efl/WebKitTextChecker.cpp: Removed. + * UIProcess/efl/WebKitTextChecker.h: Removed. + +2012-10-26 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Clean up construction/destruction code in Ewk_view + https://bugs.webkit.org/show_bug.cgi?id=100232 + + Reviewed by Kenneth Rohde Christiansen. + + Simplified a lot of initialization and destruction code of Ewk_view and EwkViewImpl + put all the impl stuff to its constructor and destructor, also made EwkViewImpl member + variables private. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (pageViewMap): + (EwkViewImpl::addToPageViewMap): + (EwkViewImpl::removeFromPageViewMap): + (EwkViewImpl::viewFromPageViewMap): + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::~EwkViewImpl): + (EwkViewImpl::wkPage): + (EwkViewImpl::title): + (EwkViewImpl::setThemePath): + (EwkViewImpl::customTextEncodingName): + (EwkViewImpl::setCustomTextEncodingName): + (EwkViewImpl::informIconChange): + (EwkViewImpl::informWebProcessCrashed): + (EwkViewImpl::updateTextInputState): + (EwkViewImpl::informURLChange): + (EwkViewImpl::onFaviconChanged): + * UIProcess/API/efl/EwkViewImpl.h: + (WebKit): + (EwkViewImpl): + (EwkViewImpl::view): + (EwkViewImpl::page): + (EwkViewImpl::ewkContext): + (EwkViewImpl::backForwardList): + * UIProcess/API/efl/ewk_settings.cpp: + (Ewk_Settings::preferences): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_focus_in): + (_ewk_view_smart_focus_out): + (_ewk_view_smart_mouse_wheel): + (_ewk_view_smart_mouse_down): + (_ewk_view_smart_mouse_up): + (_ewk_view_smart_mouse_move): + (_ewk_view_smart_key_down): + (_ewk_view_smart_key_up): + (_ewk_view_on_show): + (_ewk_view_on_hide): + (_ewk_view_smart_add): + (_ewk_view_smart_del): + (_ewk_view_smart_calculate): + (_ewk_view_smart_color_set): + (createEwkViewSmartClass): + (createEwkView): + (ewk_view_base_add): + (ewk_view_smart_add): + (ewk_view_add_with_context): + (ewk_view_url_set): + (ewk_view_reload): + (ewk_view_reload_bypass_cache): + (ewk_view_stop): + (ewk_view_load_progress_get): + (ewk_view_scale_set): + (ewk_view_scale_get): + (ewk_view_device_pixel_ratio_set): + (ewk_view_device_pixel_ratio_get): + (ewk_view_back): + (ewk_view_forward): + (ewk_view_intent_deliver): + (ewk_view_back_possible): + (ewk_view_forward_possible): + (ewk_view_back_forward_list_get): + (ewk_view_html_string_load): + (ewk_view_text_find): + (ewk_view_text_find_highlight_clear): + (ewk_view_text_matches_count): + (ewk_view_feed_touch_event): + (ewk_view_inspector_show): + (ewk_view_inspector_close): + (ewk_view_pagination_mode_set): + (ewk_view_pagination_mode_get): + +2012-10-26 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Initialize Ewk_Context class members in initialization list + https://bugs.webkit.org/show_bug.cgi?id=100503 + + Reviewed by Kenneth Rohde Christiansen. + + Move Ewk_Context class members initialization from the + constructor body to the initialization list for + efficiency. + + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::Ewk_Context): + +2012-10-26 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + LayerTreeCoordinator: Make sure that dependent layers are deleted before their directly composited image + https://bugs.webkit.org/show_bug.cgi?id=100495 + + Reviewed by Kenneth Rohde Christiansen. + + Since r128980 layers removals are delayed until we flush the layer tree. + This causes a crash if such a layer had a directly composited image since + the image is now deleted while the layer is still active in the UI process + and tries to access a deleted backing store. + + Fix it by delaying the directly composited image removal as well. + + Fixes a crash in tst_QQuickWebView::basicRenderingSanity since showWebView is + called first and loads direct-image-compositing.html. + + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: + (LayerTreeRenderer): Remove unused variable. + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit::LayerTreeCoordinator::flushPendingLayerChanges): + (WebKit::LayerTreeCoordinator::releaseImageBackingStore): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: + (LayerTreeCoordinator): + +2012-10-26 Regina Chung <heejin.r.chung@samsung.com> + + [EFL][WK2] Enable WebGL + https://bugs.webkit.org/show_bug.cgi?id=97652 + + Reviewed by Gyuyoung Kim. + + Set WebGLEnabled to true when WebGL is enabled. + + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_initialize): + +2012-10-26 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Add Ewk_Color_Picker API + https://bugs.webkit.org/show_bug.cgi?id=100472 + + Reviewed by Kenneth Rohde Christiansen. + + Move the color picker code out of EwkViewImpl and into + a new Ewk_Color_Picker class to avoid cluttering the + view code. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::requestColorPicker): + (EwkViewImpl::dismissColorPicker): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + * UIProcess/API/efl/ewk_color_picker.cpp: Added. + (Ewk_Color_Picker::Ewk_Color_Picker): + (Ewk_Color_Picker::setColor): + (Ewk_Color_Picker::color): + (ewk_color_picker_color_set): + (ewk_color_picker_color_get): + * UIProcess/API/efl/ewk_color_picker.h: Added. + * UIProcess/API/efl/ewk_color_picker_private.h: Added. + (Ewk_Color_Picker): + (Ewk_Color_Picker::create): + * UIProcess/API/efl/ewk_view.cpp: + * UIProcess/API/efl/ewk_view.h: + * UIProcess/API/efl/tests/test_ewk2_color_picker.cpp: Added. + (onColorPickerDone): + (setColorPickerColor): + (showColorPicker): + (hideColorPicker): + (hideColorPickerByRemovingElement): + (TEST_F): + * UIProcess/API/efl/tests/test_ewk2_view.cpp: + * UIProcess/efl/PageUIClientEfl.cpp: + (WebKit::PageUIClientEfl::showColorPicker): + +2012-10-26 Sheriff Bot <webkit.review.bot@gmail.com> + + Unreviewed, rolling out r132601. + http://trac.webkit.org/changeset/132601 + https://bugs.webkit.org/show_bug.cgi?id=100494 + + It broke the Qt build (Requested by Ossy on #webkit). + + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_initialize): + +2012-10-26 Regina Chung <heejin.r.chung@samsung.com> + + [EFL][WK2] Enable WebGL + https://bugs.webkit.org/show_bug.cgi?id=97652 + + Reviewed by Gyuyoung Kim. + + Set WebGLEnabled to true when WebGL is enabled. + + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_initialize): + +2012-10-26 Thiago Marcos P. Santos <thiago.santos@intel.com> + + Add feature flags for CSS Device Adaptation + https://bugs.webkit.org/show_bug.cgi?id=95960 + + Reviewed by Kenneth Rohde Christiansen. + + * Configurations/FeatureDefines.xcconfig: + +2012-10-26 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Move input method code out of EwkViewImpl + https://bugs.webkit.org/show_bug.cgi?id=100468 + + Reviewed by Kenneth Rohde Christiansen. + + Move input method code out of EwkViewImpl and into + a new InputMethodContextEfl class to avoid cluttering + the view code. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::inputMethodContext): + * UIProcess/API/efl/EwkViewImpl.h: + (WebKit): + (EwkViewImpl): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_mouse_up): + (_ewk_view_smart_key_down): + * UIProcess/efl/InputMethodContextEfl.cpp: Added. + (WebKit): + (WebKit::InputMethodContextEfl::InputMethodContextEfl): + (WebKit::InputMethodContextEfl::~InputMethodContextEfl): + (WebKit::InputMethodContextEfl::onIMFInputSequenceComplete): + (WebKit::InputMethodContextEfl::onIMFPreeditSequenceChanged): + (WebKit::InputMethodContextEfl::createIMFContext): + (WebKit::InputMethodContextEfl::handleMouseUpEvent): + (WebKit::InputMethodContextEfl::handleKeyDownEvent): + (WebKit::InputMethodContextEfl::updateTextInputState): + * UIProcess/efl/InputMethodContextEfl.h: Added. + (WebKit): + (InputMethodContextEfl): + (WebKit::InputMethodContextEfl::create): + * UIProcess/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::updateTextInputState): + +2012-10-26 Jaehun Lim <ljaehun.lim@samsung.com> + + Implement {get,set}FloatValueForKey + https://bugs.webkit.org/show_bug.cgi?id=100452 + + Reviewed by Anders Carlsson. + + Implement missing functions in WebPreferencesStore. + + * Shared/WebPreferencesStore.cpp: + (WebKit::WebPreferencesStore::setFloatValueForKey): + (WebKit): + (WebKit::WebPreferencesStore::getFloatValueForKey): + +2012-10-25 Byungwoo Lee <bw80.lee@samsung.com> + + [WK2] Use per destination ID message receivers for DownloadProxy. + https://bugs.webkit.org/show_bug.cgi?id=100342 + + Reviewed by Anders Carlsson. + + Per destination ID message receivers were proposed in r132386. + IPC messages of DownloadProxy use download ID for destination ID, + so the messages should be handled by the messsage receiver that was + newly proposed. + + * UIProcess/WebContext.cpp: + (WebKit::WebContext::WebContext): + (WebKit::WebContext::createDownloadProxy): + (WebKit::WebContext::downloadFinished): + (WebKit::WebContext::addMessageReceiver): + (WebKit): + (WebKit::WebContext::removeMessageReceiver): + * UIProcess/WebContext.h: + (WebContext): + +2012-10-25 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Add Ewk_Popup_Menu API + https://bugs.webkit.org/show_bug.cgi?id=100404 + + Reviewed by Kenneth Rohde Christiansen. + + Add new Ewk_Popup_Menu API to complete the existing + Ewk_Popup_Menu_Item one. This way, we can move the + popup menu code out of Ewk_View. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EWebKit2.h: + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::~EwkViewImpl): + (EwkViewImpl::requestPopupMenu): + (EwkViewImpl::closePopupMenu): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + * UIProcess/API/efl/ewk_popup_menu.cpp: Added. + (Ewk_Popup_Menu::Ewk_Popup_Menu): + (Ewk_Popup_Menu::~Ewk_Popup_Menu): + (Ewk_Popup_Menu::close): + (Ewk_Popup_Menu::items): + (Ewk_Popup_Menu::selectedIndex): + (Ewk_Popup_Menu::setSelectedIndex): + (ewk_popup_menu_close): + (ewk_popup_menu_selected_index_set): + (ewk_popup_menu_selected_index_get): + (ewk_popup_menu_items_get): + * UIProcess/API/efl/ewk_popup_menu.h: Added. + * UIProcess/API/efl/ewk_popup_menu_private.h: Copied from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.cpp. + (WebKit): + (Ewk_Popup_Menu): + (Ewk_Popup_Menu::create): + * UIProcess/API/efl/ewk_view.cpp: + * UIProcess/API/efl/ewk_view.h: + * UIProcess/API/efl/tests/test_ewk2_popup_menu.cpp: Added. + (checkBasicPopupMenuItem): + (selectItemAfterDelayed): + (showPopupMenu): + (TEST_F): + * UIProcess/API/efl/tests/test_ewk2_view.cpp: + * UIProcess/efl/WebPopupMenuProxyEfl.cpp: + (WebKit::WebPopupMenuProxyEfl::hidePopupMenu): + +2012-10-25 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + [Qt] Close the IconDatabase before the WebContext gets destroyed + https://bugs.webkit.org/show_bug.cgi?id=100389 + + Reviewed by Alexis Menard. + + The WebContext normally gets destroyed 60 seconds after the last page is + closed and will take down the WebIconDatabase with itself if nothing + holds a reference to it at this moment. + We need to close the IconDatabase explicitely before this happens + to terminate it cleanly and avoid leaking its thread. + + * UIProcess/qt/QtWebIconDatabaseClient.cpp: + (WebKit::QtWebIconDatabaseClient::~QtWebIconDatabaseClient): + +2012-10-25 Dominik Röttsches <dominik.rottsches@intel.com> + + Conditionalize XHR timeout support + https://bugs.webkit.org/show_bug.cgi?id=100356 + + Reviewed by Adam Barth. + + Adding XHR_TIMEOUT feature to conditionalize this on ports without network backend support. + Defaults to ON on Mac since the Mac NSUrlConnection based backend has setTimeoutInterval support. + + * Configurations/FeatureDefines.xcconfig: + +2012-10-25 Tim Horton <timothy_horton@apple.com> + + Only full-page PDFPlugins should purport to handle page scale changes + https://bugs.webkit.org/show_bug.cgi?id=99635 + + Reviewed by Sam Weinig. + + PDFPlugin should only handle page scale factor changes itself if it's in the main frame. + Subframe PDFs will act like images, zooming with the page. + + * WebProcess/Plugins/PDF/PDFPlugin.h: + (PDFPlugin): Move implementation of handlesPageScaleFactor() to PDFPlugin.mm. + * WebProcess/Plugins/PDF/PDFPlugin.mm: + (WebKit::PDFPlugin::pdfDocumentDidLoad): Only copy PDFLayerController's default autoscale magnification to PluginView's + notion of the current scale factor if we're supposed to be handling page scale factor changes. + (WebKit::PDFPlugin::geometryDidChange): Only update PDFLayerController's magnification from the page scale factor + if we're supposed to be handling page scale factor changes. + (WebKit::PDFPlugin::handlesPageScaleFactor): We should only handle page scale factor changes if we're in the main frame. + +2012-10-25 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Move non-API classes out of UIProcess/API/efl + https://bugs.webkit.org/show_bug.cgi?id=100391 + + Reviewed by Kenneth Rohde Christiansen. + + Move non-API classes from UIProcess/API/efl to + UIProcess/efl for clarity. + + * PlatformEfl.cmake: + * UIProcess/efl/BatteryProvider.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/BatteryProvider.cpp. + (toBatteryProvider): + (startUpdatingCallback): + (stopUpdatingCallback): + (BatteryProvider::~BatteryProvider): + (BatteryProvider::create): + (BatteryProvider::BatteryProvider): + (BatteryProvider::startUpdating): + (BatteryProvider::stopUpdating): + (BatteryProvider::didChangeBatteryStatus): + * UIProcess/efl/BatteryProvider.h: Renamed from Source/WebKit2/UIProcess/API/efl/BatteryProvider.h. + (WebKit): + (BatteryProvider): + * UIProcess/efl/NetworkInfoProvider.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/NetworkInfoProvider.cpp. + (toNetworkInfoProvider): + (startUpdatingCallback): + (stopUpdatingCallback): + (getBandwidthCallback): + (isMeteredCallback): + (NetworkInfoProvider::create): + (NetworkInfoProvider::NetworkInfoProvider): + (NetworkInfoProvider::~NetworkInfoProvider): + (NetworkInfoProvider::bandwidth): + (NetworkInfoProvider::metered): + (NetworkInfoProvider::startUpdating): + (NetworkInfoProvider::stopUpdating): + * UIProcess/efl/NetworkInfoProvider.h: Renamed from Source/WebKit2/UIProcess/API/efl/NetworkInfoProvider.h. + (WebKit): + (NetworkInfoProvider): + * UIProcess/efl/PageClientImpl.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp. + (WebKit): + (WebKit::PageClientImpl::PageClientImpl): + (WebKit::PageClientImpl::~PageClientImpl): + (WebKit::PageClientImpl::viewImpl): + (WebKit::PageClientImpl::createDrawingAreaProxy): + (WebKit::PageClientImpl::setViewNeedsDisplay): + (WebKit::PageClientImpl::displayView): + (WebKit::PageClientImpl::scrollView): + (WebKit::PageClientImpl::viewSize): + (WebKit::PageClientImpl::isViewWindowActive): + (WebKit::PageClientImpl::isViewFocused): + (WebKit::PageClientImpl::isViewVisible): + (WebKit::PageClientImpl::isViewInWindow): + (WebKit::PageClientImpl::processDidCrash): + (WebKit::PageClientImpl::didRelaunchProcess): + (WebKit::PageClientImpl::pageClosed): + (WebKit::PageClientImpl::toolTipChanged): + (WebKit::PageClientImpl::setCursor): + (WebKit::PageClientImpl::setCursorHiddenUntilMouseMoves): + (WebKit::PageClientImpl::didChangeViewportProperties): + (WebKit::PageClientImpl::registerEditCommand): + (WebKit::PageClientImpl::clearAllEditCommands): + (WebKit::PageClientImpl::canUndoRedo): + (WebKit::PageClientImpl::executeUndoRedo): + (WebKit::PageClientImpl::convertToDeviceSpace): + (WebKit::PageClientImpl::convertToUserSpace): + (WebKit::PageClientImpl::screenToWindow): + (WebKit::PageClientImpl::windowToScreen): + (WebKit::PageClientImpl::doneWithKeyEvent): + (WebKit::PageClientImpl::doneWithTouchEvent): + (WebKit::PageClientImpl::createPopupMenuProxy): + (WebKit::PageClientImpl::createContextMenuProxy): + (WebKit::PageClientImpl::createColorChooserProxy): + (WebKit::PageClientImpl::setFindIndicator): + (WebKit::PageClientImpl::enterAcceleratedCompositingMode): + (WebKit::PageClientImpl::exitAcceleratedCompositingMode): + (WebKit::PageClientImpl::updateAcceleratedCompositingMode): + (WebKit::PageClientImpl::didChangeScrollbarsForMainFrame): + (WebKit::PageClientImpl::didCommitLoadForMainFrame): + (WebKit::PageClientImpl::didFinishLoadingDataForCustomRepresentation): + (WebKit::PageClientImpl::customRepresentationZoomFactor): + (WebKit::PageClientImpl::setCustomRepresentationZoomFactor): + (WebKit::PageClientImpl::flashBackingStoreUpdates): + (WebKit::PageClientImpl::findStringInCustomRepresentation): + (WebKit::PageClientImpl::countStringMatchesInCustomRepresentation): + (WebKit::PageClientImpl::updateTextInputState): + (WebKit::PageClientImpl::handleDownloadRequest): + (WebKit::PageClientImpl::pageDidRequestScroll): + (WebKit::PageClientImpl::didChangeContentsSize): + (WebKit::PageClientImpl::didRenderFrame): + (WebKit::PageClientImpl::pageTransitionViewportReady): + * UIProcess/efl/PageClientImpl.h: Renamed from Source/WebKit2/UIProcess/API/efl/PageClientImpl.h. + (WebKit): + (PageClientImpl): + (WebKit::PageClientImpl::create): + (WebKit::PageClientImpl::setPageViewportController): + * UIProcess/efl/PageViewportControllerClientEfl.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/PageViewportControllerClientEfl.cpp. + (WebKit): + (WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl): + (WebKit::PageViewportControllerClientEfl::~PageViewportControllerClientEfl): + (WebKit::PageViewportControllerClientEfl::drawingArea): + (WebKit::PageViewportControllerClientEfl::setRendererActive): + (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::didChangeViewportAttributes): + (WebKit::PageViewportControllerClientEfl::setController): + * UIProcess/efl/PageViewportControllerClientEfl.h: Renamed from Source/WebKit2/UIProcess/API/efl/PageViewportControllerClientEfl.h. + (WebKit): + (PageViewportControllerClientEfl): + (WebKit::PageViewportControllerClientEfl::create): + (WebKit::PageViewportControllerClientEfl::viewSize): + (WebKit::PageViewportControllerClientEfl::scaleFactor): + (WebKit::PageViewportControllerClientEfl::scrollPosition): + * UIProcess/efl/VibrationProvider.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/VibrationProvider.cpp. + (Ewk_Vibration_Client): + (Ewk_Vibration_Client::Ewk_Vibration_Client): + (toVibrationProvider): + (vibrateCallback): + (cancelVibrationCallback): + (VibrationProvider::create): + (VibrationProvider::VibrationProvider): + (VibrationProvider::~VibrationProvider): + (VibrationProvider::vibrate): + (VibrationProvider::cancelVibration): + (VibrationProvider::setVibrationClientCallbacks): + * UIProcess/efl/VibrationProvider.h: Renamed from Source/WebKit2/UIProcess/API/efl/VibrationProvider.h. + (WebKit): + (VibrationProvider): + * UIProcess/efl/WebKitTextChecker.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/WebKitTextChecker.cpp. + (WebKit): + (WebKit::isContinuousSpellCheckingEnabled): + (WebKit::setContinuousSpellCheckingEnabled): + (WebKit::uniqueSpellDocumentTag): + (WebKit::closeSpellDocumentWithTag): + (WebKit::checkSpellingOfString): + (WebKit::guessesForWord): + (WebKit::learnWord): + (WebKit::ignoreWord): + (WebKit::availableSpellCheckingLanguages): + (WebKit::updateSpellCheckingLanguages): + (WebKit::loadedSpellCheckingLanguages): + * UIProcess/efl/WebKitTextChecker.h: Renamed from Source/WebKit2/UIProcess/API/efl/WebKitTextChecker.h. + (WebKit): + +2012-10-25 Brady Eidson <beidson@apple.com> + + Allow LoaderStrategy to override the ResourceLoadScheduler + https://bugs.webkit.org/show_bug.cgi?id=100355 + + Reviewed by Anders Carlsson. + + Add a WebKit2 subclass of ResourceLoadScheduler that currently adds no new functionality: + * WebProcess/Network/WebResourceLoadScheduler.cpp: + (WebKit::WebResourceLoadScheduler::~WebResourceLoadScheduler): + * WebProcess/Network/WebResourceLoadScheduler.h: + + WebProcess hangs on to the default shared WebResourceLoadScheduler: + * WebProcess/WebProcess.h: + (WebKit::WebProcess::webResourceLoadScheduler): + + If the NetworkProcess is enabled, return the new WebResourceLoadScheduler: + * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: + (WebKit::WebPlatformStrategies::resourceLoadScheduler): + * WebProcess/WebCoreSupport/WebPlatformStrategies.h: + + * WebKit2.xcodeproj/project.pbxproj: + +2012-10-25 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Remove some C'ism from EwkView + https://bugs.webkit.org/show_bug.cgi?id=100370 + + Reviewed by Kenneth Rohde Christiansen. + + Remove a lot of C'ism from EwkView: + - Make more members private and add C++ methods to + EwkViewImpl for the public C API to use + - Use smart pointers when possible instead of raw + ones + - Use C++ naming conventions for callback functions + and define them as static methods in EwkViewImpl. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::onIMFInputSequenceComplete): + (EwkViewImpl::onIMFPreeditSequenceChanged): + (EwkViewImpl::createIMFContext): + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::~EwkViewImpl): + (EwkViewImpl::setCursor): + (EwkViewImpl::setColorPickerColor): + (EwkViewImpl::isFocused): + (EwkViewImpl::isVisible): + (EwkViewImpl::title): + (EwkViewImpl::inputMethodContext): + (EwkViewImpl::themePath): + (EwkViewImpl::setThemePath): + (EwkViewImpl::customTextEncodingName): + (EwkViewImpl::setCustomTextEncodingName): + (EwkViewImpl::setMouseEventsEnabled): + (EwkViewImpl::setTouchEventsEnabled): + (EwkViewImpl::informIconChange): + (EwkViewImpl::requestColorPicker): + (EwkViewImpl::dismissColorPicker): + (EwkViewImpl::updateTextInputState): + (EwkViewImpl::informURLChange): + (EwkViewImpl::onMouseDown): + (EwkViewImpl::onMouseUp): + (EwkViewImpl::onMouseMove): + (EwkViewImpl::feedTouchEvents): + (EwkViewImpl::onTouchDown): + (EwkViewImpl::onTouchUp): + (EwkViewImpl::onTouchMove): + * UIProcess/API/efl/EwkViewImpl.h: + (WebCore): + (EwkViewImpl::ewkContext): + (EwkViewImpl::settings): + (EwkViewImpl): + (EwkViewImpl::url): + (EwkViewImpl::faviconURL): + (EwkViewImpl::mouseEventsEnabled): + (EwkViewImpl::touchEventsEnabled): + * UIProcess/API/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::isViewFocused): + (WebKit::PageClientImpl::isViewVisible): + (WebKit::PageClientImpl::didRelaunchProcess): + (WebKit::PageClientImpl::handleDownloadRequest): + * UIProcess/API/efl/ewk_settings_private.h: + (Ewk_Settings::create): + (Ewk_Settings::Ewk_Settings): + (Ewk_Settings): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_mouse_up): + (_ewk_view_smart_key_down): + (_ewk_view_smart_add): + (ewk_view_context_get): + (ewk_view_url_get): + (ewk_view_icon_url_get): + (ewk_view_settings_get): + (ewk_view_title_get): + (ewk_view_theme_set): + (ewk_view_theme_get): + (ewk_view_setting_encoding_custom_get): + (ewk_view_setting_encoding_custom_set): + (ewk_view_mouse_events_enabled_set): + (ewk_view_mouse_events_enabled_get): + (ewk_view_color_picker_color_set): + (ewk_view_touch_events_enabled_set): + (ewk_view_touch_events_enabled_get): + * UIProcess/efl/WebInspectorProxyEfl.cpp: + (WebKit::WebInspectorProxy::platformCreateInspectorPage): + +2012-10-25 Anders Carlsson <andersca@apple.com> + + Assertion failure trying to dispatch notification messages + https://bugs.webkit.org/show_bug.cgi?id=100387 + <rdar://problem/12573195> + + Reviewed by Jessie Berlin. + + Pass a zero destination ID when sending WebNotificationManagerProxy messages; they are not + used by the UI process and since the WebNotificationManagerProxy message receiver is global + passing a non-zero destination ID would cause the aforementioned assertion failure. + + * WebProcess/Notifications/WebNotificationManager.cpp: + (WebKit::WebNotificationManager::cancel): + (WebKit::WebNotificationManager::clearNotifications): + (WebKit::WebNotificationManager::didDestroyNotification): + +2012-10-25 Alexey Proskuryakov <ap@apple.com> + + REGRESSION (r131686): Crashes in NSToolTipManager + https://bugs.webkit.org/show_bug.cgi?id=99792 + + Now that NSToolTip related parts of this change have been rolled out, roll out + the initial crash fix, too. We have no direct evidence that it's to blame, but it + doesn't serve any specific purpose any more. + + * UIProcess/API/mac/WKView.mm: (-[WKView viewDidMoveToWindow]): + +2012-10-25 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Memory leak in _ewk_view_preedit_changed() + https://bugs.webkit.org/show_bug.cgi?id=100380 + + Reviewed by Antonio Gomes. + + Fix memory leak in _ewk_view_preedit_changed(). The buffer + returned by ecore_imf_context_preedit_string_get() is never + freed. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (_ewk_view_preedit_changed): + +2012-10-25 Yael Aharon <yael.aharon@intel.com> + + [EFL][WK2][AC] Regression(132392) infinite loop when displaying certain animations. + https://bugs.webkit.org/show_bug.cgi?id=100288 + + Reviewed by Kenneth Rohde Christiansen. + + When PageClientImpl::setViewNeedsDisplay is called, start a 0 length timer. + That breaks the synchronous loop we were experiencing when ewk_view_display + was called directly. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::displayTimerFired): + (EwkViewImpl::redrawRegion): + * UIProcess/API/efl/EwkViewImpl.h: + (EwkViewImpl): + +2012-10-25 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + Add setMediaTypeOverride to window.internals.settings + https://bugs.webkit.org/show_bug.cgi?id=100249 + + Reviewed by Kenneth Rohde Christiansen. + + Exported WebCore::Settings::setMediaTypeOverride(WTF::String const&) for WIN port. + + * win/WebKit2.def: + +2012-10-25 KyungTae Kim <ktf.kim@samsung.com> + + [WK2][EFL] Add ewk_view_pagination_mode_set/get() APIs + https://bugs.webkit.org/show_bug.cgi?id=100213 + + Reviewed by Gyuyoung Kim. + + Add ewk_view_pagination_mode_set/get() APIs for paginated display. + + * UIProcess/API/efl/ewk_view.cpp: + (ewk_view_pagination_mode_set): + (ewk_view_pagination_mode_get): + * UIProcess/API/efl/ewk_view.h: + * UIProcess/API/efl/tests/test_ewk2_view.cpp: + (TEST_F): + +2012-10-25 Sudarsana Nagineni <sudarsana.nagineni@intel.com> + + [EFL][AC] Fix build break when AC is enabled + https://bugs.webkit.org/show_bug.cgi?id=100367 + + Unreviewed build fix after r132405. + + * UIProcess/API/efl/PageViewportControllerClientEfl.cpp: + (WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl): + +2012-10-25 Byungwoo Lee <bw80.lee@samsung.com> + + [EFL][WK2] Add missing namespace. + https://bugs.webkit.org/show_bug.cgi?id=100251 + + Reviewed by Kenneth Rohde Christiansen. + + Add 'WebKit' namespace for BatteryProvider, NetworkInfoProvider and + VibrationProvider. + + * UIProcess/API/efl/BatteryProvider.h: + (WebKit): + * UIProcess/API/efl/NetworkInfoProvider.cpp: + * UIProcess/API/efl/NetworkInfoProvider.h: + (WebKit): + * UIProcess/API/efl/VibrationProvider.cpp: + * UIProcess/API/efl/VibrationProvider.h: + (WebKit): + * UIProcess/API/efl/ewk_context_private.h: + (WebKit): + (Ewk_Context): + +2012-10-25 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + [Qt] Detach WebContext's clients from QtWebContext + https://bugs.webkit.org/show_bug.cgi?id=100224 + + Reviewed by Simon Hausmann. + + The lifetime of WebContext isn't bound to QtWebContext and we wouldn't + keep a reference to our WebContext and would create a new one if a new + QQuickWebView/QtWebContext was created after we destroyed our QtWebContext. + This would cause a new WebContext and a new web process and somehow the + new WebContext could pick the IPC messages from the old WebProcess + and this would cause the new download client to receive messages about + downloads he doesn't know about and crash. + + We assumed in the past that we would need multiple WebContext to allow + multiple web processes but this assumption doesn't hold anymore with + the work on ProcessModelMultipleSecondaryProcesses. + This patch enforces the use of a single WebContext by: + - Holding a single instance of QtWebIconDatabaseClient and QtDownloadManager + statically in QtWebContext + - Removing the context ID from QWebIconImageProvider's URLs + - Using QtWebContext as a temporary wrapper handle on WebContext to + initialize the WebContext's clients and allow us creating the first web page + + platformInvalidateContext is used to clean up static global instances + when the WebContext is getting destroyed. + + * UIProcess/API/qt/qquickwebview.cpp: + (QQuickWebViewPrivate::handleDownloadRequest): + * UIProcess/API/qt/qwebiconimageprovider.cpp: + (QWebIconImageProvider::iconURLForPageURLInContext): + (QWebIconImageProvider::requestImage): + * UIProcess/qt/QtWebContext.cpp: + (WebKit): + (WebKit::QtWebContext::QtWebContext): + (WebKit::QtWebContext::~QtWebContext): + (WebKit::QtWebContext::create): + (WebKit::QtWebContext::defaultContext): + (WebKit::QtWebContext::downloadManager): + (WebKit::QtWebContext::iconDatabase): + (WebKit::QtWebContext::invalidateContext): + * UIProcess/qt/QtWebContext.h: + (QtWebContext): + * UIProcess/qt/QtWebIconDatabaseClient.cpp: + (WebKit::QtWebIconDatabaseClient::QtWebIconDatabaseClient): + * UIProcess/qt/QtWebIconDatabaseClient.h: + (WebKit): + (QtWebIconDatabaseClient): + * UIProcess/qt/WebContextQt.cpp: + (WebKit::WebContext::platformInvalidateContext): + +2012-10-25 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + [Qt] Make the context injected bundle client static + https://bugs.webkit.org/show_bug.cgi?id=100223 + + Reviewed by Kenneth Rohde Christiansen. + + It doesn't need any data from QtWebContext. + + * UIProcess/qt/QtWebContext.cpp: + (WebKit::didReceiveMessageFromInjectedBundle): + (WebKit): + (WebKit::initializeContextInjectedBundleClient): + (WebKit::QtWebContext::defaultContext): + * UIProcess/qt/QtWebContext.h: + (QtWebContext): + +2012-10-25 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Get rid of Ewk_View private C API (Part 2) + https://bugs.webkit.org/show_bug.cgi?id=100331 + + Reviewed by Kenneth Rohde Christiansen. + + Convert most of the remaining Ewk_View private C API + into C++ methods in EwkViewImpl class. Only one private + C function remains but it will be taken care of in a + later patch to clean up the view construction code. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::addToPageViewMap): + (EwkViewImpl::removeFromPageViewMap): + (EwkViewImpl::viewFromPageViewMap): + (EwkViewImpl::fromEvasObject): + (EwkViewImpl::informLoadFinished): + (EwkViewImpl::informProvisionalLoadRedirect): + (EwkViewImpl::informProvisionalLoadStarted): + (EwkViewImpl::informWebProcessCrashed): + (EwkViewImpl::informContentsSizeChange): + (EwkViewImpl::requestPopupMenu): + (EwkViewImpl::requestJSAlertPopup): + (EwkViewImpl::requestJSConfirmPopup): + (EwkViewImpl::requestJSPromptPopup): + (EwkViewImpl::informDatabaseQuotaReached): + (EwkViewImpl::updateTextInputState): + (EwkViewImpl::informURLChange): + (EwkViewImpl::createNewPage): + (EwkViewImpl::closePage): + * UIProcess/API/efl/EwkViewImpl.h: + (WebKit): + (EwkViewImpl): + * UIProcess/API/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::processDidCrash): + (WebKit::PageClientImpl::createPopupMenuProxy): + (WebKit::PageClientImpl::updateTextInputState): + (WebKit::PageClientImpl::didChangeContentsSize): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_del): + (_ewk_view_initialize): + (ewk_view_url_set): + (ewk_view_reload): + (ewk_view_reload_bypass_cache): + (ewk_view_html_string_load): + * UIProcess/API/efl/ewk_view_private.h: + * UIProcess/efl/ContextHistoryClientEfl.cpp: + (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData): + (WebKit::ContextHistoryClientEfl::didPerformClientRedirect): + (WebKit::ContextHistoryClientEfl::didPerformServerRedirect): + (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle): + * UIProcess/efl/FindClientEfl.cpp: + * UIProcess/efl/FormClientEfl.cpp: + * UIProcess/efl/PageLoadClientEfl.cpp: + (WebKit::PageLoadClientEfl::didSameDocumentNavigationForFrame): + * UIProcess/efl/PageLoadClientEfl.h: + * UIProcess/efl/PagePolicyClientEfl.cpp: + * UIProcess/efl/PagePolicyClientEfl.h: + * UIProcess/efl/PageUIClientEfl.cpp: + (WebKit::PageUIClientEfl::closePage): + (WebKit::PageUIClientEfl::createNewPage): + (WebKit::PageUIClientEfl::runJavaScriptAlert): + (WebKit::PageUIClientEfl::runJavaScriptConfirm): + (WebKit::PageUIClientEfl::runJavaScriptPrompt): + (WebKit::PageUIClientEfl::exceededDatabaseQuota): + * UIProcess/efl/PageUIClientEfl.h: + * UIProcess/efl/ResourceLoadClientEfl.h: + * UIProcess/efl/WebPopupMenuProxyEfl.cpp: + (WebKit::WebPopupMenuProxyEfl::WebPopupMenuProxyEfl): + (WebKit::WebPopupMenuProxyEfl::showPopupMenu): + (WebKit::WebPopupMenuProxyEfl::hidePopupMenu): + * UIProcess/efl/WebPopupMenuProxyEfl.h: + (WebKit::WebPopupMenuProxyEfl::create): + (WebPopupMenuProxyEfl): + +2012-10-24 Joone Hur <joone.hur@intel.com> + + [EFL][AC] Unreviewed, fix build break when AC is enabled + + Fix build break after r132405. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::enterAcceleratedCompositingMode): + * UIProcess/API/efl/PageViewportControllerClientEfl.cpp: + (WebKit::PageViewportControllerClientEfl::didChangeContentsSize): + (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_smart_calculate): + +2012-10-24 Anders Carlsson <andersca@apple.com> + + Make it a compile error to send a sync message as async (and vice versa) + https://bugs.webkit.org/show_bug.cgi?id=100285 + + Reviewed by Sam Weinig. + + Add an "isSync" boolean to each generated message struct and add compile asserts to the message senders. + + * Platform/CoreIPC/Connection.h: + (CoreIPC::Connection::send): + (CoreIPC::Connection::sendSync): + * Platform/CoreIPC/MessageSender.h: + (CoreIPC::MessageSender::send): + (CoreIPC::MessageSender::sendSync): + * Scripts/webkit2/messages.py: + (message_to_struct_declaration): + * Scripts/webkit2/messages_unittest.py: + * UIProcess/WebProcessProxy.h: + (WebKit::WebProcessProxy::send): + (WebKit::WebProcessProxy::sendSync): + +2012-10-24 Kiran Muppala <cmuppala@apple.com> + + Disable auto termination of WebKit2 processes on mac + https://bugs.webkit.org/show_bug.cgi?id=100176 + + Reviewed by Alexey Proskuryakov. + + Disable WebKit2 auto termination by taking corresponding assertion + until UI process is enhanced to determine when it is safe to enable it. + + * NetworkProcess/mac/NetworkProcessMainMac.mm: + (WebKit::NetworkProcessMain): + * PluginProcess/mac/PluginProcessMainMac.mm: + (WebKit::PluginProcessMain): + * SharedWorkerProcess/mac/SharedWorkerProcessMainMac.mm: + (WebKit::SharedWorkerProcessMain): + * WebProcess/mac/WebProcessInitialization.mm: + (WebKit::InitializeWebProcess): + +2012-10-24 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Get rid of Ewk_View private C API (Part 1) + https://bugs.webkit.org/show_bug.cgi?id=100230 + + Reviewed by Kenneth Rohde Christiansen. + + Remove part of the Ewk_View private C API and replace + it by C++ methods in EwkViewImpl class. Eventually, + all the private C functions will be removed but it + will be done in several patches. + + * UIProcess/API/C/efl/WKView.cpp: + (WKViewGetPage): + * UIProcess/API/efl/EwkViewImpl.cpp: + (_ewk_view_commit): + (_ewk_view_preedit_changed): + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::smartData): + (EwkViewImpl::fromEvasObject): + (EwkViewImpl::wkPage): + (EwkViewImpl::setCursor): + (EwkViewImpl::redrawRegion): + (EwkViewImpl::informDownloadJobCancelled): + (EwkViewImpl::informDownloadJobFailed): + (EwkViewImpl::informDownloadJobFinished): + (EwkViewImpl::informDownloadJobRequested): + (EwkViewImpl::informNewFormSubmissionRequest): + (EwkViewImpl::enterFullScreen): + (EwkViewImpl::exitFullScreen): + (EwkViewImpl::setImageData): + (EwkViewImpl::informLoadError): + (EwkViewImpl::informLoadFinished): + (EwkViewImpl::informLoadProgress): + (EwkViewImpl::informProvisionalLoadFailed): + (EwkViewImpl::informLoadCommitted): + (EwkViewImpl::informProvisionalLoadRedirect): + (EwkViewImpl::informProvisionalLoadStarted): + (EwkViewImpl::informNavigationPolicyDecision): + (EwkViewImpl::informNewWindowPolicyDecision): + (EwkViewImpl::informResourceLoadStarted): + (EwkViewImpl::informResourceLoadResponse): + (EwkViewImpl::informResourceLoadFailed): + (EwkViewImpl::informResourceLoadFinished): + (EwkViewImpl::informResourceRequestSent): + (EwkViewImpl::informTitleChange): + (EwkViewImpl::informTooltipTextChange): + (EwkViewImpl::informTextFound): + (EwkViewImpl::size): + (EwkViewImpl::informIconChange): + (EwkViewImpl::informIntentRequest): + (EwkViewImpl::informIntentServiceRegistration): + (EwkViewImpl::createGLSurface): + (EwkViewImpl::enterAcceleratedCompositingMode): + (EwkViewImpl::exitAcceleratedCompositingMode): + (EwkViewImpl::requestColorPicker): + (EwkViewImpl::dismissColorPicker): + (EwkViewImpl::informBackForwardListChange): + * UIProcess/API/efl/EwkViewImpl.h: + (WebCore): + (EwkViewImpl): + (EwkViewImpl::view): + (EwkViewImpl::page): + * UIProcess/API/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::PageClientImpl): + (WebKit::PageClientImpl::viewImpl): + (WebKit): + (WebKit::PageClientImpl::createDrawingAreaProxy): + (WebKit::PageClientImpl::setViewNeedsDisplay): + (WebKit::PageClientImpl::viewSize): + (WebKit::PageClientImpl::isViewFocused): + (WebKit::PageClientImpl::isViewVisible): + (WebKit::PageClientImpl::processDidCrash): + (WebKit::PageClientImpl::didRelaunchProcess): + (WebKit::PageClientImpl::toolTipChanged): + (WebKit::PageClientImpl::setCursor): + (WebKit::PageClientImpl::createPopupMenuProxy): + (WebKit::PageClientImpl::enterAcceleratedCompositingMode): + (WebKit::PageClientImpl::exitAcceleratedCompositingMode): + (WebKit::PageClientImpl::updateTextInputState): + (WebKit::PageClientImpl::handleDownloadRequest): + (WebKit::PageClientImpl::didChangeContentsSize): + * UIProcess/API/efl/PageClientImpl.h: + (WebKit::PageClientImpl::create): + (PageClientImpl): + * UIProcess/API/efl/PageViewportControllerClientEfl.cpp: + (WebKit::PageViewportControllerClientEfl::PageViewportControllerClientEfl): + (WebKit::PageViewportControllerClientEfl::drawingArea): + (WebKit::PageViewportControllerClientEfl::updateViewportSize): + (WebKit::PageViewportControllerClientEfl::didChangeContentsSize): + (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents): + * UIProcess/API/efl/PageViewportControllerClientEfl.h: + (WebKit::PageViewportControllerClientEfl::create): + (PageViewportControllerClientEfl): + * UIProcess/API/efl/ewk_download_job.cpp: + (Ewk_Download_Job::Ewk_Download_Job): + (Ewk_Download_Job::viewImpl): + * UIProcess/API/efl/ewk_download_job_private.h: + (Ewk_Download_Job::create): + (Ewk_Download_Job): + * UIProcess/API/efl/ewk_view.cpp: + (pageViewMap): + (addToPageViewMap): + (removeFromPageViewMap): + (_ewk_view_on_favicon_changed): + (_ewk_view_smart_focus_in): + (_ewk_view_smart_focus_out): + (mapToWebContent): + (_ewk_view_smart_mouse_wheel): + (_ewk_view_smart_mouse_down): + (_ewk_view_smart_mouse_up): + (_ewk_view_smart_mouse_move): + (_ewk_view_smart_key_down): + (_ewk_view_smart_key_up): + (_ewk_view_on_show): + (_ewk_view_on_hide): + (_ewk_view_impl_del): + (_ewk_view_smart_del): + (_ewk_view_smart_calculate): + (_ewk_view_smart_color_set): + (_ewk_view_initialize): + (_ewk_view_add_with_smart): + (ewk_view_context_get): + (ewk_view_url_update): + (ewk_view_url_set): + (ewk_view_url_get): + (ewk_view_icon_url_get): + (ewk_view_reload): + (ewk_view_reload_bypass_cache): + (ewk_view_stop): + (ewk_view_settings_get): + (ewk_view_title_get): + (ewk_view_text_input_state_update): + (ewk_view_load_progress_get): + (ewk_view_scale_set): + (ewk_view_scale_get): + (ewk_view_device_pixel_ratio_set): + (ewk_view_device_pixel_ratio_get): + (ewk_view_theme_set): + (ewk_view_theme_get): + (ewk_view_back): + (ewk_view_forward): + (ewk_view_intent_deliver): + (ewk_view_back_possible): + (ewk_view_forward_possible): + (ewk_view_back_forward_list_get): + (ewk_view_html_string_load): + (ewk_view_setting_encoding_custom_get): + (ewk_view_setting_encoding_custom_set): + (ewk_view_page_create): + (ewk_view_text_find): + (ewk_view_text_find_highlight_clear): + (ewk_view_text_matches_count): + (ewk_view_contents_size_changed): + (ewk_view_popup_menu_request): + (ewk_view_popup_menu_close): + (ewk_view_popup_menu_select): + (ewk_view_mouse_events_enabled_set): + (ewk_view_mouse_events_enabled_get): + (ewk_view_webprocess_crashed): + (ewk_view_color_picker_color_set): + (ewk_view_feed_touch_event): + (ewk_view_touch_events_enabled_set): + (ewk_view_touch_events_enabled_get): + (ewk_view_inspector_show): + (ewk_view_inspector_close): + * UIProcess/API/efl/ewk_view_private.h: + * UIProcess/cairo/BackingStoreCairo.cpp: + (WebKit::BackingStore::incorporateUpdate): + * UIProcess/efl/DownloadManagerEfl.cpp: + (WebKit::DownloadManagerEfl::decideDestinationWithSuggestedFilename): + (WebKit::DownloadManagerEfl::didFail): + (WebKit::DownloadManagerEfl::didCancel): + (WebKit::DownloadManagerEfl::didFinish): + (WebKit::DownloadManagerEfl::registerDownload): + * UIProcess/efl/DownloadManagerEfl.h: + (DownloadManagerEfl): + * UIProcess/efl/FindClientEfl.cpp: + (WebKit::FindClientEfl::didFindString): + (WebKit::FindClientEfl::didFailToFindString): + (WebKit::FindClientEfl::FindClientEfl): + * UIProcess/efl/FindClientEfl.h: + (WebKit::FindClientEfl::create): + (FindClientEfl): + * UIProcess/efl/FormClientEfl.cpp: + (WebKit::FormClientEfl::willSubmitForm): + (WebKit::FormClientEfl::FormClientEfl): + * UIProcess/efl/FormClientEfl.h: + (WebKit::FormClientEfl::create): + (FormClientEfl): + * UIProcess/efl/PageLoadClientEfl.cpp: + (WebKit::PageLoadClientEfl::didReceiveTitleForFrame): + (WebKit::PageLoadClientEfl::didReceiveIntentForFrame): + (WebKit::PageLoadClientEfl::registerIntentServiceForFrame): + (WebKit::PageLoadClientEfl::didChangeProgress): + (WebKit::PageLoadClientEfl::didFinishLoadForFrame): + (WebKit::PageLoadClientEfl::didFailLoadWithErrorForFrame): + (WebKit::PageLoadClientEfl::didStartProvisionalLoadForFrame): + (WebKit::PageLoadClientEfl::didReceiveServerRedirectForProvisionalLoadForFrame): + (WebKit::PageLoadClientEfl::didFailProvisionalLoadWithErrorForFrame): + (WebKit::PageLoadClientEfl::didCommitLoadForFrame): + (WebKit::PageLoadClientEfl::didChangeBackForwardList): + (WebKit::PageLoadClientEfl::didSameDocumentNavigationForFrame): + (WebKit::PageLoadClientEfl::PageLoadClientEfl): + * UIProcess/efl/PageLoadClientEfl.h: + (WebKit::PageLoadClientEfl::create): + (PageLoadClientEfl): + (WebKit::PageLoadClientEfl::viewImpl): + * UIProcess/efl/PagePolicyClientEfl.cpp: + (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction): + (WebKit::PagePolicyClientEfl::decidePolicyForNewWindowAction): + (WebKit::PagePolicyClientEfl::PagePolicyClientEfl): + * UIProcess/efl/PagePolicyClientEfl.h: + (WebKit::PagePolicyClientEfl::create): + (PagePolicyClientEfl): + * UIProcess/efl/PageUIClientEfl.cpp: + (WebKit::PageUIClientEfl::closePage): + (WebKit::PageUIClientEfl::createNewPage): + (WebKit::PageUIClientEfl::runJavaScriptAlert): + (WebKit::PageUIClientEfl::runJavaScriptConfirm): + (WebKit::PageUIClientEfl::runJavaScriptPrompt): + (WebKit::PageUIClientEfl::showColorPicker): + (WebKit::PageUIClientEfl::hideColorPicker): + (WebKit::PageUIClientEfl::exceededDatabaseQuota): + (WebKit::PageUIClientEfl::focus): + (WebKit::PageUIClientEfl::unfocus): + (WebKit::PageUIClientEfl::takeFocus): + (WebKit::PageUIClientEfl::getWindowFrame): + (WebKit::PageUIClientEfl::setWindowFrame): + (WebKit::PageUIClientEfl::PageUIClientEfl): + * UIProcess/efl/PageUIClientEfl.h: + (WebKit::PageUIClientEfl::create): + (PageUIClientEfl): + * UIProcess/efl/ResourceLoadClientEfl.cpp: + (WebKit::ResourceLoadClientEfl::didInitiateLoadForResource): + (WebKit::ResourceLoadClientEfl::didSendRequestForResource): + (WebKit::ResourceLoadClientEfl::didReceiveResponseForResource): + (WebKit::ResourceLoadClientEfl::didFinishLoadForResource): + (WebKit::ResourceLoadClientEfl::didFailLoadForResource): + (WebKit::ResourceLoadClientEfl::ResourceLoadClientEfl): + (WebKit::ResourceLoadClientEfl::~ResourceLoadClientEfl): + * UIProcess/efl/ResourceLoadClientEfl.h: + (WebKit::ResourceLoadClientEfl::create): + (ResourceLoadClientEfl): + * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp: + (WebKit::WebFullScreenManagerProxy::enterFullScreen): + (WebKit::WebFullScreenManagerProxy::exitFullScreen): + * UIProcess/efl/WebInspectorProxyEfl.cpp: + (WebKit::WebInspectorProxy::platformCreateInspectorPage): + * UIProcess/efl/WebPageProxyEfl.cpp: + (WebKit::WebPageProxy::viewWidget): + +2012-10-24 Brady Eidson <beidson@apple.com> + + Add a strategy for loader customization. + https://bugs.webkit.org/show_bug.cgi?id=100278 + + Reviewed by Alexey Proskuryakov. + + * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: + (WebKit::WebPlatformStrategies::createLoaderStrategy): + * WebProcess/WebCoreSupport/WebPlatformStrategies.h: + (WebPlatformStrategies): + +2012-10-24 No'am Rosenthal <noam.rosenthal@nokia.com> + + Coordinated Graphics: Enable threaded/IPC animations + https://bugs.webkit.org/show_bug.cgi?id=93146 + + Reviewed by Caio Marcelo de Oliveira Filho. + + In some cases there are pending changes in the layers, but no actual changes to the frame. + In that case we should unlock the animations. + + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit::LayerTreeCoordinator::flushPendingLayerChanges): + +2012-10-24 Noam Rosenthal <noam.rosenthal@nokia.com> + + [Qt-on-Mac] GraphicsSurfaces should not create a global IOSurface handle + https://bugs.webkit.org/show_bug.cgi?id=89885 + + Reviewed by Kenneth Rohde Christiansen. + + Use mach_port instead of global tokens for IOSurfaces. + Global IOSurfaces are accessible from other processes, while mach_ports can only be shared + directly via IPC. + + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::::encode): + (CoreIPC::::decode): + +2012-10-24 Anders Carlsson <andersca@apple.com> + + Add per destination ID message receivers + https://bugs.webkit.org/show_bug.cgi?id=100276 + + Reviewed by Andreas Kling. + + Extend MessageReceiverMap to handle adding message receivers for a given destinationID/receiver name pair. + Use this to make every WebPage object a message receiver. + + * Platform/CoreIPC/MessageReceiverMap.cpp: + (CoreIPC::MessageReceiverMap::addMessageReceiver): + (CoreIPC): + (CoreIPC::MessageReceiverMap::removeMessageReceiver): + (CoreIPC::MessageReceiverMap::invalidate): + (CoreIPC::MessageReceiverMap::dispatchMessage): + (CoreIPC::MessageReceiverMap::dispatchSyncMessage): + * Platform/CoreIPC/MessageReceiverMap.h: + (MessageReceiverMap): + * WebProcess/WebPage/WebPage.cpp: + (WebKit::WebPage::WebPage): + (WebKit::WebPage::~WebPage): + * WebProcess/WebPage/WebPage.h: + (WebPage): + * WebProcess/WebProcess.cpp: + (WebKit::WebProcess::addMessageReceiver): + (WebKit): + (WebKit::WebProcess::removeMessageReceiver): + (WebKit::WebProcess::didReceiveSyncMessage): + (WebKit::WebProcess::didReceiveMessage): + * WebProcess/WebProcess.h: + (WebProcess): + +2012-10-24 Timothy Hatcher <timothy@apple.com> + + Make the Inspector WKView/WebView become the first responder when bringToFront is called. + + https://bugs.webkit.org/show_bug.cgi?id=100209 + + Reviewed by Joseph Pecoraro. + + * UIProcess/mac/WebInspectorProxyMac.mm: + (WebKit::WebInspectorProxy::platformBringToFront): Make the Inspector WKView become the first responder. + +2012-10-23 Alexey Proskuryakov <ap@apple.com> + + Add a strategy for shared workers + https://bugs.webkit.org/show_bug.cgi?id=100165 + + Reviewed by Brady Eidson. + + * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: + (WebKit::WebPlatformStrategies::createPasteboardStrategy): + (WebKit::WebPlatformStrategies::createSharedWorkerStrategy): + (WebKit::WebPlatformStrategies::createVisitedLinkStrategy): + * WebProcess/WebCoreSupport/WebPlatformStrategies.h: + +2012-10-23 Sam Weinig <sam@webkit.org> + + Move a few more WebProcess sub-objects to be MessageReceivers + https://bugs.webkit.org/show_bug.cgi?id=100186 + + Reviewed by Anders Carlsson. + + * WebProcess/Battery/WebBatteryManager.cpp: + (WebKit::WebBatteryManager::WebBatteryManager): + * WebProcess/Battery/WebBatteryManager.h: + (WebBatteryManager): + * WebProcess/IconDatabase/WebIconDatabaseProxy.cpp: + (WebKit::WebIconDatabaseProxy::WebIconDatabaseProxy): + (WebKit): + * WebProcess/IconDatabase/WebIconDatabaseProxy.h: + (WebIconDatabaseProxy): + * WebProcess/NetworkInfo/WebNetworkInfoManager.cpp: + (WebKit::WebNetworkInfoManager::WebNetworkInfoManager): + * WebProcess/NetworkInfo/WebNetworkInfoManager.h: + (WebNetworkInfoManager): + * WebProcess/Notifications/WebNotificationManager.cpp: + (WebKit::WebNotificationManager::WebNotificationManager): + * WebProcess/Notifications/WebNotificationManager.h: + (WebNotificationManager): + * WebProcess/WebProcess.cpp: + (WebKit::WebProcess::didReceiveMessage): + * WebProcess/soup/WebSoupRequestManager.cpp: + (WebKit::WebSoupRequestManager::WebSoupRequestManager): + * WebProcess/soup/WebSoupRequestManager.h: + (WebSoupRequestManager): + +2012-10-23 Anders Carlsson <andersca@apple.com> + + encode should take an ArgumentEncoder reference + https://bugs.webkit.org/show_bug.cgi?id=100183 + + Reviewed by Jessie Berlin. + + * Platform/CoreIPC/ArgumentCoder.h: + (CoreIPC::ArgumentCoder::encode): + * Platform/CoreIPC/Arguments.h: + (CoreIPC::Arguments0::encode): + (CoreIPC::Arguments1::encode): + (CoreIPC::Arguments2::encode): + (CoreIPC::Arguments3::encode): + (CoreIPC::Arguments4::encode): + (CoreIPC::Arguments5::encode): + (CoreIPC::Arguments6::encode): + (CoreIPC::Arguments7::encode): + (CoreIPC::Arguments8::encode): + (CoreIPC::Arguments10::encode): + * Platform/CoreIPC/Attachment.cpp: + (CoreIPC::Attachment::encode): + * Platform/CoreIPC/Attachment.h: + (Attachment): + * Platform/CoreIPC/DataReference.cpp: + (CoreIPC::DataReference::encode): + * Platform/CoreIPC/DataReference.h: + (DataReference): + * Platform/CoreIPC/StringReference.cpp: + (CoreIPC::StringReference::encode): + * Platform/CoreIPC/StringReference.h: + (StringReference): + * Platform/CoreIPC/mac/MachPort.h: + (CoreIPC::MachPort::encode): + * Platform/SharedMemory.h: + (Handle): + * Platform/mac/SharedMemoryMac.cpp: + (WebKit::SharedMemory::Handle::encode): + * PluginProcess/PluginCreationParameters.cpp: + (WebKit::PluginCreationParameters::encode): + * PluginProcess/PluginCreationParameters.h: + (PluginCreationParameters): + * Shared/DictionaryPopupInfo.cpp: + (WebKit::DictionaryPopupInfo::encode): + * Shared/DictionaryPopupInfo.h: + (DictionaryPopupInfo): + * Shared/EditorState.cpp: + (WebKit::EditorState::encode): + * Shared/EditorState.h: + (EditorState): + * Shared/FontInfo.cpp: + (WebKit::FontInfo::encode): + * Shared/FontInfo.h: + (FontInfo): + * Shared/LayerTreeContext.h: + (LayerTreeContext): + * Shared/Network/NetworkProcessCreationParameters.cpp: + (WebKit::NetworkProcessCreationParameters::encode): + * Shared/Network/NetworkProcessCreationParameters.h: + (NetworkProcessCreationParameters): + * Shared/OriginAndDatabases.cpp: + (WebKit::OriginAndDatabases::encode): + * Shared/OriginAndDatabases.h: + (OriginAndDatabases): + * Shared/PlatformPopupMenuData.cpp: + (WebKit::PlatformPopupMenuData::encode): + * Shared/PlatformPopupMenuData.h: + (PlatformPopupMenuData): + * Shared/Plugins/NPIdentifierData.cpp: + (WebKit::NPIdentifierData::encode): + * Shared/Plugins/NPIdentifierData.h: + (NPIdentifierData): + * Shared/Plugins/NPVariantData.cpp: + (WebKit::NPVariantData::encode): + * Shared/Plugins/NPVariantData.h: + (NPVariantData): + * Shared/Plugins/PluginProcessCreationParameters.cpp: + (WebKit::PluginProcessCreationParameters::encode): + * Shared/Plugins/PluginProcessCreationParameters.h: + (PluginProcessCreationParameters): + * Shared/PrintInfo.cpp: + (WebKit::PrintInfo::encode): + * Shared/PrintInfo.h: + (PrintInfo): + * Shared/SandboxExtension.h: + (Handle): + (HandleArray): + * Shared/SecurityOriginData.cpp: + (WebKit::SecurityOriginData::encode): + * Shared/SecurityOriginData.h: + (SecurityOriginData): + * Shared/SessionState.cpp: + (WebKit::SessionState::encode): + * Shared/SessionState.h: + (SessionState): + * Shared/ShareableBitmap.cpp: + (WebKit::ShareableBitmap::Handle::encode): + * Shared/ShareableBitmap.h: + (Handle): + * Shared/SharedWorkerProcessCreationParameters.cpp: + (WebKit::SharedWorkerProcessCreationParameters::encode): + * Shared/SharedWorkerProcessCreationParameters.h: + (SharedWorkerProcessCreationParameters): + * Shared/StatisticsData.cpp: + (WebKit::StatisticsData::encode): + * Shared/StatisticsData.h: + (StatisticsData): + * Shared/StringPairVector.h: + (WebKit::StringPairVector::encode): + * Shared/UpdateInfo.cpp: + (WebKit::UpdateInfo::encode): + * Shared/UpdateInfo.h: + (UpdateInfo): + * Shared/UserMessageCoders.h: + (WebKit::UserMessageEncoder::baseEncode): + * Shared/WebContextMenuItemData.cpp: + (WebKit::WebContextMenuItemData::encode): + * Shared/WebContextMenuItemData.h: + (WebContextMenuItemData): + * Shared/WebEvent.cpp: + (WebKit::WebEvent::encode): + * Shared/WebEvent.h: + (WebEvent): + (WebMouseEvent): + (WebWheelEvent): + (WebKeyboardEvent): + (WebGestureEvent): + (WebPlatformTouchPoint): + (WebTouchEvent): + * Shared/WebGeolocationPosition.cpp: + (WebKit::WebGeolocationPosition::Data::encode): + * Shared/WebGeolocationPosition.h: + (Data): + * Shared/WebGestureEvent.cpp: + (WebKit::WebGestureEvent::encode): + * Shared/WebHitTestResult.cpp: + (WebKit::WebHitTestResult::Data::encode): + * Shared/WebHitTestResult.h: + (Data): + * Shared/WebKeyboardEvent.cpp: + (WebKit::WebKeyboardEvent::encode): + * Shared/WebMouseEvent.cpp: + (WebKit::WebMouseEvent::encode): + * Shared/WebNavigationDataStore.h: + (WebKit::WebNavigationDataStore::encode): + * Shared/WebPageCreationParameters.cpp: + (WebKit::WebPageCreationParameters::encode): + * Shared/WebPageCreationParameters.h: + (WebPageCreationParameters): + * Shared/WebPageGroupData.cpp: + (WebKit::WebPageGroupData::encode): + * Shared/WebPageGroupData.h: + (WebPageGroupData): + * Shared/WebPopupItem.cpp: + (WebKit::WebPopupItem::encode): + * Shared/WebPopupItem.h: + * Shared/WebPreferencesStore.cpp: + (WebKit::WebPreferencesStore::encode): + * Shared/WebPreferencesStore.h: + (WebPreferencesStore): + * Shared/WebProcessCreationParameters.cpp: + (WebKit::WebProcessCreationParameters::encode): + * Shared/WebProcessCreationParameters.h: + (WebProcessCreationParameters): + * Shared/WebWheelEvent.cpp: + (WebKit::WebWheelEvent::encode): + * Shared/mac/AttributedString.h: + (AttributedString): + * Shared/mac/AttributedString.mm: + (WebKit::AttributedString::encode): + * Shared/mac/ColorSpaceData.h: + (ColorSpaceData): + * Shared/mac/ColorSpaceData.mm: + (WebKit::ColorSpaceData::encode): + * Shared/mac/LayerTreeContextMac.mm: + (WebKit::LayerTreeContext::encode): + * Shared/mac/PlatformCertificateInfo.h: + (PlatformCertificateInfo): + * Shared/mac/PlatformCertificateInfo.mm: + (WebKit::PlatformCertificateInfo::encode): + * Shared/mac/SandboxExtensionMac.mm: + (WebKit::SandboxExtension::Handle::encode): + (WebKit::SandboxExtension::HandleArray::encode): + * Shared/mac/SecItemRequestData.cpp: + (WebKit::SecItemRequestData::encode): + * Shared/mac/SecItemRequestData.h: + * Shared/mac/SecItemResponseData.cpp: + (WebKit::SecItemResponseData::encode): + * Shared/mac/SecItemResponseData.h: + (SecItemResponseData): + * Shared/mac/SecKeychainItemRequestData.cpp: + (WebKit::SecKeychainItemRequestData::encode): + * Shared/mac/SecKeychainItemRequestData.h: + * Shared/mac/SecKeychainItemResponseData.cpp: + (WebKit::SecKeychainItemResponseData::encode): + * Shared/mac/SecKeychainItemResponseData.h: + (SecKeychainItemResponseData): + * UIProcess/WebContextUserMessageCoders.h: + (WebKit::WebContextUserMessageEncoder::encode): + * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h: + (WebKit::InjectedBundleUserMessageEncoder::encode): + * WebProcess/Plugins/Plugin.cpp: + (WebKit::Plugin::Parameters::encode): + * WebProcess/Plugins/Plugin.h: + (Parameters): + +2012-10-24 Jocelyn Turcotte <jocelyn.turcotte@digia.com> + + [Qt] Move the QQuickWebViewExperimental pointer to QQuickWebViewPrivate + https://bugs.webkit.org/show_bug.cgi?id=100253 + + Reviewed by Kenneth Rohde Christiansen. + + We'll need to avoid placing data in QQuickWebView to preserve + its binary compatibility once it's public. + Also make the QQuickWebViewExperimental constructor private. + + * UIProcess/API/qt/qquickwebview.cpp: + (QQuickWebViewPrivate::QQuickWebViewPrivate): + (QQuickWebViewExperimental::QQuickWebViewExperimental): + (QQuickWebView::QQuickWebView): + (QQuickWebView::experimental): + * UIProcess/API/qt/qquickwebview_p.h: + * UIProcess/API/qt/qquickwebview_p_p.h: + (QQuickWebViewPrivate): + +2012-10-24 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Ewk_Settings refactoring + https://bugs.webkit.org/show_bug.cgi?id=100233 + + Reviewed by Kenneth Rohde Christiansen. + + Ewk_Settings private implementation is now C++ class which allows direct internal + access to WebKit::WebPreferences. + + * UIProcess/API/efl/EwkViewImpl.cpp: + (EwkViewImpl::EwkViewImpl): + * UIProcess/API/efl/ewk_settings.cpp: + (Ewk_Settings::preferences): + (ewk_settings_fullscreen_enabled_set): + (ewk_settings_fullscreen_enabled_get): + (ewk_settings_javascript_enabled_set): + (ewk_settings_javascript_enabled_get): + (ewk_settings_loads_images_automatically_set): + (ewk_settings_loads_images_automatically_get): + (ewk_settings_developer_extras_enabled_set): + (ewk_settings_developer_extras_enabled_get): + (ewk_settings_file_access_from_file_urls_allowed_set): + (ewk_settings_file_access_from_file_urls_allowed_get): + (ewk_settings_frame_flattening_enabled_set): + (ewk_settings_frame_flattening_enabled_get): + (ewk_settings_dns_prefetching_enabled_set): + (ewk_settings_dns_prefetching_enabled_get): + * UIProcess/API/efl/ewk_settings_private.h: + (WebKit): + (Ewk_Settings): + (Ewk_Settings::Ewk_Settings): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_initialize): + +2012-10-24 Sudarsana Nagineni <sudarsana.nagineni@intel.com> + + [EFL][AC] Fix build break when AC is enabled + https://bugs.webkit.org/show_bug.cgi?id=100245 + + Reviewed by Kenneth Rohde Christiansen. + + Fix build break after r132337. + + * UIProcess/API/efl/EwkViewImpl.h: + * UIProcess/API/efl/ewk_view.cpp: + +2012-10-24 Thiago Marcos P. Santos <thiago.santos@intel.com> + + [EFL] run-webkit-tests writes garbage on stderr when running on Xvfb + https://bugs.webkit.org/show_bug.cgi?id=100243 + + Reviewed by Kenneth Rohde Christiansen. + + These errors generate noise on the reports and in some cases, like when + running perf tests, makes the test fail. By using Xext, we can add a + dummy handler to ignore these errors. + + * PlatformEfl.cmake: + * WebProcess/efl/WebProcessMainEfl.cpp: + (dummyExtensionErrorHandler): + (WebKit::WebProcessMainEfl): + +2012-10-24 Eric Carlson <eric.carlson@apple.com> + + Allow ports to override text track rendering style + https://bugs.webkit.org/show_bug.cgi?id=97800 + <rdar://problem/12044964> + + Reviewed by Maciej Stachowiak. + + * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: + (InitWebCoreSystemInterface): Initialize new WKSI function pointers. + +2012-10-24 Allan Sandfeld Jensen <allan.jensen@digia.com> + + [Qt] Expose useful WebCore::Settings + https://bugs.webkit.org/show_bug.cgi?id=100239 + + Reviewed by Kenneth Rohde Christiansen. + + Expose the two settings CaretBrowsingEnabled and NotificationsEnabled. + + * UIProcess/API/qt/qwebpreferences.cpp: + (QWebPreferencesPrivate::testAttribute): + (QWebPreferencesPrivate::setAttribute): + (QWebPreferences::caretBrowsingEnabled): + (QWebPreferences::setCaretBrowsingEnabled): + (QWebPreferences::notificationsEnabled): + (QWebPreferences::setNotificationsEnabled): + * UIProcess/API/qt/qwebpreferences_p.h: + * UIProcess/API/qt/qwebpreferences_p_p.h: + +2012-10-24 Zeno Albisser <zeno@webkit.org> + + Implement GraphicsSurface for Windows. + https://bugs.webkit.org/show_bug.cgi?id=98147 + + Add encode and decode implementation for GraphicsSurfaceToken on Windows. + + Reviewed by Kenneth Rohde Christiansen. + + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::::encode): + (CoreIPC::::decode): + +2012-10-24 Sudarsana Nagineni <sudarsana.nagineni@intel.com> + + [EFL][WK2] ASSERTION FAILED: edje(): could not paint native HTML part due to missing theme + https://bugs.webkit.org/show_bug.cgi?id=100227 + + Reviewed by Kenneth Rohde Christiansen. + + Browser crashes on loading any page due to missing theme after + the web process has crashed and recovered. + + This patch reset the theme when the web process is recovered to + avoid a crash. + + * UIProcess/API/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::didRelaunchProcess): + +2012-10-24 Sheriff Bot <webkit.review.bot@gmail.com> + + Unreviewed, rolling out r132333. + http://trac.webkit.org/changeset/132333 + https://bugs.webkit.org/show_bug.cgi?id=100234 + + Crashes many tests on the EFL-WK2 bot. (Requested by rakuco on + #webkit). + + * Target.pri: + * UIProcess/WebProcessProxy.cpp: + (WebKit::WebProcessProxy::updateTextCheckerState): + +2012-10-24 Christophe Dumez <christophe.dumez@intel.com> and Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Move Ewk_View_Private_Data out of ewk_view.cpp + https://bugs.webkit.org/show_bug.cgi?id=100228 + + Reviewed by Gyuyoung Kim. + + Move Ewk_View_Private_Data out of ewk_view.cpp and + rename it to EwkViewImpl. This is a first step towards + getting rid of C'ism in Ewk_View. + + In a future, we will make EwkViewImpl a proper C++ + class and get rid of the private ewk_view C API so + that WebKit code interacts with EwkViewImpl instead + of Evas_Object. + + * PlatformEfl.cmake: + * UIProcess/API/efl/EwkViewImpl.cpp: Added. + (_ewk_view_commit): + (_ewk_view_preedit_changed): + (_ewk_view_imf_context_destroy): + (_ewk_view_imf_context_create): + (EwkViewImpl::EwkViewImpl): + (EwkViewImpl::~EwkViewImpl): + * UIProcess/API/efl/EwkViewImpl.h: Added. + (WebKit): + (EwkViewImpl): + * UIProcess/API/efl/ewk_view.cpp: + (_ewk_view_priv_del): + (_ewk_view_smart_add): + * UIProcess/API/efl/ewk_view.h: + +2012-10-24 Ryuan Choi <ryuan.choi@gmail.com> + + [EFL][WK2] Crash when passing NULL instead of ewk_view instance + https://bugs.webkit.org/show_bug.cgi?id=100078 + + Reviewed by Gyuyoung Kim. + + Although applications should pass valid ewk_view to call ewk_view_XXX, + ewk_view_XXX should not be crashed. + + * UIProcess/API/efl/ewk_view.cpp: + Checked null and early exited from EWK_VIEW_TYPE_CHECK if error occured. + * UIProcess/API/efl/tests/test_ewk2_view.cpp: Added test case. + (TEST_F): + +2012-10-24 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Make find and form clients C++ classes + https://bugs.webkit.org/show_bug.cgi?id=100199 + + Reviewed by Kenneth Rohde Christiansen. + + Make form and find client C++ classes to move away + from C'ism in WK2 EFL port. The new classes have been + moved up to UIProcess/efl instead of UIProcess/API/efl + since it is not part of the public API. + + * PlatformEfl.cmake: + * UIProcess/API/efl/ewk_view.cpp: + (Ewk_View_Private_Data): + (_ewk_view_initialize): + * UIProcess/efl/FindClientEfl.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_view_find_client.cpp. + (WebKit): + (WebKit::toFindClientEfl): + (WebKit::FindClientEfl::didFindString): + (WebKit::FindClientEfl::didFailToFindString): + (WebKit::FindClientEfl::FindClientEfl): + * UIProcess/efl/FindClientEfl.h: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_view_find_client_private.h. + (WebKit): + (FindClientEfl): + (WebKit::FindClientEfl::create): + * UIProcess/efl/FormClientEfl.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_view_form_client.cpp. + (WebKit): + (WebKit::toFormClientEfl): + (WebKit::FormClientEfl::willSubmitForm): + (WebKit::FormClientEfl::FormClientEfl): + * UIProcess/efl/FormClientEfl.h: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_view_form_client_private.h. + (WebKit): + (FormClientEfl): + (WebKit::FormClientEfl::create): + +2012-10-24 Grzegorz Czajkowski <g.czajkowski@samsung.com> + + [EFL] WebKitTestRunner needs to turn on 'setContinuousSpellCheckingEnabled' + https://bugs.webkit.org/show_bug.cgi?id=93611 + + Reviewed by Hajime Morita. + + When WebKitTestRunner turns on the spelling feature with the resetStateToConsistentValues() method, + it happens that the WebProcess is still not launched (although it is already created). + In this case, isValid() method returns false. + + This fix sends a message to the WebProcess messages queue, and the message + will be handled once the WebProcess is ready. + + * Target.pri: + Adds missing files to compile spellcheking feature for WebKit2-Qt + to use WebKit C API from WKTextChecker.h. + + * UIProcess/WebProcessProxy.cpp: + (WebKit::WebProcessProxy::updateTextCheckerState): + Uses canSendMessage() method instead of isValid() to check whether the message to + the WebProcess can be sent. + +2012-10-24 Yael Aharon <yael.aharon@intel.com> + + [EFL][WK2][AC] Black screen in web inspector window with AC on + https://bugs.webkit.org/show_bug.cgi?id=100168 + + Reviewed by Kenneth Rohde Christiansen. + + When ACCELERATED_COMPOSITING flag is turned on, and using X11, + pass "opengl_x11" engine name to ecore_evas_new when creating a + web inspector window. It is guaranteed to be available, because + we wouldn't be able to create a main window if it wasn't. + + (WebKit::WebInspectorProxy::platformCreateInspectorPage): + +2012-10-24 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Make History client a C++ class + https://bugs.webkit.org/show_bug.cgi?id=100104 + + Reviewed by Kenneth Rohde Christiansen. + + Created ContextHistoryClientEfl class to encapsulate history client code for EFL. + + * PlatformEfl.cmake: + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::Ewk_Context): + (ewk_context_history_callbacks_set): + * UIProcess/API/efl/ewk_context_history_client.cpp: Removed. + * UIProcess/API/efl/ewk_context_history_client_private.h: Removed. + * UIProcess/API/efl/ewk_context_private.h: + (WebKit): + (Ewk_Context): + * UIProcess/efl/ContextHistoryClientEfl.cpp: Added. + (WebKit): + (WebKit::toContextHistoryClientEfl): + (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData): + (WebKit::ContextHistoryClientEfl::didPerformClientRedirect): + (WebKit::ContextHistoryClientEfl::didPerformServerRedirect): + (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle): + (WebKit::ContextHistoryClientEfl::populateVisitedLinks): + (WebKit::ContextHistoryClientEfl::ContextHistoryClientEfl): + (WebKit::ContextHistoryClientEfl::setCallbacks): + * UIProcess/efl/ContextHistoryClientEfl.h: Added. + (WebKit): + (ContextHistoryClientEfl): + (WebKit::ContextHistoryClientEfl::create): + +2012-10-23 Carlos Garcia Campos <cgarcia@igalia.com> + + [GTK] Add API to get the WebKitWebView associated to a WebKitDownload to WebKit2 GTK+ + 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): + +2012-10-23 Dan Bernstein <mitz@apple.com> + + WebKit2 part of <rdar://problem/2966974> [mac] Kerning and ligatures are not enabled by default + https://bugs.webkit.org/show_bug.cgi?id=100188 + + Reviewed by Sam Weinig. + + * UIProcess/mac/WebContextMac.mm: + (WebKit::registerUserDefaultsIfNeeded): Added. Registers a value of YES for the + WebKitKerningAndLigaturesEnabledByDefault user default if it has not been registered yet. + (WebKit::WebContext::platformInitializeWebProcess): Added a call to + registerUserDefaultsIfNeeded, and changed to refer to the defaults key by name. + +2012-10-23 No'am Rosenthal <noam.rosenthal@nokia.com> + + Coordinated Graphics: Enable threaded/IPC animations + https://bugs.webkit.org/show_bug.cgi?id=93146 + + Unreviewed build fix, some function names changed between review and landing. + + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC::encodeTimingFunction): + (CoreIPC::decodeTimingFunction): + (CoreIPC::::encode): + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h: + (WebCore): + +2012-10-23 Sam Weinig <sam@webkit.org> + + Stop using NSHomeDirectory() to get the home directory, it doesn't always return what we want + https://bugs.webkit.org/show_bug.cgi?id=100180 + + Reviewed by Anders Carlsson. + + NSHomeDirectory() doesn't return the real home directory if the host process + is App Sandboxed, so drop down and use getpwuid_r instead. + + * WebProcess/mac/WebProcessMac.mm: + (WebKit::appendReadwriteSandboxDirectory): + There is no reason anymore to try to create the directory. + + (WebKit::WebProcess::initializeSandbox): + Switch to getpwuid_r. + +2012-10-23 Martin Robinson <mrobinson@igalia.com> + + [GTK][Soup] Implement the default authentication dialog via WebCoreSupport + https://bugs.webkit.org/show_bug.cgi?id=99351 + + Reviewed by Carlos Garcia Campos. + + Instead of using a custom SoupSessionFeature to show the authentication + dialog, show it using the corresponding WebCore message. + + * GNUmakefile.list.am: Removed the SoupSessionFeature files. + * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: + (WebKit): Only use the default dispatchDidReceiveAuthenticationChallenge + for non-GTK+ ports. + * WebProcess/WebCoreSupport/gtk/WebFrameLoaderClientGtk.cpp: Added. + (WebKit::WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): Added + a GTK+-specific implementation that shows the GtkAuthenticationDialog. + * WebProcess/gtk/WebAuthDialog.cpp: Removed. + * WebProcess/gtk/WebAuthDialog.h: Removed. + * WebProcess/gtk/WebProcessMainGtk.cpp: + (WebKit::WebProcessMainGtk): Don't install the custom session feature. + +2012-10-23 Anders Carlsson <andersca@apple.com> + + Remove deprecatedSend + https://bugs.webkit.org/show_bug.cgi?id=100127 + + Reviewed by Andreas Kling. + + deprecatedSend is no longer used anywhere, remove it. + + * Platform/CoreIPC/Connection.h: + (Connection): + * UIProcess/WebProcessProxy.h: + (WebProcessProxy): + +2012-10-23 Andy Estes <aestes@apple.com> + + [WebKit2 API] Add properties to get textRects from a WKDOMRange or WKDOMNode + https://bugs.webkit.org/show_bug.cgi?id=100162 + + Reviewed by Sam Weinig. + + * WebProcess/InjectedBundle/API/mac/WKDOMInternals.h: + * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: + (WebKit::toNSArray): Added a helper function to convert a Vector of IntRects to an NSArray. + * WebProcess/InjectedBundle/API/mac/WKDOMNode.h: + * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: + (-[WKDOMNode textRects]): + * WebProcess/InjectedBundle/API/mac/WKDOMRange.h: + * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: + (-[WKDOMRange textRects]): + +2012-10-23 No'am Rosenthal <noam.rosenthal@nokia.com> + + Coordinated Graphics: Enable threaded/IPC animations + https://bugs.webkit.org/show_bug.cgi?id=93146 + + Reviewed by Kenneth Rohde Christiansen. + + Re-enable UI-process animations for Coordinated-Graphics/TextureMapper. + - Added an argument coder for GraphicsLayerAnimations. + - Allow LayerTreeCoordinator to manage the animations per layer with the proxy, + as opposed to applying the animation values in the web process as before. + - LayerTreeRenderer now calls updateViewport() after painting when an animation is active. + + To overcome the problem we've had in the past with synchronizing UI-side and web-side + animations, we now lock the animations in the UI process when a frame starts rendering, + and unlock it when the frame finishes rendering, or if after the layout there is no visible + changes pending on the screen. + + * Scripts/webkit2/messages.py: + (headers_for_type): + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp: + (CoreIPC): + (CoreIPC::encodeTimingFunction): + (CoreIPC::decodeTimingFunction): + (CoreIPC::::encode): + (CoreIPC::::decode): + * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h: + (WebCore): + Added argument coders for GraphicsLayerAnimations. + + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp: + (WebKit::LayerTreeCoordinatorProxy::setLayerAnimations): + (WebKit::LayerTreeCoordinatorProxy::setAnimationsLocked): + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h: + (LayerTreeCoordinatorProxy): + * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in: + Added an option to sync the layer's animations, and also to lock/unlock animations. + + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp: + (WebKit::LayerTreeRenderer::LayerTreeRenderer): + (WebKit::LayerTreeRenderer::paintToCurrentGLContext): + Sync animations if they're not locked, and call updateViewport() if we have animations. + + (WebKit::LayerTreeRenderer::flushLayerChanges): + (WebKit::LayerTreeRenderer::setLayerAnimations): + (WebKit::LayerTreeRenderer::setAnimationsLocked): + + * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: + (LayerTreeRenderer): + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: + (WebCore::CoordinatedGraphicsLayer::didChangeAnimations): + (WebCore::CoordinatedGraphicsLayer::setShouldUpdateVisibleRect): + (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer): + (WebCore::CoordinatedGraphicsLayer::syncLayerState): + (WebCore::CoordinatedGraphicsLayer::syncAnimations): + (WebCore::CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly): + (WebCore::CoordinatedGraphicsLayer::addAnimation): + (WebCore::CoordinatedGraphicsLayer::pauseAnimation): + (WebCore::CoordinatedGraphicsLayer::removeAnimation): + (WebCore::CoordinatedGraphicsLayer::animationStartedTimerFired): + (WebCore): + Pass the animation info to the UI process instead of applying it in the web process. + + (WebCore::CoordinatedGraphicsLayer::hasPendingVisibleChanges): + Compute whether a layer tree might have sync issues or flickers if rendered while + background animations are ongoing. + + (WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect): + (WebCore::CoordinatedGraphicsLayer::selfOrAncestorHaveNonAffineTransforms): + Don't allow progressive tiling for layers with animations. + + * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: + (WebCore): + (CoordinatedGraphicsLayerClient): + (CoordinatedGraphicsLayer): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: + (WebKit::LayerTreeCoordinator::LayerTreeCoordinator): + (WebKit::LayerTreeCoordinator::lockAnimations): + (WebKit): + (WebKit::LayerTreeCoordinator::unlockAnimations): + (WebKit::LayerTreeCoordinator::performScheduledLayerFlush): + (WebKit::LayerTreeCoordinator::setLayerAnimations): + * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: + (LayerTreeCoordinator): + +2012-10-23 Allan Sandfeld Jensen <allan.jensen@digia.com> + + [Qt][WK2] Add preference for enabling scroll animators + https://bugs.webkit.org/show_bug.cgi?id=100124 + + Reviewed by Jocelyn Turcotte. + + Expose the ScollAnimatorEnabled setting in QWebPreferences. + + * UIProcess/API/qt/qwebpreferences.cpp: + (QWebPreferencesPrivate::testAttribute): + (QWebPreferencesPrivate::setAttribute): + (QWebPreferences::scrollAnimatorEnabled): + (QWebPreferences::setScrollAnimatorEnabled): + * UIProcess/API/qt/qwebpreferences_p.h: + * UIProcess/API/qt/qwebpreferences_p_p.h: + +2012-10-23 Yael Aharon <yael.aharon@intel.com> + + [EFL][WK2] Use the port independent PageViewportController + https://bugs.webkit.org/show_bug.cgi?id=99850 + + 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): + +2012-10-16 Kenneth Rohde Christiansen <kenneth@webkit.org> + + Add support for resolution media query + https://bugs.webkit.org/show_bug.cgi?id=99077 + + Reviewed by Antti Koivisto. + + * win/WebKit2.def: + + Add exports for the WebCore::Settings setting. + + * Configurations/FeatureDefines.xcconfig: + + Add support for the RESOLUTION_MEDIA_QUERY feature flag. + +2012-10-23 Allan Sandfeld Jensen <allan.jensen@digia.com> + + [Qt] Port QWebPreferences to C++ + https://bugs.webkit.org/show_bug.cgi?id=100121 + + Reviewed by Kenneth Rohde Christiansen. + + Port all the WebPreference calls to using the direct API instead of going through + the auto-generated C API. + + * UIProcess/API/qt/qwebpreferences.cpp: + (QWebPreferencesPrivate::testAttribute): + (QWebPreferencesPrivate::setAttribute): + (QWebPreferencesPrivate::setFontFamily): + (QWebPreferencesPrivate::fontFamily): + (QWebPreferencesPrivate::setFontSize): + (QWebPreferencesPrivate::fontSize): + (QWebPreferencesPrivate::preferences): + * UIProcess/API/qt/qwebpreferences_p_p.h: + +2012-10-23 Eunmi Lee <eunmi15.lee@samsung.com> + + [EFL][WK2] Convert WebEvent's timestamp from millisecond to second. + https://bugs.webkit.org/show_bug.cgi?id=100101 + + Reviewed by Kenneth Rohde Christiansen. + + Convert timestamp to second to create WebEvent from Evas event because + the unit of timestamp from Evas Event is millisecond, but the unit of + timestamp for WebEvent is second. + + * Shared/efl/WebEventFactory.cpp: + (WebKit::convertMillisecondToSecond): + (WebKit): + (WebKit::WebEventFactory::createWebMouseEvent): + (WebKit::WebEventFactory::createWebWheelEvent): + (WebKit::WebEventFactory::createWebKeyboardEvent): + +2012-10-23 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Make request manager client a C++ class + https://bugs.webkit.org/show_bug.cgi?id=100093 + + Reviewed by Kenneth Rohde Christiansen. + + Make EFL's request manager client a C++ class and + move URL scheme handling code to it. The new + RequestManagerClientEfl is now in UIProcess/efl + instead of UIProcess/API/efl since it is not + part of the public API. + + * PlatformEfl.cmake: + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::Ewk_Context): + (Ewk_Context::requestManager): + (ewk_context_url_scheme_register): + * UIProcess/API/efl/ewk_context_private.h: + (WebKit): + (Ewk_Context): + * UIProcess/efl/RequestManagerClientEfl.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_context_request_manager_client.cpp. + (WebKit): + (Ewk_Url_Scheme_Handler): + (WebKit::Ewk_Url_Scheme_Handler::Ewk_Url_Scheme_Handler): + (WebKit::toRequestManagerClientEfl): + (WebKit::RequestManagerClientEfl::didReceiveURIRequest): + (WebKit::RequestManagerClientEfl::RequestManagerClientEfl): + (WebKit::RequestManagerClientEfl::~RequestManagerClientEfl): + (WebKit::RequestManagerClientEfl::registerURLSchemeHandler): + * UIProcess/efl/RequestManagerClientEfl.h: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_context_request_manager_client_private.h. + (WebKit): + (RequestManagerClientEfl): + (WebKit::RequestManagerClientEfl::create): + +2012-10-23 Alexander Shalamov <alexander.shalamov@intel.com> + + [EFL][WK2] ecore_x should be initialised in WebProcess to avoid re-initialization by PlatformScreenEfl utilities and systemBeep() function + https://bugs.webkit.org/show_bug.cgi?id=100110 + + Reviewed by Kenneth Rohde Christiansen. + + PlatformScreenEfl functions and systemBeep() depend on ecore_x functionality, therefore, + ecore_x should be initialized when web process starts to avoid re-initialization. + + * WebProcess/efl/WebProcessMainEfl.cpp: + (WebKit::WebProcessMainEfl): Initialized ecore_x module. + +2012-10-23 Ryuan Choi <ryuan.choi@samsung.com> + + [EFL][WK2] Add support for IMF composition + https://bugs.webkit.org/show_bug.cgi?id=89552 + + Reviewed by Gyuyoung Kim. + + 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. + +2012-10-23 Jussi Kukkonen <jussi.kukkonen@intel.com> + + [EFL] Make plugin process debugging easier (PLUGIN_PROCESS_COMMAND_PREFIX) + https://bugs.webkit.org/show_bug.cgi?id=99297 + + Reviewed by Kenneth Rohde Christiansen. + + Add support for PLUGIN_PROCESS_COMMAND_PREFIX environment variable, to allow easier + plugin debugging with e.g.: + $ PLUGIN_PROCESS_COMMAND_PREFIX="xterm gdb --args" MiniBrowser + + * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: + (WebKit::PluginProcessProxy::platformInitializeLaunchOptions): + (WebKit): + +2012-10-23 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Make Policy client a C++ class + https://bugs.webkit.org/show_bug.cgi?id=100089 + + Reviewed by Kenneth Rohde Christiansen. + + Make page policy client a C++ class and remove it from API folder. + + * PlatformEfl.cmake: + * UIProcess/API/efl/ewk_view.cpp: + (Ewk_View_Private_Data): + (_ewk_view_initialize): + * UIProcess/efl/PagePolicyClientEfl.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_view_policy_client.cpp. + (WebKit): + (WebKit::toPagePolicyClientEfl): + (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction): + (WebKit::PagePolicyClientEfl::decidePolicyForNewWindowAction): + (WebKit::PagePolicyClientEfl::decidePolicyForResponseCallback): + (WebKit::PagePolicyClientEfl::PagePolicyClientEfl): + * UIProcess/efl/PagePolicyClientEfl.h: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_view_policy_client_private.h. + (WebKit): + (PagePolicyClientEfl): + (WebKit::PagePolicyClientEfl::create): + (WebKit::PagePolicyClientEfl::view): + +2012-10-23 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> + + [EFL][WK2] Make UI client a C++ class + https://bugs.webkit.org/show_bug.cgi?id=100099 + + Reviewed by Gyuyoung Kim. + + Made page UI client a C++ class and removed it from API directory. + + * PlatformEfl.cmake: + * UIProcess/API/efl/ewk_view.cpp: + (Ewk_View_Private_Data): + (_ewk_view_initialize): + * UIProcess/API/efl/ewk_view_ui_client.cpp: Removed. + * UIProcess/API/efl/ewk_view_ui_client_private.h: Removed. + * UIProcess/efl/PageUIClientEfl.cpp: Added. + (WebKit): + (WebKit::toPageUIClientEfl): + (WebKit::PageUIClientEfl::closePage): + (WebKit::PageUIClientEfl::createNewPage): + (WebKit::PageUIClientEfl::runJavaScriptAlert): + (WebKit::PageUIClientEfl::runJavaScriptConfirm): + (WebKit::PageUIClientEfl::runJavaScriptPrompt): + (WebKit::PageUIClientEfl::showColorPicker): + (WebKit::PageUIClientEfl::hideColorPicker): + (WebKit::PageUIClientEfl::exceededDatabaseQuota): + (WebKit::PageUIClientEfl::focus): + (WebKit::PageUIClientEfl::unfocus): + (WebKit::PageUIClientEfl::takeFocus): + (WebKit::PageUIClientEfl::getWindowFrame): + (WebKit::PageUIClientEfl::setWindowFrame): + (WebKit::PageUIClientEfl::PageUIClientEfl): + * UIProcess/efl/PageUIClientEfl.h: Added. + (WebKit): + (PageUIClientEfl): + (WebKit::PageUIClientEfl::create): + +2012-10-23 Andreas Kling <kling@webkit.org> + + [WK2] REGRESSION(r132169): It broke all plugin related test. + <http://webkit.org/b/100094> + + Unreviewed test fix, make the CoreIPC encode/decode functions for CString match again. + + * Platform/CoreIPC/ArgumentCoders.cpp: + (CoreIPC::::encode): + +2012-10-23 Christophe Dumez <christophe.dumez@intel.com> + + [EFL][WK2] Make a download client a C++ class + https://bugs.webkit.org/show_bug.cgi?id=100005 + + Reviewed by Kenneth Rohde Christiansen. + + Make EFL's Download client a C++ class and move + the id <-> download mapping from Ewk_Context to + DownloadManagerEfl. + + The Download client was also moved to + UIProcess/efl/ instead of UIProcess/API/efl/ + since it is not part of the public API. + + * PlatformEfl.cmake: + * UIProcess/API/efl/PageClientImpl.cpp: + (WebKit::PageClientImpl::handleDownloadRequest): + * UIProcess/API/efl/ewk_context.cpp: + (Ewk_Context::Ewk_Context): + (Ewk_Context::downloadManager): + * UIProcess/API/efl/ewk_context_download_client_private.h: Removed. + * UIProcess/API/efl/ewk_context_private.h: + (Ewk_Context): + * UIProcess/API/efl/ewk_download_job_private.h: + * UIProcess/efl/DownloadManagerEfl.cpp: Renamed from Source/WebKit2/UIProcess/API/efl/ewk_context_download_client.cpp. + (WebKit): + (WebKit::toDownloadManagerEfl): + (WebKit::DownloadManagerEfl::decideDestinationWithSuggestedFilename): + (WebKit::DownloadManagerEfl::didReceiveResponse): + (WebKit::DownloadManagerEfl::didCreateDestination): + (WebKit::DownloadManagerEfl::didReceiveData): + (WebKit::DownloadManagerEfl::didFail): + (WebKit::DownloadManagerEfl::didCancel): + (WebKit::DownloadManagerEfl::didFinish): + (WebKit::DownloadManagerEfl::DownloadManagerEfl): + (WebKit::DownloadManagerEfl::registerDownload): + (WebKit::DownloadManagerEfl::downloadJob): + (WebKit::DownloadManagerEfl::unregisterDownloadJob): + * UIProcess/efl/DownloadManagerEfl.h: Added. + (WebKit): + (DownloadManagerEfl): + (WebKit::DownloadManagerEfl::create): + 2012-10-23 Andras Becsi <andras.becsi@digia.com> Remove devicePixelRatio from ViewportAttributes |