1. 01 Dec, 2013 14 commits
  2. 30 Nov, 2013 13 commits
    • weinig@apple.com's avatar
      [CTTE] The WebPageProxy's WebPageGroup is never null so it should be stored in a Ref · 3b9444bb
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125038
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGetPageGroup):
      * UIProcess/API/C/mac/WKPagePrivateMac.cpp:
      (WKPageIsURLKnownHSTSHost):
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController browsingContextGroup]):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _preferencesDidChange]):
      (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::WebContext):
      (WebKit::WebContext::createWebPage):
      * UIProcess/WebContext.h:
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorPageGroups::inspectorLevel):
      (WebKit::WebInspectorPageGroups::isInspectorPageGroup):
      (WebKit::WebInspectorPageGroups::inspectorPageGroupLevel):
      (WebKit::WebInspectorProxy::isInspectorPage):
      * UIProcess/WebInspectorProxy.h:
      * UIProcess/WebPageGroup.cpp:
      (WebKit::WebPageGroup::createNonNull):
      * UIProcess/WebPageGroup.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::create):
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
      (WebKit::WebPageProxy::preferencesDidChange):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::pageGroup):
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::createWebPage):
      * UIProcess/WebProcessProxy.h:
      * UIProcess/mac/WebInspectorProxyMac.mm:
      (WebKit::WebInspectorProxy::createInspectorWindow):
      (WebKit::WebInspectorProxy::platformCreateInspectorPage):
      (WebKit::WebInspectorProxy::windowFrameDidChange):
      * UIProcess/mac/WebProcessProxyMac.mm:
      (WebKit::WebProcessProxy::pageIsProcessSuppressible):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b9444bb
    • mitz@apple.com's avatar
      Added a version of +[NSURL _web_URLWithWTFString:relativeToURL:] that doesn’t... · 42115e1b
      mitz@apple.com authored
      Added a version of +[NSURL _web_URLWithWTFString:relativeToURL:] that doesn’t take a base URL and switched all callers to it.
      https://bugs.webkit.org/show_bug.cgi?id=125040
      
      Reviewed by Sam Weinig.
      
      * Shared/Cocoa/WKNSURLExtras.h: Declared new method.
      * Shared/Cocoa/WKNSURLExtras.mm:
      (urlWithWTFString): Added helper function.
      (+[NSURL _web_URLWithWTFString:]): Added.
      (+[NSURL _web_URLWithWTFString:relativeToURL:]): Changed to use helper function.
      * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
      (-[WKBackForwardListItem URL]): Changed to call new method.
      (-[WKBackForwardListItem originalURL]): Ditto.
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController activeURL]): Ditto.
      (-[WKBrowsingContextController provisionalURL]): Ditto.
      (-[WKBrowsingContextController committedURL]): Ditto.
      (-[WKBrowsingContextController unreachableURL]): Ditto.
      (setUpPagePolicyClient): Ditto.
      * UIProcess/API/Cocoa/WKNavigationData.mm:
      (-[WKNavigationData destinationURL]): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42115e1b
    • mitz@apple.com's avatar
      [Cocoa] Stop using the WKPageRef API in WKBrowsingContextController · 1431d58b
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125036
      
      Reviewed by Sam Weinig.
      
      * Shared/Cocoa/WKNSURLExtras.h: Declared new method.
      * Shared/Cocoa/WKNSURLExtras.mm:
      (-[NSURL _web_originalDataAsWTFString]): Added. Returns a WTF::String with the receiver’s
      bytes.
      
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController loadRequest:userData:]):
      (-[WKBrowsingContextController loadFileURL:restrictToFilesWithin:userData:]):
      (-[WKBrowsingContextController loadHTMLString:baseURL:userData:]):
      (-[WKBrowsingContextController loadAlternateHTMLString:baseURL:forUnreachableURL:]):
      (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]):
      (-[WKBrowsingContextController stopLoading]):
      (-[WKBrowsingContextController reload]):
      (-[WKBrowsingContextController reloadFromOrigin]):
      (-[WKBrowsingContextController goForward]):
      (-[WKBrowsingContextController canGoForward]):
      (-[WKBrowsingContextController goBack]):
      (-[WKBrowsingContextController canGoBack]):
      (-[WKBrowsingContextController activeURL]):
      (-[WKBrowsingContextController provisionalURL]):
      (-[WKBrowsingContextController committedURL]):
      (-[WKBrowsingContextController title]):
      (-[WKBrowsingContextController textZoom]):
      (-[WKBrowsingContextController setTextZoom:]):
      (-[WKBrowsingContextController pageZoom]):
      (-[WKBrowsingContextController setPageZoom:]):
      (setUpPageLoaderClient):
      (setUpPagePolicyClient):
      (-[WKBrowsingContextController setLoadDelegate:]):
      (-[WKBrowsingContextController setPolicyDelegate:]):
      (-[WKBrowsingContextController _pageRef]):
      (-[WKBrowsingContextController setPaginationMode:]):
      (-[WKBrowsingContextController paginationMode]):
      (-[WKBrowsingContextController setPaginationBehavesLikeColumns:]):
      (-[WKBrowsingContextController paginationBehavesLikeColumns]):
      (-[WKBrowsingContextController setPageLength:]):
      (-[WKBrowsingContextController pageLength]):
      (-[WKBrowsingContextController setGapBetweenPages:]):
      (-[WKBrowsingContextController gapBetweenPages]):
      (-[WKBrowsingContextController pageCount]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159894 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1431d58b
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r159865. · b80a020b
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/159865
      https://bugs.webkit.org/show_bug.cgi?id=125037
      
      the position of mouse events are wrong at MiniBrowser/efl
      (Requested by ryuan on #webkit).
      
      * UIProcess/API/efl/EwkView.cpp:
      (EwkView::displayTimerFired):
      (EwkView::createGLSurface):
      (EwkView::handleEvasObjectCalculate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159893 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b80a020b
    • commit-queue@webkit.org's avatar
      [Win] Some JavaScript date tests are failing. · a6d11cd7
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124946
      
      Patch by peavo@outlook.com <peavo@outlook.com> on 2013-11-30
      Reviewed by Brent Fulgham.
      
      Use native Win32 api functions to compute Daylight saving time offset.
      
      * wtf/DateMath.cpp:
      (WTF::UnixTimeToFileTime): Added method to calculate Win32 specific struct FILETIME from time_t value.
      (WTF::calculateDSTOffset): Use native Win32 api functions to compute Daylight saving time offset.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6d11cd7
    • weinig@apple.com's avatar
      [CTTE] The WebPageProxy's WebBackForwardList is never null so it should be stored in a Ref · a9c75620
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125035
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGetBackForwardList):
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController backForwardList]): Remove null check.
      * UIProcess/WebBackForwardList.cpp:
      (WebKit::WebBackForwardList::WebBackForwardList):
      (WebKit::WebBackForwardList::currentItem): Constify.
      (WebKit::WebBackForwardList::backItem): Constify.
      (WebKit::WebBackForwardList::forwardItem): Constify.
      (WebKit::WebBackForwardList::itemAtIndex): Constify.
      * UIProcess/WebBackForwardList.h:
      (WebKit::WebBackForwardList::create):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::backForwardList):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9c75620
    • zandobersek@gmail.com's avatar
      Unreviewed GTK build fix after r159889. · 527a5f65
      zandobersek@gmail.com authored
      * UIProcess/gtk/WebPageProxyGtk.cpp:
      (WebKit::WebPageProxy::viewWidget): Adjust the static cast of the PageClient reference to PageClientImpl.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159890 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      527a5f65
    • weinig@apple.com's avatar
      [CTTE] WebPageProxy should store the PageClient as a reference · bb24ee22
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125030
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (webkitWebViewBaseCreateWebPage):
      * UIProcess/API/ios/WKContentView.mm:
      (-[WKContentView _commonInitializationWithContextRef:pageGroupRef:relatedToPage:]):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
      * UIProcess/CoordinatedGraphics/WebPageProxyCoordinatedGraphics.cpp:
      (WebKit::WebPageProxy::didFindZoomableArea):
      * UIProcess/CoordinatedGraphics/WebView.cpp:
      (WebKit::WebView::WebView):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::createWebPage):
      * UIProcess/WebContext.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::create):
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::reattachToWebProcess):
      (WebKit::WebPageProxy::initializeWebPage):
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::setViewNeedsDisplay):
      (WebKit::WebPageProxy::displayView):
      (WebKit::WebPageProxy::canScrollView):
      (WebKit::WebPageProxy::scrollView):
      (WebKit::WebPageProxy::updateViewState):
      (WebKit::WebPageProxy::viewStateDidChange):
      (WebKit::WebPageProxy::viewSize):
      (WebKit::WebPageProxy::startDrag):
      (WebKit::WebPageProxy::handleTouchEvent):
      (WebKit::WebPageProxy::preferencesDidChange):
      (WebKit::WebPageProxy::didCommitLoadForFrame):
      (WebKit::WebPageProxy::closePage):
      (WebKit::WebPageProxy::setWindowFrame):
      (WebKit::WebPageProxy::getWindowFrame):
      (WebKit::WebPageProxy::screenToWindow):
      (WebKit::WebPageProxy::windowToScreen):
      (WebKit::WebPageProxy::pageDidRequestScroll):
      (WebKit::WebPageProxy::pageTransitionViewportReady):
      (WebKit::WebPageProxy::didRenderFrame):
      (WebKit::WebPageProxy::didChangeViewportProperties):
      (WebKit::WebPageProxy::handleDownloadRequest):
      (WebKit::WebPageProxy::didChangeContentSize):
      (WebKit::WebPageProxy::showColorPicker):
      (WebKit::WebPageProxy::editorStateChanged):
      (WebKit::WebPageProxy::canUndoRedo):
      (WebKit::WebPageProxy::executeUndoRedo):
      (WebKit::WebPageProxy::clearAllEditCommands):
      (WebKit::WebPageProxy::setFindIndicator):
      (WebKit::WebPageProxy::showPopupMenu):
      (WebKit::WebPageProxy::internalShowContextMenu):
      (WebKit::WebPageProxy::registerEditCommand):
      (WebKit::WebPageProxy::setToolTip):
      (WebKit::WebPageProxy::setCursor):
      (WebKit::WebPageProxy::setCursorHiddenUntilMouseMoves):
      (WebKit::WebPageProxy::didReceiveEvent):
      (WebKit::WebPageProxy::processDidCrash):
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      (WebKit::WebPageProxy::initializeCreationParameters):
      (WebKit::WebPageProxy::enterAcceleratedCompositingMode):
      (WebKit::WebPageProxy::exitAcceleratedCompositingMode):
      (WebKit::WebPageProxy::updateAcceleratedCompositingMode):
      (WebKit::WebPageProxy::requestGeolocationPermissionForFrame):
      (WebKit::WebPageProxy::recommendedScrollbarStyleDidChange):
      (WebKit::WebPageProxy::updateBackingStoreDiscardableState):
      (WebKit::WebPageProxy::showCorrectionPanel):
      (WebKit::WebPageProxy::dismissCorrectionPanel):
      (WebKit::WebPageProxy::dismissCorrectionPanelSoon):
      (WebKit::WebPageProxy::recordAutocorrectionResponse):
      (WebKit::WebPageProxy::showDictationAlternativeUI):
      (WebKit::WebPageProxy::removeDictationAlternatives):
      (WebKit::WebPageProxy::dictationAlternatives):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::createWebPage):
      * UIProcess/WebProcessProxy.h:
      * UIProcess/gtk/WebPageProxyGtk.cpp:
      (WebKit::WebPageProxy::getEditorCommandsForKeyEvent):
      * UIProcess/ios/WebPageProxyIOS.mm:
      (WebKit::WebPageProxy::interpretKeyEvent):
      (WebKit::WebPageProxy::mainDocumentDidReceiveMobileDocType):
      (WebKit::WebPageProxy::didGetTapHighlightGeometries):
      (WebKit::WebPageProxy::didChangeViewportArguments):
      (WebKit::WebPageProxy::startAssistingNode):
      (WebKit::WebPageProxy::stopAssistingNode):
      (WebKit::WebPageProxy::setAcceleratedCompositingRootLayer):
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::windowAndViewFramesChanged):
      (WebKit::WebPageProxy::insertDictatedText):
      (WebKit::WebPageProxy::setDragImage):
      (WebKit::WebPageProxy::setPromisedData):
      (WebKit::WebPageProxy::interpretQueuedKeyEvent):
      (WebKit::WebPageProxy::didPerformDictionaryLookup):
      (WebKit::WebPageProxy::registerWebProcessAccessibilityToken):
      (WebKit::WebPageProxy::makeFirstResponder):
      (WebKit::WebPageProxy::colorSpace):
      (WebKit::WebPageProxy::pluginFocusOrWindowFocusChanged):
      (WebKit::WebPageProxy::setPluginComplexTextInputState):
      (WebKit::WebPageProxy::executeSavedCommandBySelector):
      (WebKit::WebPageProxy::wkView):
      (WebKit::WebPageProxy::intrinsicContentSizeDidChange):
      (WebKit::WebPageProxy::setAcceleratedCompositingRootLayer):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb24ee22
    • weinig@apple.com's avatar
      [RTTE] The PermissionRequestManagerProxies should use WebPageProxy references. · ee955427
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125029
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
      (WebKit::GeolocationPermissionRequestManagerProxy::GeolocationPermissionRequestManagerProxy):
      (WebKit::GeolocationPermissionRequestManagerProxy::invalidateRequests):
      (WebKit::GeolocationPermissionRequestManagerProxy::didReceiveGeolocationPermissionDecision):
      * UIProcess/GeolocationPermissionRequestManagerProxy.h:
      * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:
      (WebKit::NotificationPermissionRequestManagerProxy::NotificationPermissionRequestManagerProxy):
      (WebKit::NotificationPermissionRequestManagerProxy::invalidateRequests):
      (WebKit::NotificationPermissionRequestManagerProxy::didReceiveNotificationPermissionDecision):
      * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      Do some additional modernization while we are here.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee955427
    • mitz@apple.com's avatar
      <rdar://problem/15560240> ResourceError encoding drops NSURL-valued keys in... · 7fd0832b
      mitz@apple.com authored
      <rdar://problem/15560240> ResourceError encoding drops NSURL-valued keys in the NSError’s userInfo, including NSErrorFailingURLKey
      https://bugs.webkit.org/show_bug.cgi?id=125016
      
      Reviewed by Anders “happy name day” Carlsson.
      
      * Shared/mac/WebCoreArgumentCodersMac.mm:
      (CoreIPC::::encodePlatformData): Encode all string- and URL-valued keys as a dictionary.
      (CoreIPC::::decodePlatformData): Decode user info as a dictionary.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fd0832b
    • fpizlo@apple.com's avatar
      Finally remove those DFG_ENABLE things · ecd97b0c
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125025
      
      Rubber stamped by Sam Weinig.
              
      This removes a bunch of unused and untested insanity.
      
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::tallyFrequentExitSites):
      * dfg/DFGArgumentsSimplificationPhase.cpp:
      (JSC::DFG::ArgumentsSimplificationPhase::run):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::injectLazyOperandSpeculation):
      (JSC::DFG::ByteCodeParser::getArrayModeConsideringSlowPath):
      (JSC::DFG::ByteCodeParser::makeSafe):
      (JSC::DFG::ByteCodeParser::makeDivSafe):
      (JSC::DFG::ByteCodeParser::handleCall):
      (JSC::DFG::ByteCodeParser::handleInlining):
      (JSC::DFG::ByteCodeParser::parseBlock):
      (JSC::DFG::ByteCodeParser::linkBlock):
      (JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):
      (JSC::DFG::ByteCodeParser::parseCodeBlock):
      (JSC::DFG::ByteCodeParser::parse):
      (JSC::DFG::parse):
      * dfg/DFGCFGSimplificationPhase.cpp:
      (JSC::DFG::CFGSimplificationPhase::run):
      (JSC::DFG::CFGSimplificationPhase::convertToJump):
      (JSC::DFG::CFGSimplificationPhase::fixJettisonedPredecessors):
      * dfg/DFGCSEPhase.cpp:
      (JSC::DFG::CSEPhase::endIndexForPureCSE):
      (JSC::DFG::CSEPhase::eliminateIrrelevantPhantomChildren):
      (JSC::DFG::CSEPhase::setReplacement):
      (JSC::DFG::CSEPhase::eliminate):
      (JSC::DFG::CSEPhase::performNodeCSE):
      * dfg/DFGCommon.h:
      (JSC::DFG::verboseCompilationEnabled):
      (JSC::DFG::logCompilationChanges):
      (JSC::DFG::shouldDumpGraphAtEachPhase):
      * dfg/DFGConstantFoldingPhase.cpp:
      (JSC::DFG::ConstantFoldingPhase::foldConstants):
      * dfg/DFGFixupPhase.cpp:
      (JSC::DFG::FixupPhase::fixupNode):
      (JSC::DFG::FixupPhase::injectInt32ToDoubleNode):
      * dfg/DFGInPlaceAbstractState.cpp:
      (JSC::DFG::InPlaceAbstractState::initialize):
      (JSC::DFG::InPlaceAbstractState::endBasicBlock):
      (JSC::DFG::InPlaceAbstractState::mergeStateAtTail):
      (JSC::DFG::InPlaceAbstractState::mergeToSuccessors):
      * dfg/DFGJITCompiler.cpp:
      (JSC::DFG::JITCompiler::compileBody):
      (JSC::DFG::JITCompiler::link):
      * dfg/DFGOSRExitCompiler.cpp:
      * dfg/DFGOSRExitCompiler32_64.cpp:
      (JSC::DFG::OSRExitCompiler::compileExit):
      * dfg/DFGOSRExitCompiler64.cpp:
      (JSC::DFG::OSRExitCompiler::compileExit):
      * dfg/DFGOSRExitCompilerCommon.cpp:
      (JSC::DFG::adjustAndJumpToTarget):
      * dfg/DFGPredictionInjectionPhase.cpp:
      (JSC::DFG::PredictionInjectionPhase::run):
      * dfg/DFGPredictionPropagationPhase.cpp:
      (JSC::DFG::PredictionPropagationPhase::run):
      (JSC::DFG::PredictionPropagationPhase::propagate):
      (JSC::DFG::PredictionPropagationPhase::propagateForward):
      (JSC::DFG::PredictionPropagationPhase::propagateBackward):
      (JSC::DFG::PredictionPropagationPhase::doRoundOfDoubleVoting):
      * dfg/DFGScoreBoard.h:
      (JSC::DFG::ScoreBoard::use):
      * dfg/DFGSlowPathGenerator.h:
      (JSC::DFG::SlowPathGenerator::generate):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::terminateSpeculativeExecution):
      (JSC::DFG::SpeculativeJIT::runSlowPathGenerators):
      (JSC::DFG::SpeculativeJIT::dump):
      (JSC::DFG::SpeculativeJIT::compileCurrentBlock):
      (JSC::DFG::SpeculativeJIT::checkGeneratedTypeForToInt32):
      * dfg/DFGSpeculativeJIT.h:
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::fillSpeculateInt32Internal):
      (JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
      (JSC::DFG::SpeculativeJIT::fillSpeculateCell):
      (JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::fillSpeculateInt32Internal):
      (JSC::DFG::SpeculativeJIT::fillSpeculateDouble):
      (JSC::DFG::SpeculativeJIT::fillSpeculateCell):
      (JSC::DFG::SpeculativeJIT::fillSpeculateBoolean):
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGVariableEventStream.cpp:
      (JSC::DFG::VariableEventStream::reconstruct):
      * dfg/DFGVariableEventStream.h:
      (JSC::DFG::VariableEventStream::appendAndLog):
      * dfg/DFGVirtualRegisterAllocationPhase.cpp:
      (JSC::DFG::VirtualRegisterAllocationPhase::run):
      * jit/JIT.cpp:
      (JSC::JIT::privateCompile):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159886 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ecd97b0c
    • mrowe@apple.com's avatar
      <https://webkit.org/b/125027> Update the analytics account used by webkit.org · 8fa12745
      mrowe@apple.com authored
      Switch to a Google Analytics id that's accessible to someone that's involved with the WebKit project.
      
      Reviewed by Sam Weinig.
      
      * footer.inc: Remove the old analytics code.
      * header.inc: Add the new stuff.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fa12745
    • zandobersek@gmail.com's avatar
      Unreviewed build fix for EFL and GTK WK2 builds. · 9918fc41
      zandobersek@gmail.com authored
      * Scripts/generate-forwarding-headers.pl: Add Cocoa to the list of platform prefixes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9918fc41
  3. 29 Nov, 2013 13 commits
    • fpizlo@apple.com's avatar
      FTL IC should nop-fill to make up the difference between the actual IC size... · 74f1e0c5
      fpizlo@apple.com authored
      FTL IC should nop-fill to make up the difference between the actual IC size and the requested patchpoint size
      https://bugs.webkit.org/show_bug.cgi?id=124960
      
      Reviewed by Sam Weinig.
      
      * assembler/LinkBuffer.h:
      (JSC::LinkBuffer::size):
      * assembler/X86Assembler.h:
      (JSC::X86Assembler::fillNops):
      * dfg/DFGDisassembler.cpp:
      (JSC::DFG::Disassembler::dumpHeader):
      * ftl/FTLCompile.cpp:
      (JSC::FTL::generateICFastPath):
      * jit/JITDisassembler.cpp:
      (JSC::JITDisassembler::dumpHeader):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159883 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74f1e0c5
    • commit-queue@webkit.org's avatar
      Fix build warnings in WebKit2 · 65e08ce6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125012
      
      Patch by Tibor Meszaros <mtibor@inf.u-szeged.hu> on 2013-11-29
      Reviewed by Anders Carlsson.
      
      fix unused parameter warnings in the following files:
      
      * Platform/gtk/WorkQueueGtk.cpp:
      (WorkQueue::SocketEventSource::eventCallback):
      * Shared/API/c/WKDeprecatedFunctions.cpp:
      (WKArrayIsMutable):
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::unavailablePluginButtonClicked):
      (WebKit::WebChromeClient::didAddHeaderLayer):
      (WebKit::WebChromeClient::didAddFooterLayer):
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      65e08ce6
    • weinig@apple.com's avatar
      [Cocoa] Add a little template magic to the inline API::Object storage to... · dabfd714
      weinig@apple.com authored
      [Cocoa] Add a little template magic to the inline API::Object storage to remove the need for all the reinterpret_casts
      https://bugs.webkit.org/show_bug.cgi?id=125024
      
      Reviewed by Dan Bernstein.
      
      Introduce API::ObjectStorage which wraps std::aligned_storage and adds some convenience functions
      to reinterpret the data as the corresponding type. Deploy it everywhere we were previously using 
      std::aligned_storage.
      
      * Shared/Cocoa/WKNSArray.mm:
      * Shared/Cocoa/WKNSDictionary.mm:
      * Shared/Cocoa/WKObject.h:
      * UIProcess/API/Cocoa/WKBackForwardList.mm:
      * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm:
      * UIProcess/API/Cocoa/WKNavigationData.mm:
      * UIProcess/API/Cocoa/WKProcessGroup.mm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dabfd714
    • weinig@apple.com's avatar
      Fix crashing API tests. · 7dd3a0e9
      weinig@apple.com authored
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController dealloc]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7dd3a0e9
    • weinig@apple.com's avatar
      Fix some style boo-boos. · c6df4a5d
      weinig@apple.com authored
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController loadDelegate]):
      (-[WKBrowsingContextController setLoadDelegate:]):
      (-[WKBrowsingContextController policyDelegate]):
      (-[WKBrowsingContextController setPolicyDelegate:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6df4a5d
    • weinig@apple.com's avatar
      Fix the iOS build. · a329fd72
      weinig@apple.com authored
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController loadDelegate]):
      (-[WKBrowsingContextController policyDelegate]):
      (-[WKBrowsingContextController setPolicyDelegate:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a329fd72
    • weinig@apple.com's avatar
      [Cocoa] Make WKBrowsingContextController work with WKObject wrapping · 0e131da2
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125022
      
      Reviewed by Dan Bernstein.
      
      * Shared/Cocoa/APIObject.mm:
      (API::Object::newObject):
              
      * Shared/mac/ObjCObjectGraphCoders.mm:
      Add support for WKProcessGroup.
      
      (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
      Replace call to _browsingContextControllerForPageRef: with wrapper.
      
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      Convert from wrapping the C-SPI type to storing the bits of the wrapped object inline.
      
      (-[WKBrowsingContextController dealloc]):
      Add explicit destructor call.
      
      (-[WKBrowsingContextController setLoadDelegate:]):
      (-[WKBrowsingContextController setPolicyDelegate:]):
      Lazily set up the load and policy clients only once a delegate has been set to allow
      continued use of the C-SPI clients for WebKitTestRunner.
      
      (-[WKBrowsingContextController _finishInitialization]):
      Move remaining work that was done in the initialize (setting up the observer) here,
      and have the WebPageProxy call it.
      
      * UIProcess/API/Cocoa/WKBrowsingContextControllerInternal.h:
      (WebKit::wrapper):
      Add wrapper() helper and declare conformance to the WKObject protocol. Remove no longer used
      _initWithPageRef: and _browsingContextControllerForPageRef: helpers.
      
      * UIProcess/API/Cocoa/WKProcessGroup.mm:
      (didNavigateWithNavigationData):
      (didPerformClientRedirect):
      (didPerformServerRedirect):
      (didUpdateHistoryTitle):
      Switch to using wrapper().
      
      * UIProcess/API/ios/WKContentView.mm:
      * UIProcess/API/mac/WKView.mm:
      Stop caching the WKBrowsingContextController, as it no long makes sense since it is the same object
      as the WebPageProxy.
      
      * UIProcess/mac/WebPageProxyMac.mm:
      (WebKit::WebPageProxy::platformInitialize):
      Inform the wrapper that it is safe to finish initialization.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e131da2
    • mitz@apple.com's avatar
      [Cocoa] Add a way to recover from load errors · ec6a0371
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125020
      
      Reviewed by Sam Weinig.
      
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (createErrorWithRecoveryAttempter): Added this helper function. It creates an NSError from
      the given error, adding two keys to the user info dictionary: the context controller under
      the recovery attempter key, and the frame under a private key.
      (didFailProvisionalLoadWithErrorForFrame): Changed to use createErrorWithRecoveryAttempter.
      (didFailLoadWithErrorForFrame): Ditto.
      (-[WKBrowsingContextController attemptRecoveryFromError:]): Implemented this
      WKErrorRecoveryAttempting protocol method by loading the failing URL from the error into the
      frame from the error.
      
      * UIProcess/API/Cocoa/WKErrorRecoveryAttempting.h: Added. Defines a protocol for attempting
      recovery from errors and declares the error user info dictionary key under which an object
      conforming to this protocol may be stored.
      * UIProcess/API/Cocoa/WKErrorRecoveryAttempting.m: Added. Defines
      WKRecoveryAttempterErrorKey.
      
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::loadURL): Added. Sends the LoadURLInFrame message to the page.
      * UIProcess/WebFrameProxy.h:
      
      * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::loadURLInFrame): Added. Loads the URL in the given frame.
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in: Added LoadURLInFrame.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec6a0371
    • mitz@apple.com's avatar
      [Cocoa] Expose loadAlternateHTMLString via the API · 4386e33c
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125019
      
      Reviewed by Sam Weinig.
      
      * UIProcess/API/Cocoa/WKBrowsingContextController.h: Declared new method.
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController loadAlternateHTMLString:baseURL:forUnreachableURL:]): Added.
      Calls WebPageProxy::loadAlternateHTMLString.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4386e33c
    • weinig@apple.com's avatar
      Move API files shared between Mac and iOS to the Cocoa directory · 06c4e291
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125017
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/Cocoa/WKBrowsingContextController.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.h.
      * UIProcess/API/Cocoa/WKBrowsingContextController.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm.
      * UIProcess/API/Cocoa/WKBrowsingContextControllerInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextControllerInternal.h.
      * UIProcess/API/Cocoa/WKBrowsingContextControllerPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextControllerPrivate.h.
      * UIProcess/API/Cocoa/WKBrowsingContextGroup.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroup.h.
      * UIProcess/API/Cocoa/WKBrowsingContextGroup.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroup.mm.
      * UIProcess/API/Cocoa/WKBrowsingContextGroupInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroupInternal.h.
      * UIProcess/API/Cocoa/WKBrowsingContextGroupPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroupPrivate.h.
      * UIProcess/API/Cocoa/WKBrowsingContextLoadDelegate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextLoadDelegate.h.
      * UIProcess/API/Cocoa/WKBrowsingContextPolicyDelegate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h.
      * UIProcess/API/Cocoa/WKConnection.h: Copied from Source/WebKit2/UIProcess/API/mac/WKConnection.h.
      * UIProcess/API/Cocoa/WKConnection.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKConnection.mm.
      * UIProcess/API/Cocoa/WKConnectionInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKConnectionInternal.h.
      * UIProcess/API/Cocoa/WKProcessGroup.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroup.h.
      * UIProcess/API/Cocoa/WKProcessGroup.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroup.mm.
      * UIProcess/API/Cocoa/WKProcessGroupInternal.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroupInternal.h.
      * UIProcess/API/Cocoa/WKProcessGroupPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroupPrivate.h.
      * UIProcess/API/Cocoa/WKTypeRefWrapper.h: Copied from Source/WebKit2/UIProcess/API/mac/WKTypeRefWrapper.h.
      * UIProcess/API/Cocoa/WKTypeRefWrapper.mm: Copied from Source/WebKit2/UIProcess/API/mac/WKTypeRefWrapper.mm.
      * UIProcess/API/Cocoa/WKView.h: Copied from Source/WebKit2/UIProcess/API/mac/WKView.h.
      * UIProcess/API/Cocoa/WKViewPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h.
      * UIProcess/API/Cocoa/WebKit2.h: Copied from Source/WebKit2/UIProcess/API/mac/WebKit2.h.
      * UIProcess/API/mac/WKBrowsingContextController.h: Removed.
      * UIProcess/API/mac/WKBrowsingContextController.mm: Removed.
      * UIProcess/API/mac/WKBrowsingContextControllerInternal.h: Removed.
      * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Removed.
      * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed.
      * UIProcess/API/mac/WKBrowsingContextGroup.mm: Removed.
      * UIProcess/API/mac/WKBrowsingContextGroupInternal.h: Removed.
      * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Removed.
      * UIProcess/API/mac/WKBrowsingContextLoadDelegate.h: Removed.
      * UIProcess/API/mac/WKBrowsingContextPolicyDelegate.h: Removed.
      * UIProcess/API/mac/WKConnection.h: Removed.
      * UIProcess/API/mac/WKConnection.mm: Removed.
      * UIProcess/API/mac/WKConnectionInternal.h: Removed.
      * UIProcess/API/mac/WKProcessGroup.h: Removed.
      * UIProcess/API/mac/WKProcessGroup.mm: Removed.
      * UIProcess/API/mac/WKProcessGroupInternal.h: Removed.
      * UIProcess/API/mac/WKProcessGroupPrivate.h: Removed.
      * UIProcess/API/mac/WKTypeRefWrapper.h: Removed.
      * UIProcess/API/mac/WKTypeRefWrapper.mm: Removed.
      * UIProcess/API/mac/WKView.h: Removed.
      * UIProcess/API/mac/WKViewPrivate.h: Removed.
      * UIProcess/API/mac/WebKit2.h: Removed.
      * WebKit2.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06c4e291
    • commit-queue@webkit.org's avatar
      Use moveDoubleToInts in SpecializedThunkJIT::returnDouble for non-X86 JSVALUE32_64 ports. · 88c9a6dc
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124936
      
      Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-29
      Reviewed by Zoltan Herczeg.
      
      The moveDoubleToInts implementations in ARM, MIPS and SH4 macro assemblers do not clobber
      src FPRegister and are likely to be more efficient than the current generic implementation
      using the stack.
      
      * jit/SpecializedThunkJIT.h:
      (JSC::SpecializedThunkJIT::returnDouble):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88c9a6dc
    • commit-queue@webkit.org's avatar
      check-webkit-style should check for extraneous newline between config.h and primary header. · 8c28d218
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124821
      
      Patch by Gergo Balogh <geryxyz@inf.u-szeged.hu> on 2013-11-29
      Reviewed by Csaba Osztrogonác.
      
      * Scripts/webkitpy/style/checkers/cpp.py:
      (check_include_line):
      * Scripts/webkitpy/style/checkers/cpp_unittest.py:
      (OrderOfIncludesTest.test_check_line_break_after_own_header):
      (OrderOfIncludesTest):
      (OrderOfIncludesTest.test_check_line_break_before_own_header):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159872 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c28d218
    • commit-queue@webkit.org's avatar
      Merge arm and sh4 paths in nativeForGenerator and privateCompileCTINativeCall functions. · 99e3760b
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124892
      
      Patch by Julien Brianceau <jbriance@cisco.com> on 2013-11-29
      Reviewed by Zoltan Herczeg.
      
      * assembler/MacroAssemblerSH4.h:
      (JSC::MacroAssemblerSH4::call): Pick a scratch register instead of getting it as a
      parameter. The sh4 port was the only one to have this call(Address, RegisterID) prototype.
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::privateCompileCTINativeCall): Use argumentGPRx and merge arm and sh4 paths.
      * jit/ThunkGenerators.cpp:
      (JSC::nativeForGenerator): Use argumentGPRx and merge arm and sh4 paths.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99e3760b