1. 13 Jan, 2011 2 commits
    • enrica@apple.com's avatar
      Source/WebCore: WebKit2: Add support for drag and drop · 9d9813d0
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=52343
      <rdar://problem/7660558>
                     
      Reviewed by Darin Adler.
      
      This patch contains the changes required to support dropping content
      in WebKit on the Mac. The DragData class has been extended to provide
      additional context from the application (keyboard state, modal windows, etc.)
      as well as information of the drag pasteboard being used.
      The support for WebKit as drag source will be added with a separate patch.
      
      * WebCore.exp.in:
      * page/DragController.cpp:
      (WebCore::DragController::dragIsMove): Added DragData parameter.
      (WebCore::DragController::tryDocumentDrag): Modified call to dragIsMove.
      (WebCore::DragController::concludeEditDrag): Same as above.
      * page/DragController.h: Added parameter to isCopyKeyDown.
      * page/mac/DragControllerMac.mm:
      The following methods have been modified to use the information stored
      in the DragData class.
      (WebCore::DragController::isCopyKeyDown):
      (WebCore::DragController::dragOperation):
      * platform/DragData.h:
      (WebCore::DragData::flags):
      * platform/DragData.cpp: Added default flags parameter to the constructor.
      * platform/mac/DragDataMac.mm:
      (WebCore::DragData::DragData): Added constructor that receives the name of the pasteboard to use.
      (WebCore::DragData::canSmartReplace):
      (WebCore::DragData::containsColor):
      (WebCore::DragData::containsFiles):
      (WebCore::DragData::asFilenames):
      (WebCore::DragData::containsPlainText):
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsCompatibleContent):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      All the following files have been modified to add the DragData
      parameter to isCopyKeyDown. I plan to improve this in the future
      and make isCopyKeyDown not platform specific.
      * page/android/DragControllerAndroid.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/brew/DragControllerBrew.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/chromium/DragControllerChromium.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/efl/DragControllerEfl.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/gtk/DragControllerGtk.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/haiku/DragControllerHaiku.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/mac/DragControllerMac.mm:
      (WebCore::DragController::isCopyKeyDown):
      (WebCore::DragController::dragOperation):
      * page/qt/DragControllerQt.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/win/DragControllerWin.cpp:
      (WebCore::DragController::isCopyKeyDown):
      * page/wx/DragControllerWx.cpp:
      (WebCore::DragController::isCopyKeyDown):
      
      WebKit/mac: WebKit2: Add support for drag and drop
      https://bugs.webkit.org/show_bug.cgi?id=52343
      <rdar://problem/7660558>
              
      Reviewed by Darin Adler.
      
      The DragData class has been extended to provide
      additional context from the application (keyboard state, modal windows, etc.)
      as well as information of the drag pasteboard being used.
      These are the changes to align the behavior for WebKit.
      
      * WebView/WebView.mm:
      (-[WebView applicationFlags:]): Added.
      (-[WebView draggingEntered:]): Added parameter to the DragData constructor.
      (-[WebView draggingUpdated:]): Added parameter to the DragData constructor.
      (-[WebView draggingExited:]): Added parameter to the DragData constructor.
      (-[WebView performDragOperation:]): Added parameter to the DragData constructor.
      
      WebKit2: WebKit2: Add support for drag and drop
      https://bugs.webkit.org/show_bug.cgi?id=52343
      <rdar://problem/7660558>
                     
      Reviewed by Darin Adler.
      
      This patch contains the changes required to support dropping content
      in WebKit on the Mac. The DragData class has been extended to provide
      additional context from the application (keyboard state, modal windows, etc.)
      as well as information of the drag pasteboard being used.
      The support for WebKit as drag source will be added with a separate patch.
      
      * Shared/DragControllerAction.h: Added.
      * UIProcess/API/mac/WKView.mm:
      Added implemention of the methods required to add suport for a drop target.
      To maintain asynchronous communication with the WebProcess, we always return
      the previous calculated value for the drag operation.
      (-[WKView _registerDraggedTypes]):
      (-[WKView initWithFrame:contextRef:pageGroupRef:]):
      (-[WKView applicationFlags:]):
      (-[WKView draggingEntered:]):
      (-[WKView draggingUpdated:]):
      (-[WKView draggingExited:]):
      (-[WKView prepareForDragOperation:]):
      (-[WKView performDragOperation:]):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::performDragControllerAction):
      (WebKit::WebPageProxy::didPerformDragControllerAction):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::dragOperation):
      (WebKit::WebPageProxy::resetDragOperation):
      * UIProcess/WebPageProxy.messages.in:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebDragClient.cpp:
      (WebKit::WebDragClient::willPerformDragDestinationAction):
      (WebKit::WebDragClient::willPerformDragSourceAction):
      (WebKit::WebDragClient::actionMaskForDrag):
      (WebKit::WebDragClient::dragSourceActionMaskForPoint):
      (WebKit::WebDragClient::startDrag):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::performDragControllerAction):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d9813d0
    • mitz@apple.com's avatar
      Incorrect assertion in DrawingAreaImpl::scroll() · 960a97d8
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=52376
      
      Reviewed by John Sullivan.
      
      * WebProcess/WebPage/DrawingAreaImpl.cpp:
      (WebKit::DrawingAreaImpl::scroll): Changed to take the fast path if the rects have the same area.
      This made the assertion valid, but I removed it anyway.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75722 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      960a97d8
  2. 12 Jan, 2011 19 commits
    • kbalazs@webkit.org's avatar
      Unreviewed. · 36ba4fec
      kbalazs@webkit.org authored
      Getting rid of the unused 'viewportSize' argument in QWKPagePrivate:init.
      The argument is unused since http://trac.webkit.org/changeset/75468.
      
      * UIProcess/API/qt/qgraphicswkview.cpp:
      (QGraphicsWKView::QGraphicsWKView):
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPagePrivate::init):
      * UIProcess/API/qt/qwkpage_p.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36ba4fec
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · c37d9399
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Implement DrawingAreaImpl::scroll
              https://bugs.webkit.org/show_bug.cgi?id=52346
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::scroll):
              If there is already an active scroll, compute the area of both scroll rects and
              invalidate the smallest one. Compute a new dirty region if necessary and also
              add the scroll repaint region to the dirty region.
      
              (WebKit::DrawingAreaImpl::display):
              Reset the scroll area and scroll delta.
      
              * WebProcess/WebPage/DrawingAreaImpl.h:
              Add scroll area and scroll delta member variables.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c37d9399
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · 183ff095
      andersca@apple.com authored
              Reviewed by Dan Bernstein.
      
              Region improvements
              https://bugs.webkit.org/show_bug.cgi?id=52344
      
              * Platform/Region.cpp:
              (WebKit::Region::Shape::move):
              (WebKit::Region::move):
              Change Region::move to take an IntSize.
      
              * Platform/Region.h:
              (WebKit::intersect):
              (WebKit::subtract):
              (WebKit::move):
              Add convenience functions.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      183ff095
    • rniwa@webkit.org's avatar
      2011-01-12 Ryosuke Niwa <rniwa@webkit.org> · 8fe0b0bb
      rniwa@webkit.org authored
              Unreviewed Qt build fix for r75661
      
              * Shared/WebEvent.h: Don't declare phase() on non-Mac platforms.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fe0b0bb
    • bdakin@apple.com's avatar
      Add-on for https://bugs.webkit.org/show_bug.cgi?id=52309 · fd7c5cf6
      bdakin@apple.com authored
      Expose fixed layout through WebKit SPI
      -and corresponding-
      <rdar://problem/8844464>
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      And now with getters!
      * WebCore.exp.in:
      
      WebKit/mac: 
      
      And now with getters!
      * WebView/WebView.mm:
      (-[WebView _useFixedLayout]):
      (-[WebView _fixedLayoutSize]):
      * WebView/WebViewPrivate.h:
      
      WebKit2: 
      
      And now with getters!
      * UIProcess/API/C/WKPage.cpp:
      (WKPageUseFixedLayout):
      (WKPageFixedLayoutSize):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::useFixedLayout):
      (WebKit::WebPageProxy::fixedLayoutSize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd7c5cf6
    • weinig@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=52337 · 7791a801
      weinig@apple.com authored
      PlatformWheelEvent should know about the scroll phase on the Mac
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      Add a phase parameter on Mac PlatformWheelEvents.
      
      * platform/PlatformWheelEvent.h:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent):
      (WebCore::PlatformWheelEvent::phase):
      * platform/mac/WheelEventMac.mm:
      (WebCore::phaseForEvent):
      (WebCore::PlatformWheelEvent::PlatformWheelEvent):
      
      WebKit2: 
      
      Add a phase parameter on Mac WebWheelEvent and pipe it down to PlatformWheelEvent.
      
      * Shared/WebEvent.h:
      (WebKit::WebWheelEvent::phase):
      * Shared/WebEventConversion.cpp:
      (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent):
      * Shared/WebWheelEvent.cpp:
      (WebKit::WebWheelEvent::WebWheelEvent):
      (WebKit::WebWheelEvent::encode):
      (WebKit::WebWheelEvent::decode):
      * Shared/mac/WebEventFactory.mm:
      (WebKit::phaseForEvent):
      (WebKit::WebEventFactory::createWebWheelEvent):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75661 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7791a801
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · 09d9bd58
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Get rid of an unneeded parameter from DrawingArea::scroll
              https://bugs.webkit.org/show_bug.cgi?id=52336
      
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              (WebKit::WebChromeClient::scroll):
              * WebProcess/WebCoreSupport/WebChromeClient.h:
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
              (WebKit::ChunkedUpdateDrawingArea::scroll):
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.h:
              * WebProcess/WebPage/DrawingArea.h:
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::scroll):
              * WebProcess/WebPage/DrawingAreaImpl.h:
              * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
              (WebKit::LayerBackedDrawingArea::scroll):
              * WebProcess/WebPage/LayerBackedDrawingArea.h:
              * WebProcess/WebPage/TiledDrawingArea.cpp:
              (WebKit::TiledDrawingArea::scroll):
              * WebProcess/WebPage/TiledDrawingArea.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      09d9bd58
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · 2cdef2fb
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Get the new drawing area painting to the screen
              https://bugs.webkit.org/show_bug.cgi?id=52331
      
              * UIProcess/DrawingAreaProxyImpl.cpp:
              (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
              Call setViewNeedsDisplay on all the update rects.
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::setViewNeedsDisplay):
              Call through to the page client.
      
              (WebKit::WebPageProxy::processDidCrash):
              Null out the drawing area proxy.
              
              * UIProcess/mac/BackingStoreMac.mm:
              (WebKit::BackingStore::paint):
              Paint.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2cdef2fb
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · a9ca7497
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              More work on getting the drawing area proxy to paint
              https://bugs.webkit.org/show_bug.cgi?id=52328
      
              * UIProcess/API/mac/WKView.mm:
              (-[WKView drawRect:]):
              Handle the new drawing area.
      
              * UIProcess/BackingStore.cpp:
              (WebKit::BackingStore::BackingStore):
              Assert that the size isn't empty.
              
              * UIProcess/BackingStore.h:
              * UIProcess/mac/BackingStoreMac.mm:
              (WebKit::BackingStore::incorporateUpdate):
              Paint all update rects into the bitmap context.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::display):
              Create a handle so the shareable bitmap will actually be transferred over.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a9ca7497
    • andersca@apple.com's avatar
      Fix build. · 2052a42a
      andersca@apple.com authored
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2052a42a
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · bde78b27
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Begin stubbing out some more BackingStore member functions
              https://bugs.webkit.org/show_bug.cgi?id=52323
      
              * UIProcess/BackingStore.cpp:
              (WebKit::BackingStore::~BackingStore):
              This was accidentally made into a constructor; it should be a destructor.
      
              * UIProcess/DrawingAreaProxyImpl.cpp:
              (WebKit::DrawingAreaProxyImpl::paint):
              Call the backing store.
      
              (WebKit::DrawingAreaProxyImpl::update):
              Incorporate the update.
      
              (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
              Create the backing store if needed and incorporate the update.
      
              * UIProcess/mac/BackingStoreMac.mm: Added.
              (WebKit::BackingStore::platformInitialize):
              Create a bitmap context.
      
              (WebKit::BackingStore::paint):
              (WebKit::BackingStore::incorporateUpdate):
              Add stubs.
      
              * WebKit2.xcodeproj/project.pbxproj:
              Add BackingStoreMac.mm
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bde78b27
    • bdakin@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=52309 Expose · d53573ca
      bdakin@apple.com authored
      fixed layout through WebKit SPI
      -and corresponding-
      <rdar://problem/8844464>
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      Export symbols for ScrollView::setUseFixedLayout() and 
      ScrollView::setFixedLayoutSize()
      * WebCore.exp.in:
      
      WebKit/mac: 
      
      * WebView/WebView.mm:
      (-[WebView _setUseFixedLayout:]):
      (-[WebView _setFixedLayoutSize:]):
      * WebView/WebViewPrivate.h:
      
      WebKit2: 
      
      Store useFixedLayout and fixedLayoutSize in the 
      WebPageCreationParameters and the WebPageProxy.
      * Shared/WebPageCreationParameters.cpp:
      (WebKit::WebPageCreationParameters::encode):
      (WebKit::WebPageCreationParameters::decode):
      * Shared/WebPageCreationParameters.h:
      * UIProcess/API/C/WKPage.cpp:
      (WKPageSetUseFixedLayout):
      (WKPageSetFixedLayoutSize):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::setUseFixedLayout):
      (WebKit::WebPageProxy::setFixedLayoutSize):
      (WebKit::WebPageProxy::creationParameters):
      * UIProcess/WebPageProxy.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::setUseFixedLayout):
      (WebKit::WebPage::setFixedLayoutSize):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d53573ca
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · e837dec8
      andersca@apple.com authored
              Reviewed by Beth Dakin.
      
              Add BackingStore class
              https://bugs.webkit.org/show_bug.cgi?id=52318
      
              * UIProcess/BackingStore.cpp: Added.
              (WebKit::BackingStore::create):
              (WebKit::BackingStore::BackingStore):
              * UIProcess/BackingStore.h: Added.
              * WebKit2.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e837dec8
    • beidson@apple.com's avatar
      <rdar://problem/8837307>, <rdar://problem/8637038>, and... · f10ee4cb
      beidson@apple.com authored
      <rdar://problem/8837307>, <rdar://problem/8637038>, and https://bugs.webkit.org/show_bug.cgi?id=52248
      Back/forward list recovery after a WebProcess crash is crashy itself.
      
      Reviewed by Sam Weinig.
      
      Add an isEmpty() accessor so the WebProcess knows if it is actually restoring a session:
      * Shared/SessionState.cpp:
      (WebKit::SessionState::isEmpty):
      * Shared/SessionState.h:
      
      Keep track of the highest used itemID so a relaunched WebProcess can later be informed:
      * Shared/WebBackForwardListItem.cpp:
      (WebKit::WebBackForwardListItem::WebBackForwardListItem):
      (WebKit::WebBackForwardListItem::highedUsedItemID):
      * Shared/WebBackForwardListItem.h:
      * WebProcess/WebPage/WebBackForwardListProxy.cpp:
      (WebKit::generateHistoryItemID):
      (WebKit::WebBackForwardListProxy::setHighestItemIDFromUIProcess):
      (WebKit::WebBackForwardListProxy::addItemFromUIProcess): Remove a now-invalid ASSERT, as the UIProcess
        now tells the WebProcess that a previous WebProcess created.
      * WebProcess/WebPage/WebBackForwardListProxy.h:
      
      Encode/decode data relevant to restoring a session on WebPage creation:
      * Shared/WebPageCreationParameters.cpp:
      (WebKit::WebPageCreationParameters::encode):
      (WebKit::WebPageCreationParameters::decode):
      * Shared/WebPageCreationParameters.h:
      
      If the WebProcess has crashed since the last load, change reload and the various back/forward APIs to 
      update the current back/forward item (if necessary) then relaunch the process:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::reattachToWebProcessWithItem):
      (WebKit::WebPageProxy::reattachToWebProcess): Renamed from "relaunch()" and made private.
      (WebKit::WebPageProxy::initializeWebPage):
      (WebKit::WebPageProxy::loadURL):
      (WebKit::WebPageProxy::loadURLRequest):
      (WebKit::WebPageProxy::reload):
      (WebKit::WebPageProxy::goForward):
      (WebKit::WebPageProxy::goBack):
      (WebKit::WebPageProxy::goToBackForwardItem):
      (WebKit::WebPageProxy::creationParameters):
      * UIProcess/WebPageProxy.h:
      
      Rename "RestoreSession" to "RestoreSessionAndNavigateToCurrentItem"
      * WebProcess/WebPage/WebPage.messages.in:
      * UIProcess/cf/WebPageProxyCF.cpp:
      (WebKit::WebPageProxy::restoreFromSessionStateData):
      
      Restore a session on page creation if the parameters include it:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage): Call restoreSession if session state exists.
      (WebKit::WebPage::restoreSessionAndNavigateToCurrentItem):
      (WebKit::WebPage::restoreSession):
      * WebProcess/WebPage/WebPage.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f10ee4cb
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · 07734305
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Send Update and DidUpdate messages
              https://bugs.webkit.org/show_bug.cgi?id=52316
      
              * UIProcess/DrawingAreaProxy.h:
              (WebKit::DrawingAreaProxy::update):
              Add empty stub.
      
              * UIProcess/DrawingAreaProxy.messages.in:
              Add Update message.
      
              * UIProcess/DrawingAreaProxyImpl.cpp:
              (WebKit::DrawingAreaProxyImpl::update):
              Just send back a DidUpdate message.
      
              * WebProcess/WebPage/DrawingArea.h:
              (WebKit::DrawingArea::didUpdate):
              Add empty stub.
      
              * WebProcess/WebPage/DrawingArea.messages.in:
              Add DidUpdate message.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::didUpdate):
              Call display().
      
              (WebKit::DrawingAreaImpl::display):
              Send an Update message.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07734305
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · a6e49d71
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Make the new drawing area actually draw something
              https://bugs.webkit.org/show_bug.cgi?id=52314
      
              * Shared/UpdateInfo.cpp:
              (WebKit::UpdateInfo::encode):
              (WebKit::UpdateInfo::decode):
              Encode and decode newly added fields.
      
              * Shared/UpdateInfo.h:
              Add a vector of update rects and a handle for the sharable bitmap.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::display):
              Get the individual rects from the region and paint them into the shareable bitmap.
      
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::mainFrameHasCustomRepresentation):
              * WebProcess/WebPage/WebPage.h:
              Add helper function.
      
              * WebProcess/WebPage/mac/ChunkedUpdateDrawingAreaMac.cpp:
              (WebKit::ChunkedUpdateDrawingArea::paintIntoUpdateChunk):
              Use helper function.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6e49d71
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · d8903aef
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add UpdateInfo class
              https://bugs.webkit.org/show_bug.cgi?id=52306
      
              * Shared/UpdateInfo.cpp: Added.
              (WebKit::UpdateInfo::encode):
              (WebKit::UpdateInfo::decode):
              * Shared/UpdateInfo.h: Added.
              (WebKit::UpdateInfo::UpdateInfo):
              * WebKit2.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8903aef
    • andersca@apple.com's avatar
      2011-01-12 Anders Carlsson <andersca@apple.com> · cea8fe5c
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              More work on the new drawing area implementation
              https://bugs.webkit.org/show_bug.cgi?id=52302
      
              * Platform/Region.cpp:
              (WebKit::Region::Shape::segments_end):
              segments_end could end up returning an iterator that is one element past the Vector data, so
              we can't use operator[] since that will assert.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::DrawingAreaImpl):
              Initialize the timer.
      
              (WebKit::DrawingAreaImpl::setNeedsDisplay):
              Unite the rect with the dirty region and schedule a display.
      
              (WebKit::DrawingAreaImpl::setSize):
              Tell the web page to resize.
      
              (WebKit::DrawingAreaImpl::scheduleDisplay):
              Start a display timer if needed.
      
              (WebKit::DrawingAreaImpl::display):
              Add a stub.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cea8fe5c
    • bfulgham@webkit.org's avatar
      Unreviewed build fix after r75527. Rename 'BackingStoreCairo.cpp' · dfd49c57
      bfulgham@webkit.org authored
      to 'ShareableBitmapCairo.cpp' to match VS project changes.
      
      * Shared/cairo/BackingStoreCairo.cpp: Removed.
      * Shared/cairo/ShareableBitmapCairo.cpp: Copied from Shared/cairo/BackingStoreCairo.cpp.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dfd49c57
  3. 11 Jan, 2011 19 commits
    • commit-queue@webkit.org's avatar
      2011-01-11 Jeff Miller <jeffm@apple.com> · 037df9cd
      commit-queue@webkit.org authored
              Reviewed by John Sullivan.
      
              WebKit2: "Webpages not responding" dialog appears when <select> popup menu is showing
              https://bugs.webkit.org/show_bug.cgi?id=52242
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::showPopupMenu):
              On Windows, stop the responsiveness timer before calling showPopupMenu().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      037df9cd
    • mjs@apple.com's avatar
      2011-01-11 Maciej Stachowiak <mjs@apple.com> · 8369a241
      mjs@apple.com authored
              Reviewed by Anders Carlsson.
      
              UIProcess kills the WebProcess sometimes when detached frames exist
              https://bugs.webkit.org/show_bug.cgi?id=52227
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::didSaveFrameToPageCache): Don't consider the message invalid
              if it came in for a detached frame.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8369a241
    • andersca@apple.com's avatar
      Build fix. · cb03a1ee
      andersca@apple.com authored
      * WebKit2.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb03a1ee
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · 4effb597
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add a Region class which represents a graphical region
              https://bugs.webkit.org/show_bug.cgi?id=52255
      
              * Platform/Region.cpp: Added.
              (WebKit::Region::Region):
              (WebKit::Region::rects):
              (WebKit::Region::Shape::Shape):
              (WebKit::Region::Shape::appendSpan):
              (WebKit::Region::Shape::canCoalesce):
              (WebKit::Region::Shape::appendSpans):
              (WebKit::Region::Shape::appendSegment):
              (WebKit::Region::Shape::spans_begin):
              (WebKit::Region::Shape::spans_end):
              (WebKit::Region::Shape::segments_begin):
              (WebKit::Region::Shape::segments_end):
              (WebKit::Region::Shape::dump):
              (WebKit::Region::Shape::bounds):
              (WebKit::Region::Shape::move):
              (WebKit::Region::Shape::swap):
              (WebKit::Region::Shape::shapeOperation):
              (WebKit::Region::Shape::UnionOperation::trySimpleOperation):
              (WebKit::Region::Shape::unionShapes):
              (WebKit::Region::Shape::IntersectOperation::trySimpleOperation):
              (WebKit::Region::Shape::intersectShapes):
              (WebKit::Region::Shape::SubtractOperation::trySimpleOperation):
              (WebKit::Region::Shape::subtractShapes):
              (WebKit::Region::dump):
              (WebKit::Region::intersect):
              (WebKit::Region::unite):
              (WebKit::Region::subtract):
              (WebKit::Region::move):
              * Platform/Region.h: Added.
              (WebKit::Region::bounds):
              (WebKit::Region::isEmpty):
              (WebKit::Region::Span::Span):
              (WebKit::Region::Shape::isEmpty):
              * WebKit2.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4effb597
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · da9618c2
      andersca@apple.com authored
              Reviewed by Darin Adler.
      
              Add DidSetSize message
              https://bugs.webkit.org/show_bug.cgi?id=52254
      
              * DerivedSources.make:
              Add DrawingAReaProxy.messages.in.
      
              * Platform/CoreIPC/MessageID.h:
              Add DrawingAreaProxy message class.
      
              * UIProcess/DrawingAreaProxy.h:
              (WebKit::DrawingAreaProxy::didSetSize):
              Add CoreIPC message handler function.
      
              * UIProcess/DrawingAreaProxy.messages.in: Added.
      
              * UIProcess/DrawingAreaProxyImpl.cpp:
              (WebKit::DrawingAreaProxyImpl::didSetSize):
              Add stub.
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::didReceiveMessage):
              Handle DrawingAreaProxy messages.
      
              * WebKit2.xcodeproj/project.pbxproj:
              Add new files.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::setSize):
              Send a DidSetSize message for now.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da9618c2
    • weinig@apple.com's avatar
      Fix spelling mistake. Sharable -> Shareable. · 71409455
      weinig@apple.com authored
      Reviewed by Anders Carlsson.
      
      * Shared/API/c/WKImage.h:
      * Shared/API/c/WKSharedAPICast.h:
      (WebKit::toImageOptions):
      * Shared/ImageOptions.h:
      * Shared/WebImage.cpp:
      (WebKit::WebImage::create):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71409455
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · cf057932
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add SetSize message
              https://bugs.webkit.org/show_bug.cgi?id=52247
      
              * DerivedSources.make:
              Add DrawingArea.messages.in
      
              * Platform/CoreIPC/MessageID.h:
              Add DrawingArea message class.
      
              * UIProcess/DrawingAreaProxyImpl.cpp:
              (WebKit::DrawingAreaProxyImpl::sizeDidChange):
              Call sendSetSize.
      
              (WebKit::DrawingAreaProxyImpl::sendSetSize):
              Send a SetSize message.
      
              * UIProcess/DrawingAreaProxyImpl.h:
              Add setSize override.
      
              * WebKit2.xcodeproj/project.pbxproj:
              Add new files.
      
              * WebProcess/WebPage/DrawingArea.h:
              (WebKit::DrawingArea::setSize):
              Add setSize member function.
      
              * WebProcess/WebPage/DrawingArea.messages.in: Added.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              * WebProcess/WebPage/DrawingAreaImpl.h:
              Add setSize.
      
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::didReceiveMessage):
              Handle drawing area messages.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf057932
    • andersca@apple.com's avatar
      Replace ASSERTs with FIXMEs. · 3d7b4cc5
      andersca@apple.com authored
      Reviewed by Sam Weinig.
      
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::sizeDidChange):
      (WebKit::DrawingAreaProxyImpl::setPageIsVisible):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d7b4cc5
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · d0f15ac4
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add DrawingAreaImpl skeleton class
              https://bugs.webkit.org/show_bug.cgi?id=52246
      
              * UIProcess/API/mac/WKView.mm:
              (useNewDrawingArea):
              New function which controls which drawing area to use, through an environment variable.
      
              (-[WKView drawRect:]):
              Bail if we're using the new drawing area (for now).
      
              (-[WKView WebKit::]):
              Create a DrawingAreaProxyImpl when asked to.
      
              * WebKit2.xcodeproj/project.pbxproj:
              Add new files.
      
              * WebProcess/WebPage/DrawingArea.cpp:
              (WebKit::DrawingArea::create):
              Create a DrawingAreaImpl when asked to.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp: Added.
              * WebProcess/WebPage/DrawingAreaImpl.h: Added.
              Add DrawingAreaImpl class.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0f15ac4
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · c253f90a
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add Mac-only DrawingAreaProxyImpl class skeleton
              https://bugs.webkit.org/show_bug.cgi?id=52243
      
              This is the proxy side of a new drawing area implementation. This is Mac only for now
              while the design is being fleshed out.
      
              * Shared/DrawingAreaInfo.h:
              * UIProcess/API/mac/WKView.mm:
              (-[WKView _switchToDrawingAreaTypeIfNecessary:DrawingAreaInfo::]):
              * UIProcess/DrawingAreaProxyImpl.cpp: Added.
              (WebKit::DrawingAreaProxyImpl::create):
              (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
              (WebKit::DrawingAreaProxyImpl::~DrawingAreaProxyImpl):
              (WebKit::DrawingAreaProxyImpl::didReceiveMessage):
              (WebKit::DrawingAreaProxyImpl::didReceiveSyncMessage):
              (WebKit::DrawingAreaProxyImpl::paint):
              (WebKit::DrawingAreaProxyImpl::sizeDidChange):
              (WebKit::DrawingAreaProxyImpl::setPageIsVisible):
              (WebKit::DrawingAreaProxyImpl::attachCompositingContext):
              (WebKit::DrawingAreaProxyImpl::detachCompositingContext):
              * UIProcess/DrawingAreaProxyImpl.h: Added.
              * WebKit2.xcodeproj/project.pbxproj:
              * WebProcess/WebPage/DrawingArea.cpp:
              (WebKit::DrawingArea::create):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c253f90a
    • andersca@apple.com's avatar
      Fix Windows build. · 73f7d7b7
      andersca@apple.com authored
      * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
      (WebKit::WebPopupMenu::setUpPlatformData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73f7d7b7
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · b0dc9bde
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Rename ShareableBitmap::createSharable to createShareable
              https://bugs.webkit.org/show_bug.cgi?id=52234
      
              * Shared/ShareableBitmap.cpp:
              (WebKit::ShareableBitmap::createShareable):
              * Shared/ShareableBitmap.h:
              * Shared/WebImage.cpp:
              (WebKit::WebImage::create):
              * WebProcess/Plugins/PluginProxy.cpp:
              (WebKit::PluginProxy::geometryDidChange):
              * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
              (WebKit::WebPopupMenu::setUpPlatformData):
              * WebProcess/WebPage/FindController.cpp:
              (WebKit::FindController::updateFindIndicator):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0dc9bde
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · a094bedb
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Rename BackingStore to ShareableBitmap
              https://bugs.webkit.org/show_bug.cgi?id=52228
      
              * GNUmakefile.am:
              * PluginProcess/PluginControllerProxy.cpp:
              (WebKit::PluginControllerProxy::geometryDidChange):
              * PluginProcess/PluginControllerProxy.h:
              * Shared/API/c/cg/WKImageCG.cpp:
              (WKImageCreateCGImage):
              * Shared/BackingStore.cpp: Removed.
              * Shared/BackingStore.h: Removed.
              * Shared/PlatformPopupMenuData.cpp:
              (WebKit::PlatformPopupMenuData::decode):
              * Shared/PlatformPopupMenuData.h:
              * Shared/ShareableBitmap.cpp: Copied from WebKit2/Shared/BackingStore.cpp.
              (WebKit::ShareableBitmap::create):
              (WebKit::ShareableBitmap::createSharable):
              (WebKit::ShareableBitmap::createHandle):
              (WebKit::ShareableBitmap::ShareableBitmap):
              (WebKit::ShareableBitmap::~ShareableBitmap):
              (WebKit::ShareableBitmap::resize):
              (WebKit::ShareableBitmap::data):
              * Shared/ShareableBitmap.h: Copied from WebKit2/Shared/BackingStore.h.
              * Shared/UserMessageCoders.h:
              (WebKit::UserMessageEncoder::baseEncode):
              (WebKit::UserMessageDecoder::baseDecode):
              * Shared/WebImage.cpp:
              (WebKit::WebImage::create):
              (WebKit::WebImage::WebImage):
              (WebKit::WebImage::~WebImage):
              (WebKit::WebImage::size):
              * Shared/WebImage.h:
              (WebKit::WebImage::bitmap):
              * Shared/cairo/BackingStoreCairo.cpp:
              (WebKit::ShareableBitmap::createGraphicsContext):
              (WebKit::ShareableBitmap::paint):
              * Shared/cg/BackingStoreCG.cpp: Removed.
              * Shared/cg/ShareableBitmapCG.cpp: Copied from WebKit2/Shared/cg/BackingStoreCG.cpp.
              (WebKit::ShareableBitmap::createGraphicsContext):
              (WebKit::ShareableBitmap::paint):
              * Shared/gtk/BackingStoreGtk.cpp: Removed.
              * Shared/gtk/ShareableBitmapGtk.cpp: Copied from WebKit2/Shared/gtk/BackingStoreGtk.cpp.
              (WebKit::ShareableBitmap::createGraphicsContext):
              (WebKit::ShareableBitmap::paint):
              * Shared/qt/BackingStoreQt.cpp: Removed.
              * Shared/qt/ShareableBitmapQt.cpp: Copied from WebKit2/Shared/qt/BackingStoreQt.cpp.
              (WebKit::ShareableBitmap::createGraphicsContext):
              (WebKit::ShareableBitmap::paint):
              * UIProcess/FindIndicator.cpp:
              (WebKit::FindIndicator::create):
              (WebKit::FindIndicator::FindIndicator):
              * UIProcess/FindIndicator.h:
              (WebKit::FindIndicator::contentImage):
              * WebKit2.pro:
              * WebKit2.xcodeproj/project.pbxproj:
              * WebProcess/Plugins/PluginProxy.cpp:
              (WebKit::PluginProxy::geometryDidChange):
              * WebProcess/Plugins/PluginProxy.h:
              * WebProcess/WebPage/FindController.cpp:
              (WebKit::FindController::updateFindIndicator):
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::snapshotInViewCoordinates):
              (WebKit::WebPage::snapshotInDocumentCoordinates):
              * win/WebKit2.vcproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a094bedb
    • sullivan@apple.com's avatar
      [WKView setFrameSize:] derefs _page->drawingArea() without null check · acb7786e
      sullivan@apple.com authored
      <https://bugs.webkit.org/show_bug.cgi?id=52231>
      
      Reviewed by Anders Carlsson.
      
      * UIProcess/API/mac/WKView.mm:
      (-[WKView setFrameSize:]):
      Null check drawingArea(). This is OK because if it doesn't exist then it will be
      created later with the correct initial size.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acb7786e
    • enrica@apple.com's avatar
      Source/WebCore: Paste and drag and drop use different code paths to interact with the pasteboard. · 964ea218
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=52093
      The change consists in a refactoring of the code to have only one class that
      deals with the pasteboard on Mac.
      
      Reviewed by Alexey Proskuryakov.
      
      No new tests. A test is already available for this
      (editing/pasteboard/drag-image-to-contenteditable-in-iframe.html) but had incorrect results.
      
      * WebCore.exp.in:
      * loader/EmptyClients.h: Added two Mac only methods to call into WebKit to use functionality
      that is in NSURLExtras.
      (WebCore::EmptyEditorClient::canonicalizeURL):
      (WebCore::EmptyEditorClient::canonicalizeURLString):
      * page/DragController.cpp:
      The following methods have been changed to pass a pointer to the Frame object
      to the DragData class.
      (WebCore::documentFragmentFromDragData):
      (WebCore::DragController::performDrag):
      (WebCore::DragController::dispatchTextInputEventFor):
      (WebCore::DragController::concludeEditDrag):
      * page/EditorClient.h: Added two Mac only methods to call into WebKit to use functionality
      that is in NSURLExtras.
      The following files have been modified to pass the Frame object to the DragData method calls.
      * page/chromium/DragControllerChromium.cpp:
      (WebCore::DragController::dragOperation):
      * page/gtk/DragControllerGtk.cpp:
      (WebCore::DragController::dragOperation):
      * page/mac/DragControllerMac.mm:
      (WebCore::DragController::dragOperation):
      * page/qt/DragControllerQt.cpp:
      (WebCore::DragController::dragOperation):
      * page/win/DragControllerWin.cpp:
      (WebCore::DragController::dragOperation):
      * platform/DragData.h: Removed Mac specific constructor and reference to PasteboardHelper class.
      * platform/Pasteboard.h: Added public constructor to create a Pasteboard object from an NSPasteboard.
      The following files were all modified to match the new parameters of the methods listed.
      * platform/android/DragDataAndroid.cpp:
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      * platform/chromium/DragDataChromium.cpp:
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsCompatibleContent):
      (WebCore::DragData::asFragment):
      * platform/gtk/DragDataGtk.cpp:
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsCompatibleContent):
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      * platform/haiku/DragDataHaiku.cpp:
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      * platform/mac/DragDataMac.mm:
      (WebCore::DragData::DragData):
      (WebCore::DragData::asPlainText):
      (WebCore::insertablePasteboardTypes):
      (WebCore::DragData::containsCompatibleContent):
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      * platform/mac/PasteboardMac.mm:
      (WebCore::Pasteboard::getBestURL):
      (WebCore::Pasteboard::asURL):
      * platform/qt/DragDataQt.cpp:
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsCompatibleContent):
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      * platform/win/DragDataWin.cpp:
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsCompatibleContent):
      (WebCore::DragData::asFragment):
      * platform/wince/DragDataWinCE.cpp:
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::asFragment):
      * platform/wx/DragDataWx.cpp:
      (WebCore::DragData::asPlainText):
      (WebCore::DragData::containsURL):
      (WebCore::DragData::asURL):
      (WebCore::DragData::asFragment):
      
      WebKit: Paste and drag and drop use different code paths to interact with the pasteboard.
      https://bugs.webkit.org/show_bug.cgi?id=52093
      The change consists in a refactoring of the code to have only one class that
      deals with the pasteboard on Mac.
      
      Reviewed by Alexey Proskuryakov.
      
      * WebKit.xcodeproj/project.pbxproj: Removed WebPasteboardHelper.mm and WebPasteboardHelper.h.
      
      WebKit/mac: Paste and drag and drop use different code paths to interact with the pasteboard.
      https://bugs.webkit.org/show_bug.cgi?id=52093
      The change consists in a refactoring of the code to have only one class that
      deals with the pasteboard on Mac.
      
      Reviewed by Alexey Proskuryakov.
      
      * WebCoreSupport/WebEditorClient.h:
      * WebCoreSupport/WebEditorClient.mm: Added two methods to provide to WebCore functionality
      exposed by NSURLExtras.
      (WebEditorClient::canonicalizeURL):
      (WebEditorClient::canonicalizeURLString):
      * WebCoreSupport/WebPasteboardHelper.h: Removed.
      * WebCoreSupport/WebPasteboardHelper.mm: Removed.
      * WebView/WebHTMLView.mm: Removed comment.
      * WebView/WebView.mm: The following methods have been changed to use the new DragData
      constructor that doesn't use the WebPasteboardHelper reference.
      (-[WebView draggingEntered:]):
      (-[WebView draggingUpdated:]):
      (-[WebView draggingExited:]):
      (-[WebView performDragOperation:]):
      
      WebKit2: Paste and drag and drop use different code paths to interact with the pasteboard.
      https://bugs.webkit.org/show_bug.cgi?id=52093
      The change consists in a refactoring of the code to have only one class that
      deals with the pasteboard on Mac.
      
      Reviewed by Alexey Proskuryakov.
      
      * WebProcess/WebCoreSupport/WebEditorClient.h:
      * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm: Added two methods to provide to WebCore functionality
      exposed by NSURLExtras.
      (WebKit::WebEditorClient::canonicalizeURL):
      (WebKit::WebEditorClient::canonicalizeURLString):
      
      LayoutTests: Paste and drag and drop use different code paths to interact with the pasteboard.
      https://bugs.webkit.org/show_bug.cgi?id=52093
      
      Reviewed by Alexey Proskuryakov.
      
      New test results added to match the correct behavior.
              
      * platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.checksum:
      * platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.png:
      * platform/mac/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      964ea218
    • jberlin@webkit.org's avatar
      Fix crash on launch on Windows. · 5f49caeb
      jberlin@webkit.org authored
      Reviewed by Anders Carlsson and Sam Weinig.
      
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::onSizeEvent):
      The drawing area is no longer initialized before the WebView is created and the first
      onSize is receieved.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f49caeb
    • andersca@apple.com's avatar
      2011-01-11 Anders Carlsson <andersca@apple.com> · 0c07b216
      andersca@apple.com authored
              Reviewed by Dan Bernstein.
      
              Automatically reinitialize the web page on relaunch
              https://bugs.webkit.org/show_bug.cgi?id=52224
              <rdar://problem/8765695>
      
              * UIProcess/API/mac/WKView.mm:
              (-[WKView _didRelaunchProcess]):
              Remove call to reinitializeWebPage.
      
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::relaunch):
              Call initializeWebPage().
      
              (WebKit::WebPageProxy::initializeWebPage):
              Assert that the web page is valid here.
      
              * UIProcess/WebPageProxy.h:
              Remove reinitializeWebPage.
      
              * UIProcess/win/WebView.cpp:
              (WebKit::WebView::didRelaunchProcess):
              Remove call to reinitializeWebPage.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c07b216
    • andersca@apple.com's avatar
      2011-01-10 Anders Carlsson <andersca@apple.com> · f3453501
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Pass the view size to the DrawingAreaProxy constructor
              https://bugs.webkit.org/show_bug.cgi?id=52189
      
              * UIProcess/DrawingAreaProxy.cpp:
              (WebKit::DrawingAreaProxy::DrawingAreaProxy):
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::viewSize):
              * UIProcess/WebPageProxy.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3453501
    • weinig@apple.com's avatar
      Tools: Roll r75474 back in. · 7fb8e5bb
      weinig@apple.com authored
      WebKit2: Roll r75460 back in with build fix.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75508 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7fb8e5bb