1. 23 Jan, 2014 1 commit
    • carlosgc@webkit.org's avatar
      [GLIB] Use GUniquePtr instead of GOwnPtr · f2ece55f
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127431
      
      Reviewed by Martin Robinson.
      
      GUniquePtr is a template alias of std::unique_ptr with a custom
      deleter that replaces GOwnPtr. GOwnPtr is still used for the cases
      where the output pointer is needed, but it will also be replaced soon.
      
      Source/WebCore:
      
      * GNUmakefile.list.am:
      * PlatformGTK.cmake:
      * accessibility/atk/AXObjectCacheAtk.cpp:
      * accessibility/atk/WebKitAccessibleInterfaceText.cpp:
      (getAttributeSetForAccessibilityObject):
      (accessibilityObjectLength):
      (textExtents):
      (webkitAccessibleTextGetChar):
      (numberOfReplacedElementsBeforeOffset):
      * page/ContextMenuController.cpp:
      * platform/SharedBuffer.h:
      * platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
      (webKitWebAudioSrcConstructed):
      (webKitWebAudioSrcLoop):
      * platform/audio/gtk/AudioBusGtk.cpp:
      (WebCore::AudioBus::loadPlatformResource):
      * platform/geoclue/GeolocationProviderGeoclue.cpp:
      * platform/graphics/gstreamer/ImageGStreamerCairo.cpp:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      (WebCore::MediaPlayerPrivateGStreamer::setAudioStreamProperties):
      (WebCore::MediaPlayerPrivateGStreamer::handleMessage):
      * platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp:
      (webKitMediaSrcAddSrc):
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      (webKitWebSrcStart):
      (ResourceHandleStreamingClient::wasBlocked):
      (ResourceHandleStreamingClient::cannotShowURL):
      * platform/graphics/gtk/ImageBufferGtk.cpp:
      (WebCore::encodeImage):
      (WebCore::ImageBuffer::toDataURL):
      * platform/graphics/gtk/ImageGtk.cpp:
      (WebCore::getThemeIconFileName):
      (WebCore::Image::loadPlatformResource):
      * platform/gtk/ContextMenuGtk.cpp:
      (WebCore::ContextMenu::itemCount):
      (WebCore::contextMenuItemVector):
      * platform/gtk/ContextMenuItemGtk.cpp:
      (WebCore::createPlatformMenuItemDescription):
      * platform/gtk/DataObjectGtk.cpp:
      (WebCore::DataObjectGtk::setURIList):
      (WebCore::DataObjectGtk::setURL):
      * platform/gtk/FileSystemGtk.cpp:
      (WebCore::filenameToString):
      (WebCore::fileSystemRepresentation):
      (WebCore::filenameForDisplay):
      (WebCore::pathGetFileName):
      (WebCore::applicationDirectoryPath):
      (WebCore::sharedResourcesPath):
      (WebCore::directoryName):
      (WebCore::listDirectory):
      (WebCore::openTemporaryFile):
      * platform/gtk/GOwnPtrGtk.cpp: Removed.
      * platform/gtk/GOwnPtrGtk.h: Removed.
      * platform/gtk/GUniquePtrGtk.h: Added.
      * platform/gtk/GamepadsGtk.cpp:
      (WebCore::GamepadsGtk::GamepadsGtk):
      * platform/gtk/GtkClickCounter.cpp:
      (WebCore::GtkClickCounter::shouldProcessButtonEvent):
      * platform/gtk/GtkInputMethodFilter.cpp:
      (WebCore::GtkInputMethodFilter::sendCompositionAndPreeditWithFakeKeyEvents):
      * platform/gtk/GtkPopupMenu.cpp:
      (WebCore::GtkPopupMenu::popUp):
      (WebCore::GtkPopupMenu::typeAheadFind):
      * platform/gtk/LanguageGtk.cpp:
      (WebCore::platformLanguage):
      * platform/gtk/LocalizedStringsGtk.cpp:
      (WebCore::imageTitle):
      (WebCore::localizedMediaTimeDescription):
      * platform/gtk/PasteboardHelper.cpp:
      (WebCore::selectionDataToUTF8String):
      (WebCore::PasteboardHelper::getClipboardContents):
      (WebCore::PasteboardHelper::fillSelectionData):
      * platform/gtk/PopupMenuGtk.cpp:
      (WebCore::PopupMenuGtk::createGtkActionForMenuItem):
      (WebCore::PopupMenuGtk::show):
      * platform/gtk/WebKitAuthenticationWidget.cpp:
      (webkitAuthenticationWidgetInitialize):
      * platform/network/ResourceHandleInternal.h:
      * platform/network/gtk/CredentialBackingStore.cpp:
      (WebCore::credentialForChallengeAsyncReadyCallback):
      * platform/network/soup/CookieJarSoup.cpp:
      (WebCore::setCookiesFromDOM):
      (WebCore::cookiesForSession):
      (WebCore::getRawCookies):
      (WebCore::deleteCookie):
      (WebCore::getHostnamesWithCookies):
      (WebCore::deleteCookiesForHostname):
      (WebCore::deleteAllCookies):
      * platform/network/soup/DNSSoup.cpp:
      * platform/network/soup/GUniquePtrSoup.h: Added.
      * platform/network/soup/ResourceErrorSoup.cpp:
      (WebCore::failingURI):
      * platform/network/soup/ResourceHandleSoup.cpp:
      (WebCore::ResourceHandle::ensureReadBuffer):
      (WebCore::cleanupSoupRequestOperation):
      (WebCore::createSoupRequestAndMessageForHandle):
      * platform/network/soup/ResourceRequestSoup.cpp:
      (WebCore::ResourceRequest::updateSoupMessageMembers):
      (WebCore::ResourceRequest::updateSoupMessage):
      * platform/network/soup/ResourceResponseSoup.cpp:
      * platform/network/soup/SoupURIUtils.cpp:
      (WebCore::soupURIToKURL):
      * platform/soup/SharedBufferSoup.cpp:
      (WebCore::SharedBuffer::SharedBuffer):
      (WebCore::SharedBuffer::clearPlatformData):
      (WebCore::SharedBuffer::maybeTransferPlatformData):
      (WebCore::SharedBuffer::hasPlatformData):
      * plugins/gtk/PluginPackageGtk.cpp:
      (WebCore::PluginPackage::fetchInfo):
      (WebCore::PluginPackage::load):
      
      Source/WebKit/gtk:
      
      * WebCoreSupport/ContextMenuClientGtk.cpp:
      (WebKit::getUnicodeMenuItemPosition):
      * WebCoreSupport/DragClientGtk.cpp:
      (WebKit::DragClient::startDrag):
      * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
      (DumpRenderTreeSupportGtk::setValueForUser):
      * WebCoreSupport/EditorClientGtk.h:
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::userAgent):
      (WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
      (WebKit::FrameLoaderClient::dispatchWillSendRequest):
      (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
      (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
      (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
      (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
      (WebKit::FrameLoaderClient::dispatchDidFailLoading):
      (WebKit::FrameLoaderClient::dispatchDidFailLoad):
      * WebCoreSupport/InspectorClientGtk.h:
      * webkit/webkitfavicondatabase.cpp:
      (webkit_favicon_database_set_path):
      * webkit/webkitfilechooserrequest.cpp:
      * webkit/webkitglobals.cpp:
      (webkitInit):
      * webkit/webkithittestresult.cpp:
      (WebKit::kit):
      * webkit/webkiticondatabase.cpp:
      (webkit_icon_database_set_path):
      * webkit/webkitspellcheckerenchant.cpp:
      * webkit/webkitwebplugin.cpp:
      (webkit_web_plugin_get_path):
      * webkit/webkitwebpluginprivate.h:
      * webkit/webkitwebsettings.cpp:
      (webkit_web_settings_class_init):
      (webkit_web_settings_copy):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_forward_context_menu_event):
      (fileChooserDialogResponseCallback):
      (webkit_web_view_drag_end):
      * webkit/webkitwebviewprivate.h:
      
      Source/WebKit2:
      
      * Shared/Downloads/soup/DownloadSoup.cpp:
      (WebKit::DownloadClient::didReceiveResponse):
      * Shared/NativeWebKeyboardEvent.h:
      * Shared/NativeWebMouseEvent.h:
      * Shared/NativeWebWheelEvent.h:
      * Shared/gtk/ArgumentCodersGtk.cpp:
      (IPC::encodeGKeyFile):
      (IPC::decodeGKeyFile):
      (IPC::encode):
      (IPC::decode):
      * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
      (webkitContextMenuItemSetSubMenuFromGtkMenu):
      * UIProcess/API/gtk/WebKitDownload.cpp:
      (webkitDownloadDecideDestination):
      (webkitDownloadNotifyProgress):
      (webkitDownloadFailed):
      * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
      (webkit_file_chooser_request_select_files):
      * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
      (didReceiveWebViewMessageFromInjectedBundle):
      (getInjectedBundleInitializationUserData):
      * UIProcess/API/gtk/WebKitLoaderClient.cpp:
      (didFailProvisionalLoadWithErrorForFrame):
      (didFailLoadWithErrorForFrame):
      * UIProcess/API/gtk/WebKitPrintOperation.cpp:
      (drawPagesForPrintingCompleted):
      * UIProcess/API/gtk/WebKitURIRequest.cpp:
      (webkit_uri_request_get_http_headers):
      * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
      (webkit_uri_scheme_request_get_scheme):
      (webkit_uri_scheme_request_get_path):
      * UIProcess/API/gtk/WebKitWebContext.cpp:
      (injectedBundleFilename):
      (webkit_web_context_set_favicon_database_directory):
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkitWebViewLoadFail):
      (webkitWebViewCreateJavaScriptDialog):
      (fileChooserDialogResponseCallback):
      (webkitWebViewLoadChanged):
      (webkitWebViewLoadFailedWithTLSErrors):
      (webkitWebViewPopulateContextMenu):
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (webkitWebViewBaseButtonPressEvent):
      (webkitWebViewBaseStartDrag):
      * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
      (WebKit::WebInspectorServer::platformResourceForPath):
      * UIProcess/InspectorServer/soup/WebSocketServerSoup.cpp:
      (WebKit::connectionCallback):
      * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
      (WebKit::ProcessLauncher::launchProcess):
      * UIProcess/gtk/WebContextGtk.cpp:
      (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
      (WebKit::WebContext::platformDefaultDatabaseDirectory):
      (WebKit::WebContext::platformDefaultIconDatabasePath):
      (WebKit::WebContext::platformDefaultLocalStorageDirectory):
      (WebKit::WebContext::platformDefaultDiskCacheDirectory):
      * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
      (WebKit::contextMenuItemVisibilityChanged):
      * UIProcess/gtk/WebInspectorProxyGtk.cpp:
      (WebKit::WebInspectorProxy::platformInspectedURLChanged):
      * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
      (WebKit::WebPopupMenuProxyGtk::createGtkActionForMenuItem):
      * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
      * WebProcess/WebPage/gtk/WebPageGtk.cpp:
      (WebKit::WebPage::platformInitialize):
      * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
      * WebProcess/gtk/WebProcessMainGtk.cpp:
      * WebProcess/soup/WebSoupRequestManager.cpp:
      (WebKit::WebSoupRequestManager::send):
      
      Tools:
      
      * DumpRenderTree/atk/AccessibilityCallbacksAtk.cpp:
      (printAccessibilityEvent):
      (axObjectEventListener):
      * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
      (indexRangeInTable):
      (AccessibilityUIElement::role):
      (AccessibilityUIElement::title):
      (AccessibilityUIElement::description):
      (AccessibilityUIElement::stringValue):
      (AccessibilityUIElement::language):
      (AccessibilityUIElement::lineForIndex):
      (AccessibilityUIElement::selectedTextRange):
      (AccessibilityUIElement::url):
      * DumpRenderTree/efl/AccessibilityControllerEfl.cpp:
      (AccessibilityController::accessibleElementById):
      * DumpRenderTree/gtk/AccessibilityControllerGtk.cpp:
      (AccessibilityController::accessibleElementById):
      * DumpRenderTree/gtk/DumpRenderTree.cpp:
      (getOutputDir):
      (getFontsPath):
      (initializeFonts):
      (dumpFramesAsText):
      (compareHistoryItems):
      (dumpHistoryItem):
      (soupURIToStringPreservingPassword):
      (resetDefaultsToConsistentValues):
      (temporaryDatabaseDirectory):
      (webViewTitleChanged):
      (webFrameLoadStatusNotified):
      (pathFromSoupURI):
      (convertWebResourceToURLPath):
      (urlSuitableForTestResult):
      (descriptionSuitableForTestResult):
      (willSendRequestCallback):
      (frameLoadEventCallback):
      * DumpRenderTree/gtk/EditingCallbacks.cpp:
      (dumpNodePath):
      (dumpRange):
      (shouldApplyStyle):
      * DumpRenderTree/gtk/EventSender.cpp:
      (contextClickCallback):
      (beginDragWithFilesCallback):
      * DumpRenderTree/gtk/TestRunnerGtk.cpp:
      (TestRunner::pathToLocalResource):
      (TestRunner::queueLoad):
      (TestRunner::removeOriginAccessWhitelistEntry):
      (TestRunner::setMockGeolocationPositionUnavailableError):
      (TestRunner::setIconDatabaseEnabled):
      (TestRunner::findString):
      (TestRunner::setDomainRelaxationForbiddenForURLScheme):
      (TestRunner::overridePreference):
      (TestRunner::addUserScript):
      (TestRunner::addUserStyleSheet):
      (TestRunner::setTextDirection):
      * DumpRenderTree/gtk/TextInputController.cpp:
      (setMarkedTextCallback):
      (insertTextCallback):
      (doCommandCallback):
      * DumpRenderTree/gtk/WorkQueueItemGtk.cpp:
      (LoadHTMLStringItem::invoke):
      * TestWebKitAPI/PlatformGTK.cmake:
      * TestWebKitAPI/Tests/WebKit2Gtk/DOMNodeTest.cpp:
      (WebKitDOMNodeTest::testTagNames):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestBackForwardList.cpp:
      (testBackForwardListLimitAndCache):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestContextMenu.cpp:
      (testContextMenuSmartSeparators):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestCookieManager.cpp:
      * TestWebKitAPI/Tests/WebKit2Gtk/TestDownloads.cpp:
      (testDownloadLocalFile):
      (testDownloadLocalFileError):
      (addContentDispositionHTTPHeaderToResponse):
      (serverCallback):
      (testDownloadRemoteFileError):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestInspectorServer.cpp:
      (startTestServer):
      (testInspectorServerPageList):
      (openRemoteDebuggingSession):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestPrinting.cpp:
      (testPrintOperationPrint):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestResources.cpp:
      (addCacheHTTPHeadersToResponse):
      (serverCallback):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestSSL.cpp:
      (httpsServerCallback):
      (httpServerCallback):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestUIClient.cpp:
      (testWebViewJavaScriptDialogs):
      (testWebViewWindowProperties):
      (testWebViewFileChooserRequest):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebExtensions.cpp:
      (testWebExtensionWindowObjectCleared):
      (testWebExtensionIsolatedWorld):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitAccessibility.cpp:
      (startTestServer):
      (checkAtspiAccessible):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitFaviconDatabase.cpp:
      (serverCallback):
      (testClearDatabase):
      (testGetFaviconURI):
      (webkitFaviconDatabaseFinalizedCallback):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebContext.cpp:
      (testWebContextGetPlugins):
      (testWebContextURIScheme):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebView.cpp:
      (testWebViewRunJavaScript):
      (testWebViewMode):
      (testWebViewPageVisibility):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebKitWebViewGroup.cpp:
      (isStyleSheetInjectedForURLAtPath):
      * TestWebKitAPI/Tests/WebKit2Gtk/TestWebViewEditor.cpp:
      (testWebViewEditorCutCopyPasteNonEditable):
      (testWebViewEditorCutCopyPasteEditable):
      (testWebViewEditorSelectAllNonEditable):
      (testWebViewEditorSelectAllEditable):
      * TestWebKitAPI/Tests/WebKit2Gtk/WebExtensionTest.cpp:
      (sendRequestCallback):
      (methodCallCallback):
      * TestWebKitAPI/gtk/PlatformUtilitiesGtk.cpp:
      (TestWebKitAPI::Util::createInjectedBundlePath):
      (TestWebKitAPI::Util::createURLForResource):
      * TestWebKitAPI/gtk/PlatformWebViewGtk.cpp:
      (TestWebKitAPI::doKeyStroke):
      (TestWebKitAPI::doMouseButtonEvent):
      (TestWebKitAPI::PlatformWebView::simulateMouseMove):
      * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.cpp:
      (loadFailedCallback):
      (LoadTrackingTest::loadURI):
      (LoadTrackingTest::loadHtml):
      (LoadTrackingTest::loadPlainText):
      (LoadTrackingTest::loadRequest):
      (LoadTrackingTest::reload):
      (LoadTrackingTest::goBack):
      (LoadTrackingTest::goForward):
      * TestWebKitAPI/gtk/WebKit2Gtk/LoadTrackingTest.h:
      * TestWebKitAPI/gtk/WebKit2Gtk/TestMain.cpp:
      (registerGResource):
      (removeNonEmptyDirectory):
      (main):
      * TestWebKitAPI/gtk/WebKit2Gtk/TestMain.h:
      (Test::getWebKit1TestResoucesDir):
      (Test::getResourcesDir):
      * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestBus.cpp:
      (WebKitTestBus::run):
      * TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.cpp:
      (WebKitTestServer::WebKitTestServer):
      (WebKitTestServer::getURIForPath):
      * TestWebKitAPI/gtk/WebKit2Gtk/WebProcessTestRunner.cpp:
      (WebProcessTestRunner::runTest):
      * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.cpp:
      (resourceGetDataCallback):
      (WebViewTest::mainResourceData):
      (WebViewTest::mouseMoveTo):
      (WebViewTest::keyStroke):
      (WebViewTest::doMouseButtonEvent):
      * TestWebKitAPI/gtk/WebKit2Gtk/WebViewTest.h:
      * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:
      (WTR::AccessibilityController::accessibleElementById):
      * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:
      * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
      (WTR::AccessibilityUIElement::role):
      (WTR::AccessibilityUIElement::title):
      (WTR::AccessibilityUIElement::description):
      (WTR::AccessibilityUIElement::stringValue):
      (WTR::AccessibilityUIElement::language):
      (WTR::AccessibilityUIElement::lineForIndex):
      (WTR::AccessibilityUIElement::selectedTextRange):
      (WTR::AccessibilityUIElement::url):
      * WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp:
      (WTR::getOutputDir):
      (WTR::getFontsPath):
      (WTR::initializeFontConfigSetting):
      * WebKitTestRunner/InjectedBundle/gtk/InjectedBundleUtilities.cpp:
      (WTR::topLevelPath):
      * WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp:
      (WTR::TestRunner::pathToLocalResource):
      * WebKitTestRunner/gtk/TestControllerGtk.cpp:
      (WTR::TestController::initializeInjectedBundlePath):
      (WTR::TestController::initializeTestPluginDirectory):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162599 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2ece55f
  2. 22 Jan, 2014 28 commits
    • simon.fraser@apple.com's avatar
      Surround fixedVisibleContentRect code with USE(TILED_BACKING_STORE) · 348cfdd3
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127461
      
      Source/WebCore:
      
      Reviewed by Andreas Kling.
      
      The "fixedVisibleContentRect" code path is only used by platforms
      which enabled TILED_BACKING_STORE, so to reduce confusion, surround
      this code with #if USE(TILED_BACKING_STORE).
      
      * page/Frame.cpp:
      (WebCore::Frame::createView):
      * page/FrameView.cpp:
      * page/FrameView.h:
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::unscaledVisibleContentSize):
      (WebCore::ScrollView::visibleContentRect):
      * platform/ScrollView.h:
      (WebCore::ScrollView::visibleSize):
      
      Source/WebKit2:
      
      Reviewed by Andreas Kling.
      
      The "fixedVisibleContentRect" code path is only used by platforms
      which enabled TILED_BACKING_STORE, so to reduce confusion, surround
      this code with #if USE(TILED_BACKING_STORE).
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      348cfdd3
    • lforschler@apple.com's avatar
      Versioning. · 2744c58c
      lforschler@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2744c58c
    • benjamin@webkit.org's avatar
      Add a minimalistic SPI to control the layout size outside of WKView · 98cb6be4
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127403
      
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-01-22
      Reviewed by Sam Weinig.
      
      The API lets a client of WKView force the layout size. Once the size
      is set this way, default update is disabled and the client needs to
      update the size systematically as needed. This is done to avoid double
      layout or flickering.
      
      * UIProcess/API/Cocoa/WKViewPrivate.h:
      * UIProcess/API/ios/WKViewIOS.mm:
      (-[WKView _frameOrBoundsChanged]):
      (-[WKView overrideMinimumLayoutSize:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98cb6be4
    • jinwoo7.song@samsung.com's avatar
      [EFL][WK2] defaultTextEncodingName should be stored as a member variable of EwkSettings · 311b0f40
      jinwoo7.song@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127420
      
      Reviewed by Gyuyoung Kim.
      
      As the defaultTextEncodingName is returned as a local WKEinaSharedString variable,
      the stringshared data is de-refed by eina_stringshare_del().
      To maintain the reference counter, the defaultTextEncodingName should be stored
      as a member variable of EwkSettings class.
      
      * UIProcess/API/efl/ewk_settings.cpp:
      (ewk_settings_encoding_detector_enabled_get): Reordering.
      (ewk_settings_default_text_encoding_name_set):
      (ewk_settings_default_text_encoding_name_get):
      (EwkSettings::setDefaultTextEncodingName):
      (EwkSettings::defaultTextEncodingName):
      * UIProcess/API/efl/ewk_settings_private.h:
      (EwkSettings::EwkSettings): Add m_defaultTextEncodingName and setter/getter methods.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      311b0f40
    • enrica@apple.com's avatar
      Support WebSelections in WK2 on iOS. · 043ef674
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127015
      <rdar://problem/15211964>
      
      Reviewed by Benjamin Poulain.
      
      This change adds support for text only (non block mode)
      selections in non editable content.
      The main changes consist in hooking up the new gesture type
      and touches to handle selection creation and interaction.
      It also includes changes to the way first responder is handled
      which includes the implementation of the isEditable method
      to allow iOS to know when to show the keyboard.
      
      * Shared/ios/WKGestureTypes.h:
      * UIProcess/API/ios/WKInteractionView.mm:
      (-[WKInteractionView isEditable]):
      (-[WKInteractionView canBecomeFirstResponder]):
      (-[WKInteractionView webSelectionRects]):
      (-[WKInteractionView _highlightLongPressRecognized:]):
      (-[WKInteractionView _singleTapRecognized:]):
      (-[WKInteractionView inputAccessoryView]):
      (-[WKInteractionView canPerformAction:withSender:]):
      (-[WKInteractionView _showDictionary:]):
      (toWKGestureType):
      (toUIWKGestureType):
      (selectionChangedWithGesture):
      (selectionChangedWithTouch):
      (-[WKInteractionView selectedTextRange]):
      (-[WKInteractionView webSelectionAssistant]):
      (-[WKInteractionView _startAssistingNode]):
      (-[WKInteractionView _stopAssistingNode]):
      (-[WKInteractionView _selectionChanged]):
      * WebProcess/WebPage/ios/WebPageIOS.mm:
      (WebKit::WebPage::selectWithGesture):
      (WebKit::WebPage::updateSelectionWithTouches):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      043ef674
    • andersca@apple.com's avatar
      WKBrowsingContextController should not be an API wrapper around WebPageProxy · 4787b0a9
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127454
      
      Reviewed by Dan Bernstein.
      
      * Shared/Cocoa/APIObject.mm:
      (API::Object::newObject):
      * Shared/mac/ObjCObjectGraphCoders.mm:
      (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController _initWithPageRef:]):
      (+[WKBrowsingContextController _browsingContextControllerForPageRef:]):
      * UIProcess/API/Cocoa/WKBrowsingContextControllerInternal.h:
      * UIProcess/API/Cocoa/WKProcessGroup.mm:
      (didNavigateWithNavigationData):
      (didPerformClientRedirect):
      (didPerformServerRedirect):
      (didUpdateHistoryTitle):
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView browsingContextController]):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView browsingContextController]):
      * UIProcess/ios/WebPageProxyIOS.mm:
      (WebKit::WebPageProxy::platformInitialize):
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::platformInitialize):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4787b0a9
    • mmaxfield@apple.com's avatar
      Remove CSS3_TEXT_DECORATION define · 607bf6e3
      mmaxfield@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127333
      
      Source/JavaScriptCore:
      
      This is required for unprefixing the text-decoration-* CSS properties.
      
      Reviewed by Simon Fraser.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      Reviewed by Simon Fraser.
      
      This is required for unprefixing the text-decoration-* CSS properties.
      
      No new tests are necessary becase the flag was already on by default.
      
      * Configurations/FeatureDefines.xcconfig:
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::renderTextDecorationSkipFlagsToCSSValue):
      (WebCore::ComputedStyleExtractor::propertyValue):
      * css/CSSParser.cpp:
      (WebCore::isColorPropertyID):
      (WebCore::CSSParser::parseValue):
      (WebCore::CSSParser::addTextDecorationProperty):
      (WebCore::CSSParser::parseTextUnderlinePosition):
      * css/CSSParser.h:
      * css/CSSPrimitiveValueMappings.h:
      (WebCore::CSSPrimitiveValue::operator TextUnderlinePosition):
      * css/CSSPropertyNames.in:
      * css/CSSValueKeywords.in:
      * css/DeprecatedStyleBuilder.cpp:
      (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
      * css/StylePropertyShorthand.cpp:
      (WebCore::webkitTextDecorationShorthand):
      (WebCore::shorthandForProperty):
      (WebCore::matchingShorthandsForLonghand):
      * css/StylePropertyShorthand.h:
      * css/StyleResolver.cpp:
      (WebCore::shouldApplyPropertyInParseOrder):
      (WebCore::isValidVisitedLinkProperty):
      (WebCore::StyleResolver::applyProperty):
      * platform/graphics/GraphicsContext.h:
      * platform/graphics/cairo/GraphicsContextCairo.cpp:
      (WebCore::GraphicsContext::setPlatformStrokeStyle):
      * platform/graphics/cg/GraphicsContextCG.cpp:
      (WebCore::GraphicsContext::platformInit):
      * platform/graphics/wince/GraphicsContextWinCE.cpp:
      (WebCore::createPen):
      * rendering/InlineFlowBox.cpp:
      (WebCore::InlineFlowBox::computeMaxLogicalTop):
      * rendering/InlineFlowBox.h:
      * rendering/InlineTextBox.cpp:
      (WebCore::textDecorationStyleToStrokeStyle):
      (WebCore::boundingBoxForAllActiveDecorations):
      (WebCore::InlineTextBox::paintDecoration):
      * rendering/RenderObject.cpp:
      (WebCore::decorationColor):
      * rendering/RootInlineBox.cpp:
      (WebCore::RootInlineBox::maxLogicalTop):
      * rendering/RootInlineBox.h:
      * rendering/style/RenderStyle.cpp:
      (WebCore::RenderStyle::changeRequiresRepaintIfTextOrBorderOrOutline):
      (WebCore::RenderStyle::colorIncludingFallback):
      (WebCore::RenderStyle::visitedDependentColor):
      * rendering/style/RenderStyle.h:
      * rendering/style/RenderStyleConstants.h:
      * rendering/style/StyleRareInheritedData.cpp:
      (WebCore::StyleRareInheritedData::StyleRareInheritedData):
      (WebCore::StyleRareInheritedData::operator==):
      * rendering/style/StyleRareInheritedData.h:
      * rendering/style/StyleRareNonInheritedData.cpp:
      (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
      (WebCore::StyleRareNonInheritedData::operator==):
      * rendering/style/StyleRareNonInheritedData.h:
      
      Source/WebKit/mac:
      
      Reviewed by Simon Fraser.
      
      This is required for unprefixing the text-decoration-* CSS properties.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      Reviewed by Simon Fraser.
      
      This is required for unprefixing the text-decoration-* CSS properties.
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WTF:
      
      Reviewed by Simon Fraser.
      
      This is required for unprefixing the text-decoration-* CSS properties.
      
      * wtf/Platform.h:
      
      Tools:
      
      This is required for unprefixing the text-decoration-* CSS properties.
      
      Reviewed by Simon Fraser.
      
      * Configurations/FeatureDefines.xcconfig:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      607bf6e3
    • barraclough@apple.com's avatar
      Debug mechanism to override process QoS on Mac · a6ea9385
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127455
      
      Reviewed by Anders Carlsson.
      
      * NetworkProcess/NetworkProcess.messages.in:
          - added message.
      * PluginProcess/PluginProcess.messages.in:
          - added message.
      * Shared/ChildProcess.h:
      * Shared/mac/ChildProcessMac.mm:
      (WebKit::ChildProcess::setQOS):
          - Added implementation of new message.
      * UIProcess/Plugins/PluginProcessProxy.cpp:
      (WebKit::PluginProcessProxy::didFinishLaunching):
          - SetQOS for the PluginProcess.
      * UIProcess/Plugins/PluginProcessProxy.h:
      * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
      (WebKit::pluginProcessLatencyQOS):
      (WebKit::pluginProcessThroughputQOS):
          - read NSUserDefaults.
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::ensureNetworkProcess):
          - SetQOS for the NetworkProcess.
      (WebKit::WebContext::createNewWebProcess):
          - SetQOS for the WebProcess.
      * UIProcess/WebContext.h:
      * UIProcess/mac/WebContextMac.mm:
      (WebKit::networkProcessLatencyQOS):
      (WebKit::networkProcessThroughputQOS):
      (WebKit::webProcessLatencyQOS):
      (WebKit::webProcessThroughputQOS):
          - read NSUserDefaults.
      * WebProcess/WebProcess.messages.in:
          - added message.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6ea9385
    • dfarler@apple.com's avatar
      ASAN builds are broken - missing flags · bfa3b26c
      dfarler@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127231
      
      Reviewed by Andy Estes.
      
      Add missing $(ASAN_OTHER_LDFLAGS).
      * Configurations/PluginProcessShim.xcconfig:
      * Configurations/SecItemShim.xcconfig:
      * Configurations/WebKit2.xcconfig:
      * Configurations/WebProcessShim.xcconfig:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bfa3b26c
    • beidson@apple.com's avatar
      Source/WebCore: The IDB backing store get() method shouldn't call IDB callbacks directly · 4c4044de
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127453
      
      Reviewed by Beth Dakin.
      
      * Modules/indexeddb/IDBServerConnection.h:
      (WebCore::IDBGetResult::IDBGetResult): Add a new structure to hold all of the
        possible results of a get() call.
      
      * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.cpp:
      (WebCore::IDBServerConnectionLevelDB::get): Don't call IDBCallbacks directly.
        Instead, return the GetResult to the GetOperation which will make IDBCallbacks.
      * Modules/indexeddb/leveldb/IDBServerConnectionLevelDB.h:
      
      * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
      (WebCore::GetOperation::perform): Get all of the IDBGetResults in the completion callback
        make the appropriate IDBCallback.
      * Modules/indexeddb/IDBTransactionBackendOperations.h:
      
      Source/WebKit2: The IDB backing store get() method shouldn't call IDB callbacks directly
      https://bugs.webkit.org/show_bug.cgi?id=127453
      
      Reviewed by Beth Dakin.
      
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
      (WebKit::WebIDBServerConnection::get):
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c4044de
    • commit-queue@webkit.org's avatar
      Enable Session API. · 2b394b0b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127255
      
      Patch by Martin Hock <mhock@apple.com> on 2014-01-22
      Reviewed by Alexey Proskuryakov.
      
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      (WebKit::storageSession):
      * NetworkProcess/NetworkResourceLoader.cpp:
      (WebKit::NetworkResourceLoader::NetworkResourceLoader):
      (WebKit::NetworkResourceLoader::start):
      * NetworkProcess/NetworkResourceLoader.h:
      * NetworkProcess/RemoteNetworkingContext.h:
      * NetworkProcess/mac/RemoteNetworkingContext.mm:
      (WebKit::RemoteNetworkingContext::storageSession):
      (WebKit::RemoteNetworkingContext::ensurePrivateBrowsingSession):
      * Shared/Network/NetworkResourceLoadParameters.cpp:
      (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
      (WebKit::NetworkResourceLoadParameters::encode):
      (WebKit::NetworkResourceLoadParameters::decode):
      * Shared/Network/NetworkResourceLoadParameters.h:
      * Shared/SessionTracker.cpp:
      (WebKit::staticSessionMap):
      (WebKit::SessionTracker::sessionMap):
      (WebKit::SessionTracker::session):
      (WebKit::SessionTracker::setSession):
      (WebKit::SessionTracker::destroySession):
      * Shared/SessionTracker.h:
      * UIProcess/API/C/WKPage.cpp:
      (WKPageSetSession):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKSessionRef.cpp:
      (WKSessionCreate):
      * UIProcess/API/C/WKSessionRef.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::setSession):
      * UIProcess/WebPageProxy.h:
      * WebProcess/Network/WebResourceLoadScheduler.cpp:
      (WebKit::WebResourceLoadScheduler::scheduleLoad):
      * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
      (WebKit::WebPlatformStrategies::loadResourceSynchronously):
      * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts):
      (WebKit::WebFrameNetworkingContext::storageSession):
      * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
      (WebKit::WebFrameNetworkingContext::ensurePrivateBrowsingSession):
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::startDownload):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::sessionID):
      (WebKit::WebPage::updatePreferences):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::setSessionID):
      * WebProcess/WebPage/WebPage.messages.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b394b0b
    • beidson@apple.com's avatar
      IDB: "Put" support · 0f1c94b6
      beidson@apple.com authored
      <rdar://problem/15779643> and https://bugs.webkit.org/show_bug.cgi?id=127401
      
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      Add persistent encode/decode for storage to the database:
      * Modules/indexeddb/IDBKey.cpp:
      (WebCore::IDBKey::encode):
      (WebCore::IDBKey::decode):
      * Modules/indexeddb/IDBKey.h:
      
      Add a data class to represent IDBKey suitable for crossing IPC:
      * Modules/indexeddb/IDBKeyData.cpp: Added.
      (WebCore::IDBKeyData::IDBKeyData):
      (WebCore::IDBKeyData::maybeCreateIDBKey):
      (WebCore::IDBKeyData::isolatedCopy):
      * Modules/indexeddb/IDBKeyData.h: Added.
      (WebCore::IDBKeyData::IDBKeyData):
      
      * platform/CrossThreadCopier.cpp:
      (WebCore::IDBKeyData>::copy):
      * platform/CrossThreadCopier.h:
      
      * WebCore.exp.in:
      * WebCore.xcodeproj/project.pbxproj:
      
      Source/WebKit2:
      
      Ship putRecord requests over to the DatabaseProcess, and listen for completion from the DatabaseProcess:
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.cpp:
      (WebKit::WebIDBServerConnection::put):
      (WebKit::WebIDBServerConnection::didPutRecord):
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.h:
      * WebProcess/Databases/IndexedDB/WebIDBServerConnection.messages.in:
      
      Pass off the putRecord request to the Unique IDBDatabase:
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.cpp:
      (WebKit::DatabaseProcessIDBConnection::putRecord):
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.h:
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBConnection.messages.in:
      
      Pass off the putRecord request to the backing store:
      * DatabaseProcess/IndexedDB/UniqueIDBDatabase.cpp:
      (WebKit::UniqueIDBDatabase::putRecord):
      (WebKit::UniqueIDBDatabase::putRecordInBackingStore):
      (WebKit::UniqueIDBDatabase::didPutRecordInBackingStore):
      * DatabaseProcess/IndexedDB/UniqueIDBDatabase.h:
      
      Add backing store methods related to putRecord, though only one is critical right now:
      * DatabaseProcess/IndexedDB/UniqueIDBDatabaseBackingStore.h:
      * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.cpp:
      (WebKit::UniqueIDBDatabaseBackingStoreSQLite::createAndPopulateInitialMetadata):
      (WebKit::UniqueIDBDatabaseBackingStoreSQLite::generateKey):
      (WebKit::UniqueIDBDatabaseBackingStoreSQLite::keyExistsInObjectStore):
      (WebKit::UniqueIDBDatabaseBackingStoreSQLite::putRecord):
      (WebKit::UniqueIDBDatabaseBackingStoreSQLite::updateKeyGenerator):
      * DatabaseProcess/IndexedDB/sqlite/UniqueIDBDatabaseBackingStoreSQLite.h:
      
      Add the IDBKeyData type to IPC:
      * Scripts/webkit2/messages.py:
      (struct_or_class):
      
      * Shared/WebCoreArgumentCoders.cpp:
      (IPC::ArgumentCoder<IDBKeyData>::encode):
      (IPC::ArgumentCoder<IDBKeyData>::decode):
      * Shared/WebCoreArgumentCoders.h:
      
      * DatabaseProcess/IndexedDB/IDBSerialization.cpp:
      (WebKit::serializeIDBKey):
      * DatabaseProcess/IndexedDB/IDBSerialization.h:
      
      Implement more cross-thread copying:
      * Shared/WebCrossThreadCopier.cpp:
      (WebCore::Vector<uint8_t>>::copy):
      (WebCore::Vector<Vector<IDBKeyData>>>::copy):
      (WebCore::ASCIILiteral>::copy):
      * Shared/WebCrossThreadCopier.h:
      
      Implement more numbers of generic AsyncTask templates:
      * Shared/AsyncTask.h:
      (WebKit::createAsyncTask):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0f1c94b6
    • andersca@apple.com's avatar
      WKProcessClass should create a WebContext · 26c7ef46
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127449
      <rdar://problem/15885582>
      
      Reviewed by Dan Bernstein.
      
      * Shared/Cocoa/APIObject.mm:
      (API::Object::newObject):
      * UIProcess/API/Cocoa/WKBrowsingContextController.h:
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      * UIProcess/API/Cocoa/WKProcessClass.mm:
      (-[WKProcessClass initWithConfiguration:]):
      (-[WKProcessClass dealloc]):
      (-[WKProcessClass API::]):
      * UIProcess/API/Cocoa/WKProcessClassInternal.h: Renamed from Source/WebKit2/UIProcess/API/Cocoa/WKProcessGroupInternal.h.
      (WebKit::wrapper):
      * UIProcess/API/Cocoa/WKProcessGroup.mm:
      (-[WKProcessGroup initWithInjectedBundleURL:]):
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView _decidePolicyForGeolocationRequestFromOrigin:frame:request:]):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26c7ef46
    • timothy_horton@apple.com's avatar
      Crashes in DrawingAreaProxy::setExposedRect (null DrawingAreaProxy) · 7e1519a7
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127445
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView _updateViewExposedRect]):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _updateViewExposedRect]):
      Null-check.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e1519a7
    • andersca@apple.com's avatar
      Add WKWebView class · 747fe3bf
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127444
      <rdar://problem/15884418>
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/Cocoa/WKWebView.h: Added.
      * UIProcess/API/Cocoa/WKWebView.mm: Added.
      (-[WKWebView initWithFrame:configuration:]):
      (-[WKWebView configuration]):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      747fe3bf
    • andersca@apple.com's avatar
      Fix 32-bit build. · 11c799d2
      andersca@apple.com authored
      * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      11c799d2
    • timothy_horton@apple.com's avatar
      [wk2] Scroll pinning state is wrong until the first scroll event · b8eee002
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127437
      
      Reviewed by Simon Fraser.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::didChangeScrollOffset):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updateMainFrameScrollOffsetPinning):
      (WebKit::WebPage::didCommitLoad):
      * WebProcess/WebPage/WebPage.h:
      Rename WebPage::didChangeScrollOffsetForMainFrame to
      updateMainFrameScrollOffsetPinning, which better describes what it
      actually does. Call it when a load is committed, so that we have valid
      pinning state before the first scroll event comes in.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8eee002
    • andersca@apple.com's avatar
      Add WKWebViewConfiguration class · 332743e3
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127436
      <rdar://problem/15882923>
      
      Reviewed by Tim Horton.
      
      * UIProcess/API/Cocoa/WKWebViewConfiguration.h: Added.
      * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: Added.
      (-[WKWebViewConfiguration copyWithZone:]):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      332743e3
    • alice.liu@apple.com's avatar
      [WK2] add cocoa API for private browsing setting · a3ea4823
      alice.liu@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127391
      
      Reviewed by Sam Weinig.
      
      * UIProcess/API/Cocoa/WKBrowsingContextGroup.h:
      * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
      (-[WKBrowsingContextGroup privateBrowsingEnabled]):
      (-[WKBrowsingContextGroup setPrivateBrowsingEnabled:]):
      Adding some API for the private Browsing setting. Reaches through
      to the WKPageGroup's preferences.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3ea4823
    • andersca@apple.com's avatar
      Add WKProcessClass class · cd066fc7
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127433
      <rdar://problem/15882582>
      
      Reviewed by Dan Bernstein.
      
      Add a stubbed out WKProcessClass class.
      
      * Shared/API/Cocoa/WKFoundation.h:
      * UIProcess/API/Cocoa/WKProcessClass.h: Added.
      * UIProcess/API/Cocoa/WKProcessClass.mm: Added.
      (-[WKProcessClass initWithConfiguration:]):
      (-[WKProcessClass configuration]):
      * UIProcess/API/Cocoa/WKProcessClassConfiguration.mm:
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd066fc7
    • thiago.lacerda@openbossa.org's avatar
      [EFL][GTK] Get EFL and GTK compiling with ACCESSIBILITY disabled · 8e6984a4
      thiago.lacerda@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127119
      
      Reviewed by Mario Sanchez Prada.
      
      Source/WebCore:
      
      At build time, the compiler was not able to determine which Timer's constructor to call in AXObjectCache when
      ACCESSIBILITY is not enabled, fixing that.
      Also guarding some members in AccessibilityObject that are only being used by EFL and GTK with ACCESSIBILITY.
      
      * accessibility/AXObjectCache.h:
      (WebCore::AXObjectCache::AXObjectCache):
      * accessibility/AccessibilityObject.h:
      
      Source/WebKit/gtk:
      
      Guarding ACCESSIBILITY code with HAVE(ACCESSIBILITY).
      
      * webkit/webkitwebview.cpp:
      (webkit_web_view_class_init):
      
      Source/WebKit2:
      
      Guarding ACCESSIBILITY code with HAVE(ACCESSIBILITY).
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/gtk/WebPageGtk.cpp:
      (WebKit::WebPage::platformInitialize):
      
      Tools:
      
      Guarding ACCESSIBILITY code in DumpRenderTree and WebKitTestRunner with HAVE(ACCESSIBILITY).
      
      * DumpRenderTree/efl/DumpRenderTreeChrome.cpp:
      * DumpRenderTree/gtk/AccessibilityControllerGtk.cpp:
      * DumpRenderTree/gtk/DumpRenderTree.cpp:
      (resetDefaultsToConsistentValues):
      (webViewWindowObjectCleared):
      (main):
      * WebKitTestRunner/InjectedBundle/AccessibilityController.cpp:
      (WTR::AccessibilityController::platformName):
      * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
      (WTR::AccessibilityUIElement::isIndeterminate):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e6984a4
    • mrobinson@webkit.org's avatar
      [GTK][CMake] Add support for building the NetworkProcess · 60736dcd
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127195
      
      Reviewed by Daniel Bates.
      
      .:
      
      * Source/cmake/OptionsGTK.cmake: Turn on the network process and give it
      a name like the WebProcess.
      
      Source/WebKit2:
      
      * CMakeLists.txt: Add shared network process build instructions.
      * PlatformEfl.cmake: Move build instructions to the platform-independent file.
      * PlatformGTK.cmake: Add some files to the source lists.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60736dcd
    • carlosgc@webkit.org's avatar
      REGRESSION(r162441): [GTK] ResourceLoader is broken when there aren't user extensions · 8ea340ad
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=127422
      
      Reviewed by Anders Carlsson.
      
      * WebProcess/gtk/WebGtkExtensionManager.cpp:
      (WebKit::WebGtkExtensionManager::initialize): Always create the
      WebKitWebExtension object since it's used internally to implement
      the ResourceLoader client.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ea340ad
    • jer.noble@apple.com's avatar
      [Mac][WK2] Unable to play video protected by session cookies · b3711302
      jer.noble@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127207
      
      Reviewed by Sam Weinig.
      
      Recent changes in our underlying media frameworks caused our shimmed methods
      in CookieStorageShim to stop being called. Insert an objective-c shim in addition
      to our original shim to intercept pulling cookies out of cookie storage.
      
      * Shared/mac/CookieStorageShim.mm: Renamed from Source/WebKit2/Shared/mac/CookieStorageShim.cpp.
      (WebKit::CookieStorageShim::initialize): Insert the shim.
      (-[WKNSURLSessionLocal _copyCookiesForRequestUsingAllAppropriateStorageSemantics:]):
          Pass through to webKitCookieStorageCopyRequestHeaderFieldsForURL().
      * WebKit2.xcodeproj/project.pbxproj: Rename CookieStorageShim.cpp -> .mm.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3711302
    • commit-queue@webkit.org's avatar
      https://bugs.webkit.org/show_bug.cgi?id=127380 · 155ba0f7
      commit-queue@webkit.org authored
      Add more methods to WKWebProcessPlugInNodeHandle.
      
      Patch by Yongjun Zhang <yongjun_zhang@apple.com> on 2014-01-22
      Reviewed by Sam Weinig.
      
      Add a static method that creates a WKWebProcessPlugInNodeHandle from a JSValue* and a JSContext*.  Also
      add a method to return the iframe's content frame from a WKWebProcessPlugInNodeHandle.
      
      * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.h:
      * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
      (+[WKWebProcessPlugInNodeHandle nodeHandleWithJSValue:inContext:]):
      (-[WKWebProcessPlugInNodeHandle htmlIFrameElementContentFrame]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      155ba0f7
    • carlosgc@webkit.org's avatar
      Unreviewed. Fix GTK+ build with CUSTOM_PROTOCOL enabled after r162449. · 07c6de7e
      carlosgc@webkit.org authored
      * UIProcess/Network/CustomProtocols/soup/WebSoupCustomProtocolRequestManager.h:
      Use override instead of OVERRIDE.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07c6de7e
    • commit-queue@webkit.org's avatar
      Build fixes for FreeBSD. · 6fd8d9d4
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126779
      
      Patch by Koop Mast <kwm@FreeBSD.org> on 2014-01-22
      Reviewed by Csaba Osztrogonác.
      
      * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
      (WebKit::PluginProcessProxy::scanPlugin):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162513 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6fd8d9d4
    • jinwoo7.song@samsung.com's avatar
      [EFL][WK2] Use std::function in the rest of EFL's WorkQueue implementation · 9e4b6433
      jinwoo7.song@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=127397
      
      Reviewed by Anders Carlsson.
      
      Move to using std::function and move semantics in WorkQueue::registerSocketEventHandler
      and DispatchQueue::setSocketEventHandler.
      
      * Platform/IPC/unix/ConnectionUnix.cpp:
      (IPC::Connection::open):
      * Platform/WorkQueue.h:
      * Platform/efl/DispatchQueueEfl.cpp:
      (DispatchQueue::setSocketEventHandler):
      * Platform/efl/DispatchQueueEfl.h:
      * Platform/efl/WorkQueueEfl.cpp:
      (WorkQueue::registerSocketEventHandler):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e4b6433
  3. 21 Jan, 2014 11 commits