1. 12 Nov, 2013 8 commits
    • timothy_horton@apple.com's avatar
      Remote Layer Tree: Assertions during layer flushing after replaceSublayer() · 744bfb9b
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124194
      
      Reviewed by Anders Carlsson.
      
      * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
      (PlatformCALayerRemote::replaceSublayer):
      Only remove the old layer from the children array once (via removeFromSuperlayer).
      Update the superlayer backpointer on the new layer.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      744bfb9b
    • andersca@apple.com's avatar
      Add ImmutableArray::createStringArray · 59e56558
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124210
      
      Reviewed by Andreas Kling.
      
      Creating an ImmutableArray of WebStrings is a common operation, so add a
      helper function to ImmutableArray that does this from a Vector of Strings.
      
      * Shared/ImmutableArray.cpp:
      (WebKit::ImmutableArray::createStringArray):
      * Shared/ImmutableArray.h:
      * Shared/ImmutableDictionary.cpp:
      (WebKit::ImmutableDictionary::keys):
      * Shared/WebOpenPanelParameters.cpp:
      (WebKit::WebOpenPanelParameters::acceptMIMETypes):
      (WebKit::WebOpenPanelParameters::selectedFileNames):
      * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
      (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
      * UIProcess/WebCookieManagerProxy.cpp:
      (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies):
      * UIProcess/WebMediaCacheManagerProxy.cpp:
      (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache):
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
      (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159123 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      59e56558
    • ossy@webkit.org's avatar
      One more URTBF after r159108. · 92b18b1a
      ossy@webkit.org authored
      * GNUmakefile.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159118 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      92b18b1a
    • andersca@apple.com's avatar
      Begin cleaning up handling of ImmutableArray vectors · 188fa89f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124208
      
      Reviewed by Andreas Kling.
      
      Use range based for to iterate the loops. Use reserveInitialCapacity + uncheckedAppend
      when appending vector elements.
      
      * Shared/SecurityOriginData.cpp:
      (WebKit::performAPICallbackWithSecurityOriginDataVector):
      * Shared/WebArchive.cpp:
      (WebKit::WebArchive::subresources):
      (WebKit::WebArchive::subframeArchives):
      * Shared/WebContextMenuItem.cpp:
      (WebKit::WebContextMenuItem::submenuItemsAsImmutableArray):
      * Shared/WebOpenPanelParameters.cpp:
      (WebKit::WebOpenPanelParameters::acceptMIMETypes):
      (WebKit::WebOpenPanelParameters::selectedFileNames):
      * UIProcess/API/C/mac/WKContextPrivateMac.mm:
      (WKContextGetInfoForInstalledPlugIns):
      * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
      (WebKit::WebPluginSiteDataManager::didGetSitesWithData):
      * UIProcess/StatisticsRequest.cpp:
      (WebKit::StatisticsRequest::completedRequest):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::pluginInfoStoreDidLoadPlugins):
      * UIProcess/WebCookieManagerProxy.cpp:
      (WebKit::WebCookieManagerProxy::didGetHostnamesWithCookies):
      * UIProcess/WebDatabaseManagerProxy.cpp:
      (WebKit::WebDatabaseManagerProxy::didGetDatabasesByOrigin):
      (WebKit::WebDatabaseManagerProxy::didGetDatabaseOrigins):
      * UIProcess/WebMediaCacheManagerProxy.cpp:
      (WebKit::WebMediaCacheManagerProxy::didGetHostnamesWithMediaCache):
      * UIProcess/WebPageContextMenuClient.cpp:
      (WebKit::WebPageContextMenuClient::showContextMenu):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::relatedPages):
      (WebKit::WebPageProxy::didFindStringMatches):
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::originsWithApplicationCache):
      * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
      (WebKit::InjectedBundleBackForwardListItem::children):
      * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
      (WebKit::InjectedBundlePageFormClient::didAssociateFormControls):
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
      (WebKit::InjectedBundlePageLoaderClient::featuresUsedInPage):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::trackedRepaintRects):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      188fa89f
    • ossy@webkit.org's avatar
      One more URTBF after r159108. · 28570381
      ossy@webkit.org authored
      * CMakeLists.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159112 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      28570381
    • ossy@webkit.org's avatar
      URTBF after r159108. · de95dc1f
      ossy@webkit.org authored
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de95dc1f
    • andersca@apple.com's avatar
      Move StringReference to Platform/IPC · 96fe6840
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124203
      
      Reviewed by Antti Koivisto.
      
      * Platform/IPC/StringReference.cpp: Renamed from Source/WebKit2/Platform/CoreIPC/StringReference.cpp.
      (CoreIPC::StringReference::toString):
      (CoreIPC::StringReference::encode):
      (CoreIPC::StringReference::decode):
      (CoreIPC::StringReference::Hash::hash):
      * Platform/IPC/StringReference.h: Renamed from Source/WebKit2/Platform/CoreIPC/StringReference.h.
      (CoreIPC::StringReference::StringReference):
      (CoreIPC::StringReference::isEmpty):
      (CoreIPC::StringReference::size):
      (CoreIPC::StringReference::data):
      (CoreIPC::StringReference::operator==):
      (CoreIPC::StringReference::Hash::equal):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      96fe6840
    • timothy_horton@apple.com's avatar
      Remote Layer Tree: Sporadic memory corruption during painting · dacf1fd2
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124191
      
      Reviewed by Brady Eidson.
      
      Fix a logic error (flipped the logic, didn't flip the operator)
      made in the last version of r158982 that caused some crashes because
      it allowed us to overrun the end of cgPaintingRects.
      
      * Shared/mac/RemoteLayerBackingStore.mm:
      (RemoteLayerBackingStore::drawInContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dacf1fd2
  2. 11 Nov, 2013 13 commits
    • ossy@webkit.org's avatar
      Unreviewed, rolling out r159088. · edbbfcd9
      ossy@webkit.org authored
      http://trac.webkit.org/changeset/159088
      https://bugs.webkit.org/show_bug.cgi?id=124187
      
      It broke the EFL build, because it removed a used function
      (rs=thorton) (Requested by Ossy_night on #webkit).
      
      Patch by Commit Queue <commit-queue@webkit.org> on 2013-11-11
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::urlAtProcessExit):
      (WebKit::WebPageProxy::loadStateAtProcessExit):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      edbbfcd9
    • ossy@webkit.org's avatar
      URTBF after r159077 to make GTK build happy. · 0def2e0d
      ossy@webkit.org authored
      * GNUmakefile.list.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0def2e0d
    • gns@gnome.org's avatar
      REGRESSION(r158976): Web Inspector: unable to start docked or dock · 889fdd3a
      gns@gnome.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124148
      
      Reviewed by Timothy Hatcher.
      
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::canAttach): check for a level that is greater than 1 rather than 0
      to deny attachment, since 1 is the first level of inspectors.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      889fdd3a
    • andersca@apple.com's avatar
      FrameFilter can just be an std::function instead · 54b12055
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124176
      
      Reviewed by Tim Horton.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create):
      * loader/archive/cf/LegacyWebArchive.h:
      
      Source/WebKit/mac:
      
      * DOM/WebDOMOperations.mm:
      (-[DOMNode webArchiveByFilteringSubframes:]):
      
      Source/WebKit2:
      
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::webArchiveData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      54b12055
    • andersca@apple.com's avatar
      Remove unused Qt cruft · 6f9ac118
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124174
      
      Reviewed by Tim Horton.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      * UIProcess/WebPageProxy.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f9ac118
    • andersca@apple.com's avatar
      REGRESSION (r158927): curly-braces-escaping.html is broken on Mac WebKit2 · d34c02cc
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124164
      
      Reviewed by Alexey Proskuryakov.
      
      Back out the change to use NSSecureCoding for encoding/decoding NSURLRequest and
      NSURLResponse objects; turns out the NSURL encoding/decoding doesn't preserve the raw URL bytes.
      
      * Shared/mac/WebCoreArgumentCodersMac.mm:
      (CoreIPC::encodePlatformData):
      (CoreIPC::decodePlatformData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d34c02cc
    • ryuan.choi@samsung.com's avatar
      Unreviewed build fix on CMake Based port since r159077. · 2dfecd17
      ryuan.choi@samsung.com authored
      * CMakeLists.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2dfecd17
    • timothy_horton@apple.com's avatar
      Remote Layer Tree: Implement Page Overlays · d808c0da
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124165
      <rdar://problem/15199056>
      
      Reviewed by Anders Carlsson.
      
      Implement page overlays, very similar to how they work in TiledCoreAnimationDrawingArea,
      but manipulating the PlatformCALayer tree instead of the CALayer tree directly.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
      (WebKit::RemoteLayerTreeContext::outOfTreeLayerWasAdded):
      (WebKit::RemoteLayerTreeContext::outOfTreeLayerWillBeRemoved):
      (WebKit::RemoteLayerTreeContext::flushLayers):
      Add a list of out-of-tree GraphicsLayers which are flushed in addition
      to the page's GraphicsLayer tree, and functions to manipulate this list.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      Make RemoteLayerTreeDrawingArea a GraphicsLayerClient, so we can get callbacks
      from the GraphicsLayers that drive our page overlays.
      Override the relevant page overlay functions.
      Add storage for the root layer, view size, and a map of PageOverlay->GraphicsLayer.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::setRootCompositingLayer):
      Store the root GraphicsLayer for later use.
      
      (WebKit::RemoteLayerTreeDrawingArea::updateGeometry):
      Update the size of the page overlays when the DrawingArea's geometry changes.
      
      (WebKit::RemoteLayerTreeDrawingArea::updatePreferences):
      Update the page overlay settings when necessary.
      
      (WebKit::RemoteLayerTreeDrawingArea::didInstallPageOverlay):
      Create a GraphicsLayer for our page overlay, set it up, and parent it.
      Inform the RemoteLayerTreeContext that it will need to flush this GraphicsLayer,
      since it's not a part of the page's GraphicsLayer tree.
      
      (WebKit::RemoteLayerTreeDrawingArea::didUninstallPageOverlay):
      Tear down our page overlay's GraphicsLayer.
      
      (WebKit::RemoteLayerTreeDrawingArea::setPageOverlayNeedsDisplay):
      (WebKit::RemoteLayerTreeDrawingArea::setPageOverlayOpacity):
      (WebKit::RemoteLayerTreeDrawingArea::paintContents):
      (WebKit::RemoteLayerTreeDrawingArea::deviceScaleFactor):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d808c0da
    • andersca@apple.com's avatar
      Add a FrameLoadState object and begin moving loading related members from WebFrameProxy · 016f6b4c
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124163
      
      Reviewed by Beth Dakin.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetFrameLoadState):
      * UIProcess/FrameLoadState.cpp: Added.
      (WebKit::FrameLoadState::FrameLoadState):
      (WebKit::FrameLoadState::~FrameLoadState):
      * UIProcess/FrameLoadState.h: Added.
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::WebFrameProxy):
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      (WebKit::WebFrameProxy::didReceiveServerRedirectForProvisionalLoad):
      (WebKit::WebFrameProxy::didFailProvisionalLoad):
      (WebKit::WebFrameProxy::didCommitLoad):
      (WebKit::WebFrameProxy::didFinishLoad):
      (WebKit::WebFrameProxy::didFailLoad):
      (WebKit::WebFrameProxy::didSameDocumentNavigation):
      (WebKit::WebFrameProxy::setUnreachableURL):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::frameLoadState):
      (WebKit::WebFrameProxy::loadState):
      (WebKit::WebFrameProxy::url):
      (WebKit::WebFrameProxy::provisionalURL):
      (WebKit::WebFrameProxy::unreachableURL):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::activeURL):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::loadStateAtProcessExit):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      016f6b4c
    • commit-queue@webkit.org's avatar
      Remove #include from test input of the *Messages.in processing scripts. · fb17ee13
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123563
      
      Patch by Gergo Balogh <geryxyz@inf.u-szeged.hu> on 2013-11-11
      Reviewed by Darin Adler.
      
      * Scripts/webkit2/messages_unittest.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb17ee13
    • andersca@apple.com's avatar
      Remove block based APIs from the WebKit2 C API · 57910a8c
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124157
      
      Reviewed by Sam Weinig.
      
      Source/WebKit2:
      
      Remove most of the block based C APIs from WebKit2. We want to discourage people from using
      them since any C API "objects" captured by blocks won't be implicitly retained which
      can lead to dangling pointer bugs.
      
      * UIProcess/API/C/WKDatabaseManager.cpp:
      * UIProcess/API/C/WKDatabaseManager.h:
      * UIProcess/API/C/WKFrame.cpp:
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPagePrivate.h:
      
      Tools:
      
      Update for WK2 changes.
      
      * MiniBrowser/mac/WK2BrowserWindowController.m:
      (dumpSource):
      (-[WK2BrowserWindowController dumpSourceToConsole:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57910a8c
    • carlosgc@webkit.org's avatar
      [GTK] Crash when printing via javascript in WebKit2 · 0d0a26d9
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124043
      
      Reviewed by Martin Robinson.
      
      It happens because the print operation when started by the
      WebProcess due to a DOM operation is supposed to be synchronous
      and our print operation is always asynchronous. This is currently
      handled only in the UI process because other ports print
      synchronously in the WebProcess. In the GTK+ port we need to
      notify the WebProcess that the print operation should run
      synchronously when request by a DOM operation. Together with the
      print settings and page setup we now send a print mode that can be
      sync or async. When printing in sync mode we run a nested main loop
      for the print operation, making sure that print sources have a
      higher priority.
      
      * Shared/PrintInfo.cpp:
      (WebKit::PrintInfo::encode): Encode the print mode.
      (WebKit::PrintInfo::decode): Decode the print mode.
      * Shared/PrintInfo.h: Add PrintMode enum.
      * Shared/gtk/PrintInfoGtk.cpp:
      (WebKit::PrintInfo::PrintInfo): Initialize print mode.
      * UIProcess/API/gtk/WebKitPrintOperation.cpp:
      (drawPagesForPrintingCompleted): Do not call endPrinting() when
      printing synchronously because WebPageProxy already calls it right
      after sending the message to the WebProcess.
      (webkitPrintOperationPrintPagesForFrame): Create the PrintInfo
      struct with a print mode.
      (webkitPrintOperationSetPrintMode): Helper private function to set
      the print mode of the print operation.
      * UIProcess/API/gtk/WebKitPrintOperationPrivate.h:
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkitWebViewPrintFrame): Set sync print mode when printing due
      to a UIClient request.
      * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp:
      (WebKit::PrintPagesData::PrintPagesData): Create a main loop when
      printing synchronously.
      (WebKit::WebPrintOperationGtk::WebPrintOperationGtk): Initialize
      print mode.
      (WebKit::WebPrintOperationGtk::printPagesIdleDone): Finish the
      nested main loop when printing synchronously.
      (WebKit::WebPrintOperationGtk::print): Run a nested main loop when
      printing synchronously.
      * WebProcess/WebPage/gtk/WebPrintOperationGtk.h:
      (WebKit::WebPrintOperationGtk::printMode): Return the print mode.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d0a26d9
    • carlosgc@webkit.org's avatar
      [GTK] [WebKit2] Crash when printing to a file via javascript · 9aba61f6
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=122801
      
      Reviewed by Martin Robinson.
      
      This crash is caused by a GTK+ bug, but we can work around it by
      ensuring the print dialog is always shown with a valid
      GtkPrintSettings object.
      
      * UIProcess/API/gtk/WebKitPrintOperation.cpp:
      (webkitPrintOperationRunDialog):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9aba61f6
  3. 09 Nov, 2013 4 commits
    • mitz@apple.com's avatar
      Use createCFURLFromBuffer when converting a String to a CFURL · 5a8524b6
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124113
      
      Reviewed by Anders Carlsson.
      
      * Shared/API/c/cf/WKURLCF.mm:
      (WKURLCopyCFURL): Replaced some code with a call to createCFURLFromBuffer(), which does the
      same thing.
      
      * Shared/Cocoa/WKNSURLExtras.h: Added.
      * Shared/Cocoa/WKNSURLExtras.mm: Added.
      (+[NSURL _web_URLWithWTFString:relativeToURL:]): Added. Returns nil for the null String,
      otherwise returns the result of createCFURLFromBuffer().
      
      * UIProcess/API/Cocoa/WKBackForwardListItem.mm:
      (-[WKBackForwardListItem URL]): Changed to use +_web_URLWithWTFString:relativeToURL:.
      (-[WKBackForwardListItem originalURL]): Ditto.
      
      * UIProcess/API/Cocoa/WKNavigationData.mm:
      (-[WKNavigationData destinationURL]): Ditto.
      
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      (-[WKBrowsingContextController unreachableURL]): Ditto.
      
      * WebKit2.xcodeproj/project.pbxproj: Added references to new files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159016 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a8524b6
    • andersca@apple.com's avatar
      Encode form data using the KeyedEncoder · 0952fca6
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124107
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      * platform/KeyedCoding.h:
      (WebCore::KeyedEncoder::encodeEnum):
      * platform/network/FormData.cpp:
      (WebCore::encodeElement):
      (WebCore::FormData::encode):
      * platform/network/FormData.h:
      
      Source/WebKit2:
      
      * Shared/cf/KeyedEncoder.cpp:
      (WebKit::KeyedEncoder::encodeBool):
      (WebKit::KeyedEncoder::encodeDouble):
      * Shared/cf/KeyedEncoder.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0952fca6
    • andersca@apple.com's avatar
      Remove an unused file. · f9ab015b
      andersca@apple.com authored
      Rubber-stamped by Andreas Kling.
      
      * WebProcess/WebPage/gtk/ChunkedUpdateDrawingAreaGtk.cpp: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159003 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9ab015b
    • paroga@webkit.org's avatar
      Move RunLoop from WebCore to WTF · f8108ef5
      paroga@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=116606
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * PlatformBlackBerry.cmake:
      * PlatformEfl.cmake:
      * PlatformGTK.cmake:
      * PlatformWin.cmake:
      * WebCore.exp.in:
      * WebCore.vcxproj/WebCore.vcxproj:
      * WebCore.xcodeproj/project.pbxproj:
      * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
      * platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h:
      
      Source/WebKit/mac:
      
      * Carbon/CarbonWindowAdapter.mm:
      (+[CarbonWindowAdapter initialize]):
      * History/WebBackForwardList.mm:
      (+[WebBackForwardList initialize]):
      * History/WebHistoryItem.mm:
      (+[WebHistoryItem initialize]):
      * Misc/WebCache.mm:
      (+[WebCache initialize]):
      * Misc/WebElementDictionary.mm:
      (+[WebElementDictionary initialize]):
      * Misc/WebIconDatabase.mm:
      (+[WebIconDatabase initialize]):
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (+[WebHostedNetscapePluginView initialize]):
      * Plugins/WebBaseNetscapePluginView.mm:
      * Plugins/WebBasePluginPackage.mm:
      * Plugins/WebNetscapePluginView.mm:
      (+[WebNetscapePluginView initialize]):
      * WebCoreSupport/WebEditorClient.mm:
      (+[WebUndoStep initialize]):
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebView/WebArchive.mm:
      (+[WebArchivePrivate initialize]):
      * WebView/WebDataSource.mm:
      (+[WebDataSource initialize]):
      * WebView/WebHTMLView.mm:
      (+[WebHTMLViewPrivate initialize]):
      (+[WebHTMLView initialize]):
      * WebView/WebPreferences.mm:
      (+[WebPreferences initialize]):
      * WebView/WebResource.mm:
      (+[WebResourcePrivate initialize]):
      * WebView/WebTextIterator.mm:
      (+[WebTextIteratorPrivate initialize]):
      * WebView/WebView.mm:
      (+[WebView initialize]):
      * WebView/WebViewData.mm:
      (+[WebViewPrivate initialize]):
      
      Source/WebKit2:
      
      * DatabaseProcess/DatabaseProcess.cpp:
      * DatabaseProcess/DatabaseToWebProcessConnection.cpp:
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      * NetworkProcess/NetworkProcess.cpp:
      * NetworkProcess/NetworkProcess.h:
      * NetworkProcess/NetworkResourceLoader.h:
      * NetworkProcess/mac/DiskCacheMonitor.h:
      * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
      * Platform/CoreIPC/Connection.cpp:
      * Platform/CoreIPC/Connection.h:
      * Platform/CoreIPC/mac/ConnectionMac.cpp:
      * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
      * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
      * PluginProcess/PluginControllerProxy.h:
      * PluginProcess/PluginProcess.cpp:
      * PluginProcess/PluginProcess.h:
      * PluginProcess/WebProcessConnection.cpp:
      * PluginProcess/unix/PluginProcessMainUnix.cpp:
      * Shared/ChildProcess.cpp:
      * Shared/ChildProcess.h:
      * Shared/ChildProcessProxy.cpp:
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h:
      * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
      * Shared/Plugins/NPObjectProxy.cpp:
      * Shared/WebKit2Initialize.cpp:
      (WebKit::InitializeWebKit2):
      * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
      * UIProcess/API/mac/FindIndicatorWindow.h:
      * UIProcess/API/mac/WKPrintingView.mm:
      * UIProcess/API/mac/WKView.mm:
      * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
      * UIProcess/DrawingAreaProxyImpl.h:
      * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
      * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      * UIProcess/Network/NetworkProcessProxy.cpp:
      * UIProcess/Plugins/PluginProcessProxy.cpp:
      * UIProcess/ResponsivenessTimer.cpp:
      * UIProcess/ResponsivenessTimer.h:
      * UIProcess/VisitedLinkProvider.h:
      * UIProcess/WebContext.cpp:
      * UIProcess/WebProcessProxy.cpp:
      * WebProcess/Databases/WebToDatabaseProcessConnection.cpp:
      * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
      * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
      * WebProcess/Network/WebResourceLoadScheduler.h:
      * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
      * WebProcess/Plugins/Netscape/NetscapePlugin.h:
      * WebProcess/Plugins/Netscape/NetscapePluginStream.h:
      * WebProcess/Plugins/PluginView.h:
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
      * WebProcess/WebPage/DrawingAreaImpl.h:
      * WebProcess/WebPage/EventDispatcher.cpp:
      * WebProcess/WebPage/PageOverlay.h:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebProcess.cpp:
      * WebProcess/efl/WebProcessMainEfl.cpp:
      * WebProcess/gtk/WebProcessMainGtk.cpp:
      
      Source/WTF:
      
      With this change RunLoop can be used in JavaScriptCore too.
      
      * GNUmakefile.list.am:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/PlatformBlackBerry.cmake:
      * wtf/PlatformEfl.cmake:
      * wtf/PlatformGTK.cmake:
      * wtf/PlatformWin.cmake:
      * wtf/RunLoop.cpp: Renamed from Source/WebCore/platform/RunLoop.cpp.
      (WTF::RunLoop::Holder::Holder):
      (WTF::RunLoop::Holder::runLoop):
      (WTF::RunLoop::initializeMainRunLoop):
      (WTF::RunLoop::current):
      (WTF::RunLoop::main):
      (WTF::RunLoop::isMain):
      (WTF::RunLoop::performWork):
      (WTF::RunLoop::dispatch):
      * wtf/RunLoop.h: Renamed from Source/WebCore/platform/RunLoop.h.
      (WTF::RunLoop::TimerBase::startRepeating):
      (WTF::RunLoop::TimerBase::startOneShot):
      (WTF::RunLoop::TimerBase::isRepeating):
      (WTF::RunLoop::Timer::Timer):
      (WTF::RunLoop::Timer::fired):
      * wtf/blackberry/RunLoopBlackBerry.cpp: Renamed from Source/WebCore/platform/blackberry/RunLoopBlackBerry.cpp.
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::wakeUp):
      * wtf/cf/RunLoopCF.cpp: Renamed from Source/WebCore/platform/cf/RunLoopCF.cpp.
      (WTF::RunLoop::performWork):
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::runForDuration):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::run):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::TimerBase::timerFired):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      * wtf/efl/RunLoopEfl.cpp: Renamed from Source/WebCore/platform/efl/RunLoopEfl.cpp.
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::run):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::wakeUpEvent):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::timerFired):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      * wtf/gtk/RunLoopGtk.cpp: Renamed from Source/WebCore/platform/gtk/RunLoopGtk.cpp.
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::run):
      (WTF::RunLoop::innermostLoop):
      (WTF::RunLoop::pushNestedMainLoop):
      (WTF::RunLoop::popNestedMainLoop):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::queueWork):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::clearTimerSource):
      (WTF::RunLoop::TimerBase::timerFiredCallback):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      * wtf/win/RunLoopWin.cpp: Renamed from Source/WebCore/platform/win/RunLoopWin.cpp.
      (WTF::RunLoop::RunLoopWndProc):
      (WTF::RunLoop::wndProc):
      (WTF::RunLoop::run):
      (WTF::RunLoop::stop):
      (WTF::RunLoop::registerRunLoopMessageWindowClass):
      (WTF::RunLoop::RunLoop):
      (WTF::RunLoop::~RunLoop):
      (WTF::RunLoop::wakeUp):
      (WTF::RunLoop::TimerBase::timerFired):
      (WTF::generateTimerID):
      (WTF::RunLoop::TimerBase::TimerBase):
      (WTF::RunLoop::TimerBase::~TimerBase):
      (WTF::RunLoop::TimerBase::start):
      (WTF::RunLoop::TimerBase::stop):
      (WTF::RunLoop::TimerBase::isActive):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8108ef5
  4. 08 Nov, 2013 15 commits
    • beidson@apple.com's avatar
      Merge IDBDatabaseBackendInterface and IDBDatabaseBackendImpl · 7b14f470
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124088
      
      Source/WebCore:
      
      Reviewed by Tim Horton.
      
      Source/WebKit2:
      
      Reviewed by Tim Horton.
      
      This abstraction is no longer meaningful in its current form in WebCore.
      The current groundwork for the WK2 DatabaseProcess relied on this abstraction,
      but that will be reworked in a future patch.
      
      * DatabaseProcess/IndexedDB/DatabaseProcessIDBDatabaseBackend.h:
      
      * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
      (WebKit::WebIDBFactoryBackend::maybeCreateTransactionBackend):
      (WebKit::WebIDBFactoryBackend::createCursorBackend):
      * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
      
      * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.cpp:
      (WebKit::WebProcessIDBDatabaseBackend::put):
      (WebKit::WebProcessIDBDatabaseBackend::openCursor):
      * WebProcess/Databases/IndexedDB/WebProcessIDBDatabaseBackend.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b14f470
    • ljaehun.lim@samsung.com's avatar
      Unreviewed build fix after r158984. · 5e984d29
      ljaehun.lim@samsung.com authored
      No needs to include "KeyedEncoder.h".
      WebKit/Source/WebKit2/WebProcess/WebPage/WebBackForwardListProxy.cpp:31:26: fatal error: KeyedEncoder.h: No such file or directory
      
      * WebProcess/WebPage/WebBackForwardListProxy.cpp: Removed #include line.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158990 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e984d29
    • andersca@apple.com's avatar
      Implement encoding of arrays of objects · 01434c4e
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124091
      
      Reviewed by Beth Dakin.
      
      Source/WebCore:
      
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::encodeBackForwardTreeNode):
      Encode the rest of the members.
      
      * platform/KeyedCoding.h:
      (WebCore::KeyedEncoder::encodeObjects):
      Call beginArray, then beginArrayElement/endArrayElement for every element and lastly endArray.
      
      Source/WebKit2:
      
      Add a new array stack and push and pop from it accordingly.
      
      * Shared/cf/KeyedEncoder.cpp:
      (WebKit::KeyedEncoder::~KeyedEncoder):
      (WebKit::KeyedEncoder::encodeBytes):
      (WebKit::KeyedEncoder::encodeUInt32):
      (WebKit::KeyedEncoder::encodeInt32):
      (WebKit::KeyedEncoder::encodeInt64):
      (WebKit::KeyedEncoder::encodeFloat):
      (WebKit::KeyedEncoder::beginArray):
      (WebKit::KeyedEncoder::beginArrayElement):
      (WebKit::KeyedEncoder::endArrayElement):
      (WebKit::KeyedEncoder::endArray):
      * Shared/cf/KeyedEncoder.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      01434c4e
    • timothy_horton@apple.com's avatar
      Remote Layer Tree: RemoteLayerBackingStore partial repaint is broken for the tile cache · c016bd71
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123944
      
      Reviewed by Simon Fraser.
      
      Ensure that the tile cache retrieves repaint rects from the tile layer,
      not from the tiled backing layer.
      
      Rework RemoteLayerBackingStore painting to fix some rounding issues
      that would cause pixel cracks upon repaint, and to speed it up a bit.
      
      * Shared/mac/RemoteLayerBackingStore.h:
      Redefine RepaintRectList because we can't include WebLayer.h here yet.
      Remove createBackingStore, which was never implemented.
      Remove mapToContentCoordinates, because we don't need it on Mac.
      
      (WebKit::RemoteLayerBackingStore::paintingRects): Added.
      
      * Shared/mac/RemoteLayerBackingStore.mm:
      (RemoteLayerBackingStore::setNeedsDisplay):
      (RemoteLayerBackingStore::display):
      Stop using mapToContentCoordinates.
      
      (RemoteLayerBackingStore::drawInContext):
      Use clipping instead of painting the image multiple times.
      Never repaint more than the dirty region's bounds.
      Don't waste time with all of the drawNativeImage code, just use CG.
      Unindent the switch's cases.
      Store the rects we're painting so that enumerateRectsBeingDrawn can get them.
      Pixel-snap the rects we're painting.
      Clip the context before going to paint.
      
      * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
      (PlatformCALayerRemote::enumerateRectsBeingDrawn):
      * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
      Retrieve the rects currently being painted from our backing store, and
      transform them (mostly) according to the CTM, to match the transformation
      that will have occurred underneath wkCALayerEnumerateRectsBeingDrawnWithBlock.
      
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/mac/PlatformCALayerMac.h:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      (PlatformCALayerMac::enumerateRectsBeingDrawn):
      Allow the PlatformCALayer to decide how to enumerate rects to paint.
      
      * WebCore.exp.in:
      * platform/graphics/mac/WebLayer.h:
      Add RepaintRectList, remove some unnecessary WebCore::s.
      
      * platform/graphics/mac/WebLayer.mm:
      (WebCore::collectRectsToPaint):
      Factor collectRectsToPaint out; it just grabs the rects from
      the layer and makes the decision whether to repaint the bounds
      of the dirty region or just the subregions.
      
      Move calls to collectRectsToPaint() to callers of drawLayerContents(),
      so that TileController can collect rects from the appropriate source
      (the Tile layer) and other layers just continue grabbing them from
      their relevant layers.
      
      Make sure that the list that comes from collectRectsToPaint() always
      has at least one rect in it (appending the clip bounds if we don't
      want to repaint subregions) so we can simplify logic in drawLayerContents.
      
      (WebCore::drawLayerContents):
      Remove code to support CompositingCoordinatesBottomUp, as it's only
      used on Windows, so this Mac-specific code doesn't need to support it.
      
      Simplify logic given that dirtyRects will always be non-empty.
      
      (-[WebLayer drawInContext:]):
      (-[WebSimpleLayer setNeedsDisplayInRect:]):
      * platform/graphics/ca/mac/TileController.mm:
      (WebCore::TileController::platformCALayerPaintContents):
      Adopt collectRectsToPaint.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c016bd71
    • andersca@apple.com's avatar
      Implement more KeyedEncoder functionality · 955aabc0
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124089
      
      Reviewed by Beth Dakin.
      
      Source/WebCore:
      
      * bindings/js/SerializedScriptValue.h:
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::encodeBackForwardTreeNode):
      * platform/KeyedCoding.h:
      (WebCore::KeyedEncoder::encodeConditionalObject):
      
      Source/WebKit2:
      
      * Shared/cf/KeyedEncoder.cpp:
      (WebKit::KeyedEncoder::encodeBytes):
      (WebKit::KeyedEncoder::encodeInt32):
      (WebKit::KeyedEncoder::encodeFloat):
      * Shared/cf/KeyedEncoder.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158980 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      955aabc0
    • andersca@apple.com's avatar
      KeyedEncoder should be able to encoder objects · d66ca8b7
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124085
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::encodeBackForwardTree):
      Encode the root object.
      
      (WebCore::HistoryItem::encodeBackForwardTreeNode):
      Encode the target.
      
      * history/HistoryItem.h:
      Add new members.
      
      * platform/KeyedCoding.h:
      (WebCore::KeyedEncoder::encodeObject):
      Call beginObject, call the functor and then call endObject().
      
      Source/WebKit2:
      
      Add a dictionary stack to KeyedEncoder that's pushed and popped by
      beginObject/endObject.
      
      * Shared/cf/KeyedEncoder.cpp:
      (WebKit::KeyedEncoder::KeyedEncoder):
      (WebKit::KeyedEncoder::~KeyedEncoder):
      (WebKit::KeyedEncoder::encodeUInt32):
      (WebKit::KeyedEncoder::encodeString):
      (WebKit::KeyedEncoder::beginObject):
      (WebKit::KeyedEncoder::endObject):
      * Shared/cf/KeyedEncoder.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158978 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d66ca8b7
    • achicu@adobe.com's avatar
      Web Inspector: It should be possible to debug the Inspector code · 6fc29267
      achicu@adobe.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124065
      
      Reviewed by Timothy Hatcher.
      
      Source/WebKit2:
      
      When the script is paused, the debugger will pause all the pages in the same PageGroup.
      All the Inspector windows were created in the same PageGroup, so pausing one debugger
      would stop the other too.
      
      Added WebInspectorPageGroups to manage the PageGroups created for the Inspectors.
      The WebInspectors will now use the inspection "level" to figure out which PageGroup to use.
      The inspector that debugs the main page will use "__WebInspectorPageGroupLevel1__",
      the second inspector (that debugs the first inspector) will use "__WebInspectorPageGroupLevel2__" ...
      
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorPageGroups::shared):
      (WebKit::WebInspectorPageGroups::inspectorLevel):
      (WebKit::WebInspectorPageGroups::isInspectorPageGroup):
      (WebKit::WebInspectorPageGroups::inspectorPageGroupLevel):
      (WebKit::WebInspectorPageGroups::inspectorPageGroupForLevel):
      (WebKit::WebInspectorPageGroups::createInspectorPageGroup):
      (WebKit::WebInspectorProxy::WebInspectorProxy):
      (WebKit::WebInspectorProxy::inspectorPageGroup):
      (WebKit::WebInspectorProxy::isInspectorPage):
      (WebKit::WebInspectorProxy::canAttach):
      * UIProcess/WebInspectorProxy.h:
      
      LayoutTests:
      
      Added test to check that a second inspector window can be used to debug the first one.
      
      * inspector-protocol/debugger/nested-inspectors-expected.txt: Added.
      * inspector-protocol/debugger/nested-inspectors.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158976 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6fc29267
    • andersca@apple.com's avatar
      Begin stubbing out a KeyedEncoder class in WebCore · 0a62cead
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124079
      
      Reviewed by Sam Weinig.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      Add symbol needed by WebCore.
      
      * WebCore.xcodeproj/project.pbxproj:
      Add new header file.
      
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::encodeBackForwardTree):
      * history/HistoryItem.h:
      Add an encodeBackForwardTree overload that takes a KeyedEncoder object. Encode the version.
      
      * platform/KeyedCoding.h:
      Add a KeyedEncoder class that just has a single encodeUInt32 member function for now.
      
      Source/WebKit2:
      
      * Shared/KeyedEncoder.h: Removed.
      * Shared/cf/KeyedCodingValueCF.cpp: Removed.
      * Shared/cf/KeyedEncoder.cpp: Added.
      Remove old keyed encoders.
      
      (WebKit::createDictionary):
      Helper function to create a mutable dictionary.
      (WebKit::KeyedEncoder::KeyedEncoder):
      Create the root dictionary.
      
      (WebKit::KeyedEncoder::encodeUInt32):
      Create a CFNumberRef and add it to the dictionary.
      
      * Shared/cf/KeyedEncoder.h: Added.
      * WebKit2.xcodeproj/project.pbxproj:
      Add new files.
      
      * WebProcess/WebPage/WebBackForwardListProxy.cpp:
      (WebKit::updateBackForwardItem):
      Create a KeyedEncoder and encode the history tree.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a62cead
    • beidson@apple.com's avatar
      Merge IDBTransactionBackendInterface and IDBTransactionBackendImpl · 37036791
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124077
      
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      The abstraction is no longer needed.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * WebCore.xcodeproj/project.pbxproj:
      
      * Modules/indexeddb/IDBTransactionBackendInterface.h: Removed.
      
      * Modules/indexeddb/IDBTransactionBackend.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.cpp.
      * Modules/indexeddb/IDBTransactionBackend.h: Renamed from Source/WebCore/Modules/indexeddb/IDBTransactionBackendImpl.h.
      
      * Modules/indexeddb/IDBBackingStoreInterface.h:
      * Modules/indexeddb/IDBCursorBackend.cpp:
      * Modules/indexeddb/IDBCursorBackend.h:
      * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
      * Modules/indexeddb/IDBDatabaseBackendImpl.h:
      * Modules/indexeddb/IDBFactoryBackendInterface.h:
      * Modules/indexeddb/IDBTransactionBackendOperations.h:
      * Modules/indexeddb/IDBTransactionCoordinator.cpp:
      * Modules/indexeddb/IDBTransactionCoordinator.h:
      * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
      * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
      * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
      * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
      
      Source/WebKit2:
      
      * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
      * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37036791
    • beidson@apple.com's avatar
      Merge IDBCursorBackendInterface and IDBCursorBackendImpl · 96d115ed
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124068
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * WebCore.xcodeproj/project.pbxproj:
      
      * Modules/indexeddb/IDBCursorBackendInterface.h: Removed.
      
      * Modules/indexeddb/IDBCursorBackend.cpp: Renamed from Source/WebCore/Modules/indexeddb/IDBCursorBackendImpl.cpp.
      * Modules/indexeddb/IDBCursorBackend.h: Renamed from Source/WebCore/Modules/indexeddb/IDBCursorBackendImpl.h.
      
      * Modules/indexeddb/IDBCallbacks.h:
      * Modules/indexeddb/IDBCursor.cpp:
      * Modules/indexeddb/IDBCursor.h:
      * Modules/indexeddb/IDBCursorWithValue.cpp:
      * Modules/indexeddb/IDBCursorWithValue.h:
      * Modules/indexeddb/IDBDatabaseBackendImpl.cpp:
      * Modules/indexeddb/IDBFactoryBackendInterface.h:
      * Modules/indexeddb/IDBRequest.cpp:
      * Modules/indexeddb/IDBRequest.h:
      * Modules/indexeddb/IDBTransactionBackendImpl.cpp:
      * Modules/indexeddb/IDBTransactionBackendImpl.h:
      * Modules/indexeddb/IDBTransactionBackendInterface.h:
      * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
      * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.cpp:
      * Modules/indexeddb/leveldb/IDBFactoryBackendLevelDB.h:
      
      Source/WebKit2:
      
      * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.cpp:
      (WebKit::WebIDBFactoryBackend::createCursorBackend):
      * WebProcess/Databases/IndexedDB/WebIDBFactoryBackend.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      96d115ed
    • andersca@apple.com's avatar
      Remove a workaround for a bug in malloc on Symbian · 1c2878d2
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124069
      
      Reviewed by Sam Weinig.
      
      * Platform/CoreIPC/ArgumentDecoder.cpp:
      (CoreIPC::ArgumentDecoder::~ArgumentDecoder):
      (CoreIPC::ArgumentDecoder::initialize):
      * Platform/CoreIPC/ArgumentDecoder.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158955 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c2878d2
    • andersca@apple.com's avatar
      More build fixes. · 3f46679b
      andersca@apple.com authored
      * UIProcess/API/mac/WKBrowsingContextController.mm:
      * UIProcess/API/mac/WKConnection.mm:
      (didReceiveMessage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f46679b
    • andersca@apple.com's avatar
      More build fixes. · 3df9f6e3
      andersca@apple.com authored
      * UIProcess/API/mac/WKConnection.h:
      * UIProcess/API/mac/WKConnection.mm:
      (didReceiveMessage):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3df9f6e3
    • andersca@apple.com's avatar
      Try to fix the 32-bit build. · 87bb3cde
      andersca@apple.com authored
      * Shared/API/Cocoa/WKBrowsingContextHandleInternal.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87bb3cde
    • andersca@apple.com's avatar
      Replace __alignof with alignof. · 68a3c31b
      andersca@apple.com authored
      Rubber-stamped by Beth Dakin.
      
      * Platform/CoreIPC/ArgumentCoders.cpp:
      (CoreIPC::::encode):
      (CoreIPC::decodeStringText):
      * Platform/CoreIPC/ArgumentCoders.h:
      (CoreIPC::SimpleArgumentCoder::encode):
      (CoreIPC::SimpleArgumentCoder::decode):
      * Platform/CoreIPC/ArgumentDecoder.h:
      (CoreIPC::ArgumentDecoder::bufferIsLargeEnoughToContain):
      * WebProcess/WebPage/DecoderAdapter.cpp:
      (WebKit::DecoderAdapter::decodeString):
      * WebProcess/WebPage/EncoderAdapter.cpp:
      (WebKit::EncoderAdapter::encodeString):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68a3c31b