1. 03 Dec, 2013 26 commits
  2. 02 Dec, 2013 14 commits
    • mitz@apple.com's avatar
      Build fix. · 95980ca3
      mitz@apple.com authored
      * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
      (-[WKGeolocationProviderIOS initWithContext:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95980ca3
    • commit-queue@webkit.org's avatar
      Add ability to iterate over API::Array · e7ac5716
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124533
      
      Patch by Martin Hock <mhock@apple.com> on 2013-12-02
      Reviewed by Sam Weinig.
      
      * GNUmakefile.list.am:
      * Shared/APIArray.h:
      * Shared/FilterIterator.h:
      * Shared/IteratorPair.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::toStringVector):
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
      (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7ac5716
    • mitz@apple.com's avatar
      [Cocoa] WebProtectionSpace has a generic wrapper · a1a1baa5
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125125
      
      Reviewed by Anders Carlsson.
      
      Added WKNSURLProtectionSpace.
      
      * Shared/Cocoa/APIObject.mm:
      (API::Object::newObject): Allocate a WKNSURLProtectionSpace if the object is a
      WebProtectionSpace.
      * Shared/Cocoa/WKNSURLProtectionSpace.h: Added.
      (WebKit::wrapper): Added. Returns a WebProtecitonSpace’s wrapper as an NSURLProtectionSpace.
      * Shared/Cocoa/WKNSURLProtectionSpace.mm: Added.
      (-[WKNSURLProtectionSpace copyWithZone:]): Retains self.
      * UIProcess/Authentication/WebProtectionSpace.h:
      (WebKit::WebProtectionSpace::protectionSpace): Added an accessor for the
      WebCore::ProtectionSpace.
      * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159991 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1a1baa5
    • fpizlo@apple.com's avatar
      run-jsc-stress-tests should allow for tests that have a directory containing... · 18af3e1d
      fpizlo@apple.com authored
      run-jsc-stress-tests should allow for tests that have a directory containing .js files nested within a directory containing the data
      https://bugs.webkit.org/show_bug.cgi?id=125130
      
      Reviewed by Geoffrey Garen.
      
      * Scripts/run-jsc-stress-tests:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18af3e1d
    • akling@apple.com's avatar
      Avoid setting style twice for generated image content. · 050f2be4
      akling@apple.com authored
      <https://webkit.org/b/125128>
      
      Take care of a FIXME I added in r158097 and avoid redundant work in
      ImageContentData::createRenderer().
      
      I changed the inheritance helper RenderImage::setPseudoStyle() into
      a new createStyleInheritingFromPseudoStyle() function instead so it
      can be used from both PseudoElement and ImageContentData.
      
      Reviewed by Antti Koivisto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      050f2be4
    • andersca@apple.com's avatar
      Replace uses of WebKit::APIClient with API::Client · b12b8b28
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125129
      
      Reviewed by Andreas Kling.
      
      * Shared/API/c/WKConnectionRef.cpp:
      (WKConnectionSetConnectionClient):
      * Shared/WebConnection.cpp:
      (WebKit::WebConnection::initializeConnectionClient):
      * Shared/WebConnection.h:
      * Shared/WebConnectionClient.cpp:
      (WebKit::WebConnectionClient::didReceiveMessage):
      (WebKit::WebConnectionClient::didClose):
      * Shared/WebConnectionClient.h:
      * UIProcess/API/C/WKContext.cpp:
      (WKContextSetClient):
      (WKContextSetInjectedBundleClient):
      (WKContextSetHistoryClient):
      (WKContextSetDownloadClient):
      (WKContextSetConnectionClient):
      * UIProcess/API/C/WKCookieManager.cpp:
      (WKCookieManagerSetClient):
      * UIProcess/API/C/WKDatabaseManager.cpp:
      (WKDatabaseManagerSetClient):
      * UIProcess/API/C/WKGeolocationManager.cpp:
      (WKGeolocationManagerSetProvider):
      * UIProcess/API/C/WKIconDatabase.cpp:
      (WKIconDatabaseSetIconDatabaseClient):
      * UIProcess/API/C/WKNotificationManager.cpp:
      (WKNotificationManagerSetProvider):
      * UIProcess/API/C/WKOriginDataManager.cpp:
      (WKOriginDataManagerSetChangeClient):
      * UIProcess/API/C/WKPage.cpp:
      (WKPageSetPageContextMenuClient):
      (WKPageSetPageFindClient):
      (WKPageSetPageFindMatchesClient):
      (WKPageSetPageFormClient):
      (WKPageSetPagePolicyClient):
      (WKPageSetPageUIClient):
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (setUpPagePolicyClient):
      * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
      (WebKit::WebNotificationManagerProxy::initializeProvider):
      * UIProcess/Notifications/WebNotificationManagerProxy.h:
      * UIProcess/Notifications/WebNotificationProvider.cpp:
      (WebKit::WebNotificationProvider::show):
      (WebKit::WebNotificationProvider::cancel):
      (WebKit::WebNotificationProvider::didDestroyNotification):
      (WebKit::WebNotificationProvider::clearNotifications):
      (WebKit::WebNotificationProvider::addNotificationManager):
      (WebKit::WebNotificationProvider::removeNotificationManager):
      (WebKit::WebNotificationProvider::notificationPermissions):
      * UIProcess/Notifications/WebNotificationProvider.h:
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::initializeClient):
      (WebKit::WebContext::initializeInjectedBundleClient):
      (WebKit::WebContext::initializeConnectionClient):
      (WebKit::WebContext::initializeHistoryClient):
      (WebKit::WebContext::initializeDownloadClient):
      * UIProcess/WebContext.h:
      * UIProcess/WebContextClient.cpp:
      (WebKit::WebContextClient::plugInAutoStartOriginHashesChanged):
      (WebKit::WebContextClient::networkProcessDidCrash):
      (WebKit::WebContextClient::plugInInformationBecameAvailable):
      * UIProcess/WebContextClient.h:
      * UIProcess/WebContextConnectionClient.cpp:
      (WebKit::WebContextConnectionClient::didCreateConnection):
      * UIProcess/WebContextConnectionClient.h:
      * UIProcess/WebContextInjectedBundleClient.cpp:
      (WebKit::WebContextInjectedBundleClient::didReceiveMessageFromInjectedBundle):
      (WebKit::WebContextInjectedBundleClient::didReceiveSynchronousMessageFromInjectedBundle):
      (WebKit::WebContextInjectedBundleClient::getInjectedBundleInitializationUserData):
      * UIProcess/WebContextInjectedBundleClient.h:
      * UIProcess/WebCookieManagerProxy.cpp:
      (WebKit::WebCookieManagerProxy::initializeClient):
      * UIProcess/WebCookieManagerProxy.h:
      * UIProcess/WebCookieManagerProxyClient.cpp:
      (WebKit::WebCookieManagerProxyClient::cookiesDidChange):
      * UIProcess/WebCookieManagerProxyClient.h:
      * UIProcess/WebDatabaseManagerProxy.cpp:
      (WebKit::WebDatabaseManagerProxy::initializeClient):
      * UIProcess/WebDatabaseManagerProxy.h:
      * UIProcess/WebDatabaseManagerProxyClient.cpp:
      (WebKit::WebDatabaseManagerProxyClient::didModifyOrigin):
      (WebKit::WebDatabaseManagerProxyClient::didModifyDatabase):
      * UIProcess/WebDatabaseManagerProxyClient.h:
      * UIProcess/WebDownloadClient.cpp:
      (WebKit::WebDownloadClient::didStart):
      (WebKit::WebDownloadClient::didReceiveAuthenticationChallenge):
      (WebKit::WebDownloadClient::didReceiveResponse):
      (WebKit::WebDownloadClient::didReceiveData):
      (WebKit::WebDownloadClient::shouldDecodeSourceDataOfMIMEType):
      (WebKit::WebDownloadClient::decideDestinationWithSuggestedFilename):
      (WebKit::WebDownloadClient::didCreateDestination):
      (WebKit::WebDownloadClient::didFinish):
      (WebKit::WebDownloadClient::didFail):
      (WebKit::WebDownloadClient::didCancel):
      (WebKit::WebDownloadClient::processDidCrash):
      * UIProcess/WebDownloadClient.h:
      * UIProcess/WebFindClient.cpp:
      (WebKit::WebFindClient::didFindString):
      (WebKit::WebFindClient::didFailToFindString):
      (WebKit::WebFindClient::didCountStringMatches):
      (WebKit::WebFindMatchesClient::didFindStringMatches):
      (WebKit::WebFindMatchesClient::didGetImageForMatchResult):
      * UIProcess/WebFindClient.h:
      * UIProcess/WebFormClient.cpp:
      (WebKit::WebFormClient::willSubmitForm):
      * UIProcess/WebFormClient.h:
      * UIProcess/WebGeolocationManagerProxy.cpp:
      (WebKit::WebGeolocationManagerProxy::initializeProvider):
      * UIProcess/WebGeolocationManagerProxy.h:
      * UIProcess/WebGeolocationProvider.cpp:
      (WebKit::WebGeolocationProvider::startUpdating):
      (WebKit::WebGeolocationProvider::stopUpdating):
      (WebKit::WebGeolocationProvider::setEnableHighAccuracy):
      * UIProcess/WebGeolocationProvider.h:
      * UIProcess/WebHistoryClient.cpp:
      (WebKit::WebHistoryClient::didNavigateWithNavigationData):
      (WebKit::WebHistoryClient::didPerformClientRedirect):
      (WebKit::WebHistoryClient::didPerformServerRedirect):
      (WebKit::WebHistoryClient::didUpdateHistoryTitle):
      (WebKit::WebHistoryClient::populateVisitedLinks):
      * UIProcess/WebHistoryClient.h:
      * UIProcess/WebIconDatabase.cpp:
      (WebKit::WebIconDatabase::initializeIconDatabaseClient):
      * UIProcess/WebIconDatabase.h:
      * UIProcess/WebIconDatabaseClient.cpp:
      (WebKit::WebIconDatabaseClient::didChangeIconForPageURL):
      (WebKit::WebIconDatabaseClient::didRemoveAllIcons):
      (WebKit::WebIconDatabaseClient::iconDataReadyForPageURL):
      * UIProcess/WebIconDatabaseClient.h:
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::createInspectorPage):
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebOriginDataManagerProxy.cpp:
      (WebKit::WebOriginDataManagerProxy::setChangeClient):
      * UIProcess/WebOriginDataManagerProxy.h:
      * UIProcess/WebOriginDataManagerProxyChangeClient.cpp:
      (WebKit::WebOriginDataManagerProxyChangeClient::didChange):
      * UIProcess/WebOriginDataManagerProxyChangeClient.h:
      * UIProcess/WebPageContextMenuClient.cpp:
      (WebKit::WebPageContextMenuClient::getContextMenuFromProposedMenu):
      (WebKit::WebPageContextMenuClient::customContextMenuItemSelected):
      (WebKit::WebPageContextMenuClient::contextMenuDismissed):
      (WebKit::WebPageContextMenuClient::showContextMenu):
      (WebKit::WebPageContextMenuClient::hideContextMenu):
      * UIProcess/WebPageContextMenuClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::initializePolicyClient):
      (WebKit::WebPageProxy::initializeFormClient):
      (WebKit::WebPageProxy::initializeUIClient):
      (WebKit::WebPageProxy::initializeFindClient):
      (WebKit::WebPageProxy::initializeFindMatchesClient):
      (WebKit::WebPageProxy::initializeContextMenuClient):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      (WebKit::WebPolicyClient::decidePolicyForResponse):
      (WebKit::WebPolicyClient::unableToImplementPolicy):
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::createNewPage):
      (WebKit::WebUIClient::showPage):
      (WebKit::WebUIClient::close):
      (WebKit::WebUIClient::takeFocus):
      (WebKit::WebUIClient::focus):
      (WebKit::WebUIClient::unfocus):
      (WebKit::WebUIClient::runJavaScriptAlert):
      (WebKit::WebUIClient::runJavaScriptConfirm):
      (WebKit::WebUIClient::runJavaScriptPrompt):
      (WebKit::WebUIClient::setStatusText):
      (WebKit::WebUIClient::mouseDidMoveOverElement):
      (WebKit::WebUIClient::unavailablePluginButtonClicked):
      (WebKit::WebUIClient::didNotHandleKeyEvent):
      (WebKit::WebUIClient::didNotHandleWheelEvent):
      (WebKit::WebUIClient::toolbarsAreVisible):
      (WebKit::WebUIClient::setToolbarsAreVisible):
      (WebKit::WebUIClient::menuBarIsVisible):
      (WebKit::WebUIClient::setMenuBarIsVisible):
      (WebKit::WebUIClient::statusBarIsVisible):
      (WebKit::WebUIClient::setStatusBarIsVisible):
      (WebKit::WebUIClient::isResizable):
      (WebKit::WebUIClient::setIsResizable):
      (WebKit::WebUIClient::setWindowFrame):
      (WebKit::WebUIClient::windowFrame):
      (WebKit::WebUIClient::runBeforeUnloadConfirmPanel):
      (WebKit::WebUIClient::didDraw):
      (WebKit::WebUIClient::pageDidScroll):
      (WebKit::WebUIClient::exceededDatabaseQuota):
      (WebKit::WebUIClient::runOpenPanel):
      (WebKit::WebUIClient::decidePolicyForGeolocationPermissionRequest):
      (WebKit::WebUIClient::decidePolicyForNotificationPermissionRequest):
      (WebKit::WebUIClient::headerHeight):
      (WebKit::WebUIClient::footerHeight):
      (WebKit::WebUIClient::drawHeader):
      (WebKit::WebUIClient::drawFooter):
      (WebKit::WebUIClient::printFrame):
      (WebKit::WebUIClient::runModal):
      (WebKit::WebUIClient::saveDataToFileInDownloadsFolder):
      (WebKit::WebUIClient::shouldInterruptJavaScript):
      (WebKit::WebUIClient::showColorPicker):
      (WebKit::WebUIClient::hideColorPicker):
      * UIProcess/WebUIClient.h:
      * UIProcess/mac/WebInspectorProxyMac.mm:
      (WebKit::WebInspectorProxy::platformCreateInspectorPage):
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundleSetClient):
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      (WKBundlePageSetContextMenuClient):
      (WKBundlePageSetEditorClient):
      (WKBundlePageSetFormClient):
      (WKBundlePageSetPageLoaderClient):
      (WKBundlePageSetResourceLoadClient):
      (WKBundlePageSetPolicyClient):
      (WKBundlePageSetUIClient):
      (WKBundlePageSetFullScreenClient):
      (WKBundlePageSetDiagnosticLoggingClient):
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::initializeClient):
      * WebProcess/InjectedBundle/InjectedBundle.h:
      * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
      (WebKit::InjectedBundleClient::didCreatePage):
      (WebKit::InjectedBundleClient::willDestroyPage):
      (WebKit::InjectedBundleClient::didInitializePageGroup):
      (WebKit::InjectedBundleClient::didReceiveMessage):
      (WebKit::InjectedBundleClient::didReceiveMessageToPage):
      * WebProcess/InjectedBundle/InjectedBundleClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
      (WebKit::InjectedBundlePageContextMenuClient::getCustomMenuFromDefaultItems):
      * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp:
      (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessage):
      * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
      (WebKit::InjectedBundlePageEditorClient::shouldBeginEditing):
      (WebKit::InjectedBundlePageEditorClient::shouldEndEditing):
      (WebKit::InjectedBundlePageEditorClient::shouldInsertNode):
      (WebKit::InjectedBundlePageEditorClient::shouldInsertText):
      (WebKit::InjectedBundlePageEditorClient::shouldDeleteRange):
      (WebKit::InjectedBundlePageEditorClient::shouldChangeSelectedRange):
      (WebKit::InjectedBundlePageEditorClient::shouldApplyStyle):
      (WebKit::InjectedBundlePageEditorClient::didBeginEditing):
      (WebKit::InjectedBundlePageEditorClient::didEndEditing):
      (WebKit::InjectedBundlePageEditorClient::didChange):
      (WebKit::InjectedBundlePageEditorClient::didChangeSelection):
      (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard):
      (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange):
      (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard):
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
      (WebKit::InjectedBundlePageFormClient::didFocusTextField):
      (WebKit::InjectedBundlePageFormClient::textFieldDidBeginEditing):
      (WebKit::InjectedBundlePageFormClient::textFieldDidEndEditing):
      (WebKit::InjectedBundlePageFormClient::textDidChangeInTextField):
      (WebKit::InjectedBundlePageFormClient::textDidChangeInTextArea):
      (WebKit::InjectedBundlePageFormClient::shouldPerformActionInTextField):
      (WebKit::InjectedBundlePageFormClient::willSendSubmitEvent):
      (WebKit::InjectedBundlePageFormClient::willSubmitForm):
      (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
      (WebKit::InjectedBundlePageFormClient::shouldNotifyOnFormChanges):
      * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
      (WebKit::InjectedBundlePageLoaderClient::willLoadURLRequest):
      (WebKit::InjectedBundlePageLoaderClient::willLoadDataRequest):
      (WebKit::InjectedBundlePageLoaderClient::shouldGoToBackForwardListItem):
      (WebKit::InjectedBundlePageLoaderClient::didStartProvisionalLoadForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didReceiveServerRedirectForProvisionalLoadForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didFailProvisionalLoadWithErrorForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didCommitLoadForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didFinishDocumentLoadForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didFinishProgress):
      (WebKit::InjectedBundlePageLoaderClient::didFailLoadWithErrorForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didSameDocumentNavigationForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didReceiveTitleForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didRemoveFrameFromHierarchy):
      (WebKit::InjectedBundlePageLoaderClient::didDisplayInsecureContentForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didRunInsecureContentForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didDetectXSSForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didFirstLayoutForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didFirstVisuallyNonEmptyLayoutForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didLayoutForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didLayout):
      (WebKit::InjectedBundlePageLoaderClient::didClearWindowObjectForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didCancelClientRedirectForFrame):
      (WebKit::InjectedBundlePageLoaderClient::willPerformClientRedirectForFrame):
      (WebKit::InjectedBundlePageLoaderClient::didHandleOnloadEventsForFrame):
      (WebKit::InjectedBundlePageLoaderClient::globalObjectIsAvailableForFrame):
      (WebKit::InjectedBundlePageLoaderClient::willDisconnectDOMWindowExtensionFromGlobalObject):
      (WebKit::InjectedBundlePageLoaderClient::didReconnectDOMWindowExtensionToGlobalObject):
      (WebKit::InjectedBundlePageLoaderClient::willDestroyGlobalObjectForDOMWindowExtension):
      (WebKit::InjectedBundlePageLoaderClient::shouldForceUniversalAccessFromLocalURL):
      (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
      (WebKit::InjectedBundlePageLoaderClient::willDestroyFrame):
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.cpp:
      (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNavigationAction):
      (WebKit::InjectedBundlePagePolicyClient::decidePolicyForNewWindowAction):
      (WebKit::InjectedBundlePagePolicyClient::decidePolicyForResponse):
      (WebKit::InjectedBundlePagePolicyClient::unableToImplementPolicy):
      * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
      (WebKit::InjectedBundlePageResourceLoadClient::didInitiateLoadForResource):
      (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
      (WebKit::InjectedBundlePageResourceLoadClient::didReceiveResponseForResource):
      (WebKit::InjectedBundlePageResourceLoadClient::didReceiveContentLengthForResource):
      (WebKit::InjectedBundlePageResourceLoadClient::didFinishLoadForResource):
      (WebKit::InjectedBundlePageResourceLoadClient::didFailLoadForResource):
      (WebKit::InjectedBundlePageResourceLoadClient::shouldCacheResponse):
      (WebKit::InjectedBundlePageResourceLoadClient::shouldUseCredentialStorage):
      * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
      (WebKit::InjectedBundlePageUIClient::willAddMessageToConsole):
      (WebKit::InjectedBundlePageUIClient::willSetStatusbarText):
      (WebKit::InjectedBundlePageUIClient::willRunJavaScriptAlert):
      (WebKit::InjectedBundlePageUIClient::willRunJavaScriptConfirm):
      (WebKit::InjectedBundlePageUIClient::willRunJavaScriptPrompt):
      (WebKit::InjectedBundlePageUIClient::mouseDidMoveOverElement):
      (WebKit::InjectedBundlePageUIClient::pageDidScroll):
      (WebKit::InjectedBundlePageUIClient::shouldGenerateFileForUpload):
      (WebKit::InjectedBundlePageUIClient::generateFileForUpload):
      (WebKit::InjectedBundlePageUIClient::statusBarIsVisible):
      (WebKit::InjectedBundlePageUIClient::menuBarIsVisible):
      (WebKit::InjectedBundlePageUIClient::toolbarsAreVisible):
      (WebKit::InjectedBundlePageUIClient::didReachApplicationCacheOriginQuota):
      (WebKit::InjectedBundlePageUIClient::didExceedDatabaseQuota):
      (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
      (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
      (WebKit::InjectedBundlePageUIClient::plugInExtraStyleSheet):
      (WebKit::InjectedBundlePageUIClient::plugInExtraScript):
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::initializeInjectedBundleContextMenuClient):
      (WebKit::WebPage::initializeInjectedBundleEditorClient):
      (WebKit::WebPage::initializeInjectedBundleFormClient):
      (WebKit::WebPage::initializeInjectedBundleLoaderClient):
      (WebKit::WebPage::initializeInjectedBundlePolicyClient):
      (WebKit::WebPage::initializeInjectedBundleResourceLoadClient):
      (WebKit::WebPage::initializeInjectedBundleUIClient):
      (WebKit::WebPage::initializeInjectedBundleFullScreenClient):
      (WebKit::WebPage::initializeInjectedBundleDiagnosticLoggingClient):
      * WebProcess/WebPage/WebPage.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b12b8b28
    • mark.lam@apple.com's avatar
      Build failure when disabling JIT, YARR_JIT, and ASSEMBLER. · 10190c45
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123809.
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore: 
      
      Also fixed build when disabling the DISASSEMBLER.
      Added some needed #if's and some comments.
      
      * assembler/LinkBuffer.cpp:
      (JSC::LinkBuffer::finalizeCodeWithDisassembly):
      * dfg/DFGDisassembler.cpp:
      * dfg/DFGDisassembler.h:
      (JSC::DFG::Disassembler::Disassembler):
      (JSC::DFG::Disassembler::setStartOfCode):
      (JSC::DFG::Disassembler::setForBlockIndex):
      (JSC::DFG::Disassembler::setForNode):
      (JSC::DFG::Disassembler::setEndOfMainPath):
      (JSC::DFG::Disassembler::setEndOfCode):
      (JSC::DFG::Disassembler::dump):
      (JSC::DFG::Disassembler::reportToProfiler):
      * disassembler/Disassembler.cpp:
      * disassembler/X86Disassembler.cpp:
      * jit/FPRInfo.h:
      * jit/GPRInfo.h:
      * jit/JITDisassembler.cpp:
      * jit/JITDisassembler.h:
      (JSC::JITDisassembler::JITDisassembler):
      (JSC::JITDisassembler::setStartOfCode):
      (JSC::JITDisassembler::setForBytecodeMainPath):
      (JSC::JITDisassembler::setForBytecodeSlowPath):
      (JSC::JITDisassembler::setEndOfSlowPath):
      (JSC::JITDisassembler::setEndOfCode):
      (JSC::JITDisassembler::dump):
      (JSC::JITDisassembler::reportToProfiler):
      
      Source/WTF: 
      
      * wtf/Platform.h:
      - Ensure that the ASSEMBLER is enabled when the DISASSEMBLER is enabled.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159987 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      10190c45
    • beidson@apple.com's avatar
      Possible crash in ProgressTracker::progressHeartbeatTimerFired(Timer<ProgressTracker>*) · 5f1ccd4b
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125110
      
      Reviewed by Darin Adler.
      
      FrameLoader::loadProgressingStatusChanged() might be called while the Frame has a null FrameView.
      
      It’s unclear how to reproduce, but there’s no harm in a null check.
      
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadProgressingStatusChanged):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f1ccd4b
    • enrica@apple.com's avatar
      Merging some more iOS WebKit2 stuff. · 8723db29
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125119
      
      Reviewed by Tim Horton.
      
      * Shared/EditorState.h:
      * Shared/NativeWebKeyboardEvent.h:
      * Shared/NativeWebMouseEvent.h:
      * Shared/NativeWebTouchEvent.h:
      * Shared/mac/RemoteLayerBackingStore.h:
      * Shared/mac/RemoteLayerTreePropertyApplier.mm:
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      * UIProcess/PageClient.h:
      * UIProcess/ios/TiledCoreAnimationDrawingAreaProxyIOS.mm:
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
      * UIProcess/mac/SecItemShimProxy.messages.in:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8723db29
    • andersca@apple.com's avatar
      Add versioned structs for the remaining clients · e8db2668
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125123
      
      Reviewed by Andreas Kling.
      
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKContextConnectionClient.h:
      * UIProcess/API/C/WKContextDownloadClient.h:
      * UIProcess/API/C/WKContextHistoryClient.h:
      * UIProcess/API/C/WKContextInjectedBundleClient.h:
      * UIProcess/API/C/WKOriginDataManager.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e8db2668
    • andersca@apple.com's avatar
      Move WKContext clients to separate files · c929baa8
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125121
      
      Reviewed by Andreas Kling.
      
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKContextConnectionClient.h: Added.
      * UIProcess/API/C/WKContextDownloadClient.h: Added.
      * UIProcess/API/C/WKContextHistoryClient.h: Added.
      * UIProcess/API/C/WKContextInjectedBundleClient.h: Added.
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c929baa8
    • weinig@apple.com's avatar
      WebPageGroups should keep track of what processes they are being used by · 455ac1e6
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124556
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/WebContextUserMessageCoders.h:
      (WebKit::WebContextUserMessageEncoder::encode):
      (WebKit::WebContextUserMessageDecoder::decode):
      * UIProcess/WebPageGroup.cpp:
      (WebKit::WebPageGroup::addProcess):
      (WebKit::WebPageGroup::disconnectProcess):
      * UIProcess/WebPageGroup.h:
      (WebKit::WebPageGroup::sendToAllProcessesInGroup):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::initializeWebPage):
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::disconnect):
      (WebKit::WebProcessProxy::webPageGroup):
      (WebKit::WebProcessProxy::addWebPageGroup):
      * UIProcess/WebProcessProxy.h:
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::webPageGroup):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      455ac1e6
    • andersca@apple.com's avatar
      Add versioned structs for all clients except the ones in WKContext.h · dcc738b3
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125120
      
      Reviewed by Andreas Kling.
      
      * Shared/API/c/WKConnectionRef.h:
      * UIProcess/API/C/WKCookieManager.h:
      * UIProcess/API/C/WKDatabaseManager.h:
      * UIProcess/API/C/WKGeolocationManager.h:
      * UIProcess/API/C/WKIconDatabase.h:
      * UIProcess/API/C/WKNotificationProvider.h:
      * UIProcess/API/C/WKPageContextMenuClient.h:
      * UIProcess/API/C/WKPageFindClient.h:
      * UIProcess/API/C/WKPageFindMatchesClient.h:
      * UIProcess/API/C/WKPageFormClient.h:
      * UIProcess/API/C/WKPageLoaderClient.h:
      * UIProcess/API/C/WKPagePolicyClient.h:
      * UIProcess/API/C/WKPageUIClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundle.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageBanner.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageContextMenuClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageDiagnosticLoggingClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageEditorClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageFormClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageFullScreenClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageLoaderClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePagePolicyClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageResourceLoadClient.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159981 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcc738b3
    • samuel_white@apple.com's avatar
      AX: Add AXUIElementCountForSearchPredicate parameterized attribute. · 8d7423c7
      samuel_white@apple.com authored
          https://bugs.webkit.org/show_bug.cgi?id=124561
      
          Reviewed by Chris Fleizach.
      
          Added test to verify that NSAccessibilityUIElementCountForSearchPredicateParameterizedAttribute
          works as it should and updated existing test that has exposes this new attribute.
      
          * platform/mac/accessibility/bounds-for-range-expected.txt:
          * platform/mac/accessibility/search-predicate-element-count-expected.txt: Added.
          * platform/mac/accessibility/search-predicate-element-count.html: Added.
      
          Added ability to fetch the number of elements that match a specific criteria. This will enable VoiceOver
          to interface with WebKit much more dynamically. We can now get an idea of how many interesting elements
          exist on a page, and then fetch them in chunks as needed.
      
          Test: platform/mac/accessibility/search-predicate-element-count.html
      
          * accessibility/AccessibilityObject.cpp:
          (WebCore::AccessibilityObject::isAccessibilityTextSearchMatch):
          * accessibility/AccessibilityObject.h:
          (WebCore::AccessibilitySearchCriteria::AccessibilitySearchCriteria):
          * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
          (accessibilitySearchCriteriaForSearchPredicateParameterizedAttribute):
          (-[WebAccessibilityObjectWrapper accessibilityParameterizedAttributeNames]):
          (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]):
      
          Added function to verify that NSAccessibilityUIElementCountForSearchPredicateParameterizedAttribute works as it should.
      
          * DumpRenderTree/AccessibilityUIElement.cpp:
          (uiElementCountForSearchPredicateCallback):
          (uiElementForSearchPredicateCallback):
          (AccessibilityUIElement::getJSClass):
          * DumpRenderTree/AccessibilityUIElement.h:
          * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
          (AccessibilityUIElement::uiElementCountForSearchPredicate):
          * DumpRenderTree/ios/AccessibilityUIElementIOS.mm:
          (AccessibilityUIElement::uiElementCountForSearchPredicate):
          * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
          (searchPredicateParameterizedAttributeForSearchCriteria):
          (AccessibilityUIElement::uiElementCountForSearchPredicate):
          (AccessibilityUIElement::uiElementForSearchPredicate):
          * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
          (AccessibilityUIElement::uiElementCountForSearchPredicate):
          * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
          (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate):
          * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
          * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
          * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
          (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate):
          * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
          (WTR::searchPredicateParameterizedAttributeForSearchCriteria):
          (WTR::AccessibilityUIElement::uiElementCountForSearchPredicate):
          (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d7423c7