1. 06 Nov, 2006 4 commits
    • bdash's avatar
      Clean build fix after r17607: removed obselete header include. · bf96ccfd
      bdash authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf96ccfd
    • oliver's avatar
      2006-11-06 Oliver Hunt <oliver@apple.com> · 68b0e2ba
      oliver authored
              Reviewed by Maciej.
      
              Fix RTL text in SVG to have correct positioning
      
              * rendering/SVGRootInlineBox.cpp:
              (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68b0e2ba
    • ap's avatar
      Reviewed by Maciej. · fdfb9d6f
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=11517
              REGRESSION: Flash clicks/interactivity not working properly
      
      WebCore:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::handleMouseMoveEvent):
              (WebCore::FrameMac::handleMouseReleaseEvent):
              Restore parts of event dispatching that were removed when fixing
              bug 7323 - just bypass those for subframes.
      
      WebKitTools:
              Teach TestNetscapePlugin to log events passed to it. To enable, set eventLoggingEnabled to true:
      
              <embed name="plg" type="application/x-webkit-test-netscape" width=100 height=100></embed>
              <script>
                  plg.eventLoggingEnabled = true;
                  // use eventSender to simulate events...
              </script>
      
              * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.c:
              (pluginGetProperty):
              (pluginSetProperty):
              (pluginAllocate):
              * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.h:
              * DumpRenderTree/TestNetscapePlugIn.subproj/main.c:
              (NPP_HandleEvent):
      
      LayoutTests:
              * plugins/mouse-events-expected.txt: Added.
              * plugins/mouse-events.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fdfb9d6f
    • bdash's avatar
      2006-11-06 Mark Rowe <bdash@webkit.org> · c1b7cdcb
      bdash authored
              Reviewed by the wonderful Mitz Pettel.
      
              http://bugs.webkit.org/show_bug.cgi?id=11524
              Bug 11524: REGRESSION(r9842): Array.prototype.join should use ToString operator rather than calling toString on each element
      
              * kjs/array_object.cpp:
              (ArrayProtoFunc::callAsFunction): Use ToString operator on each element rather than calling their toString method.
      2006-11-06  Mark Rowe  <bdash@webkit.org>
      
              Reviewed by the wonderful Mitz Pettel.
      
              Test for http://bugs.webkit.org/show_bug.cgi?id=11524
              Bug 11524: REGRESSION(r9842): Array.prototype.join should use ToString operator rather than calling toString on each element
      
              * fast/js/array-join-bug-11524-expected.txt: Added.
              * fast/js/array-join-bug-11524.html: Added.
              * fast/js/resources/array-join-bug-11524.js: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1b7cdcb
  2. 05 Nov, 2006 7 commits
    • darin's avatar
      - quick attempt to fix the no-SVG build · 6de7ecea
      darin authored
              * platform/graphics/svg/SVGResource.cpp:
              * platform/graphics/svg/SVGResource.h:
              * platform/graphics/svg/SVGResourceClipper.cpp:
              * platform/graphics/svg/SVGResourceClipper.h:
              * platform/graphics/svg/SVGResourceImage.h:
              * platform/graphics/svg/SVGResourceMarker.cpp:
              * platform/graphics/svg/SVGResourceMarker.h:
              * platform/graphics/svg/SVGResourceMasker.cpp:
              * platform/graphics/svg/SVGResourceMasker.h:
              * platform/graphics/svg/cg/SVGResourceMaskerCg.h:
              * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
              * platform/graphics/svg/qt/SVGResourceImageQt.cpp:
              * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
              Added #ifdef SVG_SUPPORT to these files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6de7ecea
    • mjs's avatar
      Reviewed & landed by Maciej. · 9e508e5a
      mjs authored
              Fixes http://bugs.webkit.org/show_bug.cgi?id=11265
      
              * platform/win/ResourceLoaderWin.cpp:
              (WebCore::transferJobStatusCallback):
              (WebCore::ResourceLoader::start):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e508e5a
    • mjs's avatar
      WebCore: · 1b7c0150
      mjs authored
              Reviewed by Oliver.
      
              - moved FormData and FormDataStream to platform/network directory
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/WebCoreFrameBridge.mm:
              * loader/FormData.cpp: Removed.
              * loader/FormData.h: Removed.
              * loader/mac/FormDataStream.h: Removed.
              * loader/mac/FormDataStream.m: Removed.
              * loader/mac/FrameLoaderMac.mm:
              * loader/mac/SubresourceLoaderMac.mm:
              * platform/network/mac/FormDataStreamMac.h: Added.
              * platform/network/mac/FormDataStreamMac.mm: Added.
              * platform/network/mac/ResourceRequestMac.mm:
      
      WebKit:
      
              Reviewed by Oliver.
              
              - removed unneeded (and obsolete) header includes
      
              * WebCoreSupport/WebFrameBridge.mm:
              * WebView/WebFrame.mm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b7c0150
    • sfalken's avatar
      2006-11-05 Steve Falkenburg <sfalken@apple.com> · 49fc47c0
      sfalken authored
              Fix build breaks
      
              * loader/DocumentLoader.h:
              * platform/win/ScreenWin.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      49fc47c0
    • darin's avatar
      - WebKit part of Frame.h check-in (forgot to land it) · 3365861c
      darin authored
              * WebCoreSupport/WebFrameBridge.h:
              * WebCoreSupport/WebFrameBridge.mm:
              (-[WebFrameBridge textViewWasFirstResponderAtMouseDownTime:]):
              (-[WebFrameBridge shouldInterruptJavaScript]):
              (-[WebFrameBridge saveDocumentState:]):
              (-[WebFrameBridge previousKeyViewOutsideWebFrameViews]):
              (-[WebFrameBridge valueForKey:keys:values:]):
              (-[WebFrameBridge getObjectCacheSize]):
              (-[WebFrameBridge startDraggingImage:at:operation:event:sourceIsDHTML:DHTMLWroteData:]):
              (-[WebFrameBridge mayStartDragAtEventLocation:]):
              (-[WebFrameBridge canGoBackOrForward:]):
              (-[WebFrameBridge goBackOrForward:]):
              (-[WebFrameBridge print]):
              (-[WebFrameBridge getAppletInView:]):
              (-[WebFrameBridge pollForAppletInView:]):
              (-[WebFrameBridge respondToChangedContents]):
              (-[WebFrameBridge respondToChangedSelection]):
              (-[WebFrameBridge setIsSelected:forView:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3365861c
    • darin's avatar
      Reviewed by Geoff. · 647be15c
      darin authored
              - more preparation for splitting up Frame into sub-pieces
              - removed unnecessary includes from Frame.h
      
              * page/Frame.h: Removed unneeded includes and forward declarations.
              Added additional forward declarations. Removed the constant
              NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
              Created sections of functions to be moved into Chrome, Editor,
              EventHandler, FrameLoader, SelectionController, and the Platform
              directory, as well as marking one function for deletion.
      
              * page/FramePrivate.h: Removed the definition of the constructor and
              destructor and removed unnecessary includes.
      
              * page/FrameView.h: Removed unneeded forward declarations and friend
              declarations. Created a section of functions and data to be moved into
              EventHandler.
      
              * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
              Created sections of functions and data to be moved into Chrome,
              Editor, EventHandler, FrameLoader, and the Platform directory.
      
              * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
              Removed unused methods areScrollbarsVisible,
              nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
      
              * page/Frame.cpp:
              (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
              to include KURL.h just for the KURL default constructor.
              (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
              (WebCore::FramePrivate::~FramePrivate): Ditto.
      
              * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
              booleans, scrollbarMoved and cleared funcitons.
              (WebCore::FrameView::clear): Moved the code from the cleared
              function in here.
              (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
              for changes to header.
      
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::xPosForVerticalArrowNavigation):
              Moved NoXPosForVerticalArrowNavigation into this file.
      
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_window.cpp:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/cssstyleselector.cpp:
              * dom/Document.cpp:
              * dom/Element.cpp:
              * dom/EventTargetNode.cpp:
              * dom/MouseRelatedEvent.cpp:
              * dom/XMLTokenizer.cpp:
              * html/HTMLBaseElement.cpp:
              * html/HTMLDocument.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFrameElementBase.cpp:
              * html/HTMLGenericFormElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLTokenizer.cpp:
              * loader/mac/FrameLoaderMac.mm:
              * page/PageState.cpp:
              * rendering/RenderApplet.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderTreeAsText.cpp:
              * xml/XSLTProcessor.cpp:
              Added includes as needed to keep compiling, since there are fewer
              includes in Frame.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      647be15c
    • ap's avatar
      Reviewed by Dave Harrison. · 5ec33463
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=11402
              REGRESSION: onChange does not work anymore for 1st item in popup
      
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::HTMLSelectElement):
              (WebCore::HTMLSelectElement::reset):
              Set m_lastOnChangeIndex to -1.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ec33463
  3. 04 Nov, 2006 12 commits
    • bdash's avatar
      2006-11-04 David Smith <catfish.man@gmail.com> · 2dbfa899
      bdash authored
              Reviewed by Tim H.
      
              Fixes: http://bugs.webkit.org/show_bug.cgi?id=11521
              Bug 11521: [Drosera] Breakpoint editor UI behaves incorrectly when multiple editors are open
      
              * Drosera/debugger.js: Use .// instead of // so that it doesn't root the search at the document.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2dbfa899
    • bdash's avatar
      2006-11-04 David Smith <catfish.man@gmail.com> · 78ec3b95
      bdash authored
              Reviewed by Tim H.
      
              Fixes: http://bugs.webkit.org/show_bug.cgi?id=11513
              Bug 11513: [Drosera] Function popup fails to appear when clicking supposedly valid areas.
      
              * Drosera/debugger.css: Stick a min-width on the menu to keep it from becoming smaller than the control.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17601 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78ec3b95
    • bdash's avatar
      2006-11-04 David Smith <catfish.man@gmail.com> · 991e48a5
      bdash authored
              Reviewed by Tim H.
      
              Fixes: http://bugs.webkit.org/show_bug.cgi?id=11512
              Bug 11512: [Drosera] Scrolling via keyboard breaks after clicking in function popup.
      
              * Drosera/debugger.js: blur() the function popup when we're done with it.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      991e48a5
    • darin's avatar
      s · 125e46d4
      darin authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17599 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      125e46d4
    • darin's avatar
      Reviewed by Ander. · 6eb347fa
      darin authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=11453
                REGRESSION: Status bar always shows cancelled opening the page
      
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::~ResourceHandle): Removed call to cancel.
              Since the subresource owns the resource handle, there's no need to cancel.
              This arrangement is only temporary, anyway, since Maciej will soon change
              things so that the subresource loader uses the resource handle and the
              resource handle doesn't know anything about the subresource loader.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6eb347fa
    • darin's avatar
      WebCore: · 7c9aa2d4
      darin authored
              Reviewed by Maciej.
      
              - converted more of the loader machinery to work with cross-platform
                data structures instead of Macintosh-specific ones
      
                converted most uses of NSURL to KURL and NSEvent to DOM Event in
                loader classes
      
                moved download function out of FrameLoader.h to avoid reference to
                NSURLConnection
      
                added DOM Event parameters to various functions so that the handlers
                can use the DOM Event instead of the global "current NSEvent";
                includes Frame::submitForm, HTMLFormElement::prepareSubmit,
                HTMLFormElement::submit, FrameLoader::load
      
                moved the setMainFrame call that hands ownership to the Page
                into one of the Frame constructors, and removed it from all
                the clients
      
                removed const from Event parameter to the urlSelected function
                (we rarely use const with DOM elements)
      
                removed some redundant includes and declarations from various
                header files
      
                removed NSURL parameter from userAgent function -- if we need it we
                can add it back, but converting from NSURL to KURL and back is
                inefficient enough that it's best to have it out for now (since it's
                been unused for years) -- if we add it back, we can choose an
                appropriate parameter type that's always inexpensive to pass
      
                did some basic cleanup in the IconLoader class, including removing
                an unnecessary loop that added icon data a byte at a time
      
                renamed safeLoad to load, since it's no different from the other
                FrameLoader load functions, safety-wise
      
                fixed some code that was trying to distinguish null frame name from
                empty string frame name -- both should be handled the same, but callers
                were doing it by checking for empty and turning it into null (in a way
                that was causing extra round trips between NSString and WebCore::String)
      
                corrected all uses of "get" and "post" to be uppercase "GET" and "POST"
                and got rid of case-insensitive compares of methods
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::submitForm):
              (WebCore::FrameMac::urlSelected):
              (WebCore::FrameMac::userAgent):
              * bridge/mac/FrameViewMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject rendererForView:]):
              * bridge/mac/WebCorePageBridge.h:
              * bridge/mac/WebCorePageBridge.mm:
              * bridge/mac/WebCoreSettings.mm:
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::urlSelected):
              (WebCore::FrameWin::submitForm):
              * bridge/win/FrameWin.h:
              * dom/MouseRelatedEvent.cpp:
              * dom/MouseRelatedEvent.h:
              * dom/UIEvent.cpp:
              (WebCore::UIEvent::~UIEvent):
              * dom/UIEvent.h:
              * dom/UIEventWithKeyState.h:
              * dom/XMLTokenizer.cpp:
              (WebCore::openFunc):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              * html/HTMLButtonElement.cpp:
              (WebCore::HTMLButtonElement::defaultEventHandler):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::submitClick):
              (WebCore::HTMLFormElement::prepareSubmit):
              (WebCore::HTMLFormElement::submit):
              * html/HTMLFormElement.h:
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
              * loader/DocumentLoader.h:
              * loader/FrameLoader.h:
              * loader/FrameLoaderClient.h:
              * loader/NavigationAction.h:
              (WebCore::NavigationAction::event):
              * loader/icon/IconLoader.cpp:
              (WebCore::IconLoader::create):
              (WebCore::IconLoader::startLoading):
              (WebCore::IconLoader::didReceiveData):
              (WebCore::IconLoader::didFinishLoading):
              * loader/icon/IconLoader.h:
              * loader/loader.cpp:
              * loader/mac/DocumentLoaderMac.mm:
              (WebCore::DocumentLoader::URL):
              (WebCore::DocumentLoader::unreachableURL):
              (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
              (WebCore::DocumentLoader::URLForHistory):
              * loader/mac/FrameLoaderMac.mm:
              (WebCore::FrameLoader::load):
              (WebCore::FrameLoader::willSendRequest):
              (WebCore::FrameLoader::clientRedirected):
              (WebCore::FrameLoader::shouldReload):
              (WebCore::FrameLoader::notifyIconChanged):
              (WebCore::FrameLoader::URL):
              (WebCore::FrameLoader::reloadAllowingStaleData):
              (WebCore::FrameLoader::reload):
              (WebCore::FrameLoader::didChangeTitle):
              (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
              (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
              (WebCore::FrameLoader::post):
              (WebCore::FrameLoader::addExtraFieldsToRequest):
              (WebCore::FrameLoader::loadResourceSynchronously):
              * loader/mac/IconLoaderMac.mm:
              (WebCore::IconLoader::notifyIconChanged):
              * loader/mac/LoaderFunctionsMac.mm:
              * loader/mac/MainResourceLoaderMac.mm:
              (WebCore::shouldLoadAsEmptyDocument):
              (WebCore::MainResourceLoader::continueAfterContentPolicy):
              * loader/mac/NavigationActionMac.mm:
              (WebCore::navigationType):
              (WebCore::NavigationAction::NavigationAction):
              * loader/mac/ResourceLoaderMac.mm:
              * loader/mac/SubresourceLoaderMac.mm:
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::urlSelected):
              (WebCore::Frame::submitFormAgain):
              (WebCore::Frame::submitForm):
              (WebCore::Frame::endIfNotLoading):
              (WebCore::Frame::hitTestResultAtPoint):
              * page/Frame.h:
              * page/FramePrivate.h:
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdk::FrameGdk):
              (WebCore::FrameGdk::submitForm):
              (WebCore::FrameGdk::urlSelected):
              * platform/gdk/FrameGdk.h:
              * platform/mac/TextFieldMac.mm:
              * platform/network/HTTPHeaderMap.h:
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              * platform/network/ResourceHandleInternal.h:
              * platform/network/mac/ResourceHandleMac.mm:
              * platform/network/mac/ResourceResponseMac.h:
              * platform/network/mac/ResourceResponseMac.mm:
              (-[NSURLResponse WebCore]):
              * platform/network/win/ResourceHandleWin.cpp:
              * platform/qt/FrameQt.cpp:
              (WebCore::FrameQt::submitForm):
              (WebCore::FrameQt::urlSelected):
              * platform/qt/FrameQt.h:
              * rendering/RenderLineEdit.cpp:
              (WebCore::RenderLineEdit::returnPressed):
              * xml/XSLTProcessor.cpp:
              (WebCore::docLoaderFunc):
              * xml/xmlhttprequest.cpp:
      
      WebKit:
      
              Reviewed by Maciej.
      
              - converted more of the loader machinery to work with cross-platform
                data structures instead of Macintosh-specific ones
      
                store the computed user agent string as a WebCore::String instead
                of an NSString to avoid overhead converting it every time we get it
      
              * COM/WebFrame.cpp:
              (WebFrame::initWithName):
              * ChangeLog:
              * Misc/WebElementDictionary.m:
              (-[WebElementDictionary _image]):
              (-[WebElementDictionary _targetWebFrame]):
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::dispatchWillPerformClientRedirect):
              (WebFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
              (WebFrameLoaderClient::setTitle):
              (WebFrameLoaderClient::userAgent):
              (WebFrameLoaderClient::actionDictionary):
              * WebCoreSupport/WebPageBridge.mm:
              (WebCore::if):
              * WebView/WebDataSource.mm:
              (-[WebDataSource _URL]):
              (-[WebDataSource _URLForHistory]):
              (-[WebDataSource unreachableURL]):
              * WebView/WebHTMLView.m:
              (-[WebHTMLView elementAtPoint:allowShadowContent:]):
              * WebView/WebPDFView.mm:
              (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
              (-[WebPDFView _path]):
              * WebView/WebView.mm:
              (-[WebViewPrivate init]):
              (-[WebViewPrivate dealloc]):
              (-[WebViewPrivate finalize]):
              (-[WebView _preferencesChangedNotification:]):
              (-[WebView _cachedResponseForURL:]):
              (-[WebView setApplicationNameForUserAgent:]):
              (-[WebView setCustomUserAgent:]):
              (-[WebView customUserAgent]):
              (-[WebView userAgentForURL:]):
              (-[WebView _computeUserAgent]):
              (-[WebView WebCore::]):
              * WebView/WebViewInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c9aa2d4
    • bdash's avatar
      2006-11-04 Mark Rowe <bdash@webkit.org> · a0d698eb
      bdash authored
              Reviewed by Darin.
      
              Fix use of uninitialized value in pattern match.
      
              * Scripts/webkitdirs.pm:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0d698eb
    • mjs's avatar
      Reviewed by Adele. · 8eb36210
      mjs authored
              - replaced receivedRedirect with new willSendRequest delegate
              - removed most mac-specific loader functions
              - use ResourceResponse more in loader code
      
              * WebCore.xcodeproj/project.pbxproj: Add new files.
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge getData:andResponse:forURL:]): Adapted
              for CachedResource method renames.
              (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
              Ditto.
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::checkNotify): simplified
              based on ResourceResponse
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::createImage): adapt for ResourceResponse
              * loader/CachedResource.cpp:
              (WebCore::CachedResource::CachedResource): store a ResourceResponse;
              platform response is now called platformResponse and expiration date
              is removed.
              (WebCore::CachedResource::~CachedResource): ditto
              (WebCore::CachedResource::isExpired): ditto
              * loader/CachedResource.h:
              (WebCore::CachedResource::platformResponse): ditto
              (WebCore::CachedResource::setResponse): ditto
              (WebCore::CachedResource::canDelete): ditto
              * loader/LoaderFunctions.h:
              * loader/loader.cpp:
              (WebCore::Loader::receivedResponse): Adjusted for renames.
              (WebCore::Loader::didReceiveResponse): Store whole ResourceResponse
              in the CachedResource.
              * loader/loader.h:
              * loader/mac/FormDataStream.h:
              * loader/mac/FormDataStream.m:
              (WebCore::getStreamFormDatas): Rearranged things so it's
              possible to get a FormData back out of a form data stream.
              (WebCore::formCreate): ditto
              (WebCore::formFinalize): ditto
              (WebCore::httpBodyFromStream): ditto
              * loader/mac/ImageDocumentMac.mm:
              (WebCore::finishImageLoad): s/response/platformResponse/
              * loader/mac/LoaderFunctionsMac.mm:
              (WebCore::CheckCacheObjectStatus): ditto
              (WebCore::CachedResource::setPlatformResponse): ditto
              * loader/mac/SubresourceLoaderMac.mm:
              (WebCore::SubresourceLoader::willSendRequest): send redirect
              to client appropriately
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::willSendRequest): new entry
              point for SubresourceLoader, dispatch to client.
              * platform/network/ResourceRequest.h:
              (WebCore::ResourceRequest::allowHTTPCookies): implemented
              (WebCore::ResourceRequest::setAllowHTTPCookies): ditto
              * platform/network/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse): initialize expiration
              date(!)
              * platform/network/cf/FormDataStreamCFNet.cpp: Added.
              (WebCore::getStreamFormDatas): Added this, ported from NSURL version.
              (WebCore::openNextStream): ditto
              (WebCore::formCreate): ditto
              (WebCore::formFinalize): ditto
              (WebCore::formCanRead): ditto
              (WebCore::formEventCallback): ditto
              (WebCore::setHTTPBody): ditto
              (WebCore::httpBodyFromStream): ditto
              * platform/network/cf/FormDataStreamCFNet.h: Added.
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::willSendRequest): implemented
              (WebCore::ResourceHandle::start): use new ResourceRequest stuff
              * platform/network/cf/ResourceResponseCFNet.cpp:
              (WebCore::getResourceResponse): do nothing for a null response
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::willSendRequest): Implemented; dispatch to client.
              * platform/network/mac/ResourceRequestMac.h: Added.
              * platform/network/mac/ResourceRequestMac.mm: Added.
              (WebCore::getResourceRequest): Added way to convert an NSURLRequest
              to a ResourceRequest.
              (WebCore::nsURLRequest): Opposite of the above.
              * platform/network/cf/ResourceRequestCFNet.h: Added.
              * platform/network/cf/ResourceRequestCFNet.cpp: Added.
              (WebCore::getResourceRequest): Added way to convert an CFURLRequest
              to a ResourceRequest.
              (WebCore::cfURLRequest): Opposite of the above.
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::willSendRequest): Renamed from receivedRedirect,
              adjusted.
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8eb36210
    • darin's avatar
      Change suggested by Mitz. · aae55e2f
      darin authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=11514
                REGRESSION (r17438): Repro crash when opening a web archive
      
              * bridge/mac/WebCorePageState.mm:
              (-[WebCorePageState dealloc]): Add null check.
              (-[WebCorePageState finalize]): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aae55e2f
    • darin's avatar
      Reviewed by Tim Hatcher. · 68ae4294
      darin authored
              * Scripts/webkitdirs.pm: Don't try to use the Xcode build setting if it's project-relative.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68ae4294
    • ap's avatar
      2006-11-04 Bertrand Guiheneuf <guiheneuf@gmail.com> · 1378a993
      ap authored
              Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Don Gibson).
      
              http://bugs.webkit.org/show_bug.cgi?id=11433
              Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
      
      WebCore:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              Added platform/graphics platform/network and platform/network/win to headers search paths
              Created platform/graphics and platform/network filters in hierarchy
              Moved GraphicsContext and GraphicsTypes to their respective filters
              Added EditorClient.h
              Added FrameLoader* files in loader/
              Added HitTest* files in rendering/
              Added Editor.* files in editing/
              Added DeleteButton.* and DeleteButtonController.* in editing/
      
              * bridge/win/ChromeClientWin.h: Added.
              (WebCore::ChromeClientWin::~ChromeClientWin):
              * bridge/win/EditorClientWin.h: Added.
              (WebCore::EditorClientWin::~EditorClientWin):
      
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::FrameWin):
              (WebCore::FrameWin::urlSelected):
              (WebCore::FrameWin::submitForm):
              (WebCore::FrameWin::createNewWindow):
              * bridge/win/FrameWin.h:
              Added EditorClient parameter to constructor
              Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest()
              Removed openURL() and openURLRequest from class definition
      
              * bridge/win/PageWin.cpp:
              * platform/AffineTransform.h:
              * platform/cairo/AffineTransformCairo.cpp: Added.
              (WebCore::AffineTransform::AffineTransform):
              (WebCore::AffineTransform::setMatrix):
              (WebCore::AffineTransform::map):
              (WebCore::AffineTransform::mapRect):
              (WebCore::AffineTransform::isIdentity):
              (WebCore::AffineTransform::m11):
              (WebCore::AffineTransform::m12):
              (WebCore::AffineTransform::m21):
              (WebCore::AffineTransform::m22):
              (WebCore::AffineTransform::dx):
              (WebCore::AffineTransform::dy):
              (WebCore::AffineTransform::reset):
              (WebCore::AffineTransform::scale):
              (WebCore::AffineTransform::rotate):
              (WebCore::AffineTransform::translate):
              (WebCore::AffineTransform::shear):
              (WebCore::AffineTransform::det):
              (WebCore::AffineTransform::invert):
              (WebCore::AffineTransform::operator cairo_matrix_t):
              (WebCore::AffineTransform::operator== ):
              (WebCore::AffineTransform::operator*= ):
              (WebCore::AffineTransform::operator* ):
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
              * platform/network/win/ResourceHandleWin.cpp:
              (WebCore::ResourceHandle::onHandleCreated):
              (WebCore::ResourceHandle::start):
              (WebCore::ResourceHandle::fileLoadTimer):
              (WebCore::ResourceHandle::cancel):
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::FrameWin::goBackOrForward):
              (WebCore::FrameWin::getHistoryLength):
              (WebCore::FrameWin::historyURL):
              (WebCore::ServeSynchronousRequest):
              (WebCore::ChromeClientWin::canRunModal):
              (WebCore::ChromeClientWin::runModal):
              (WebCore::EditorClientWin::shouldDeleteRange):
              (WebCore::EditorClientWin::shouldShowDeleteInterface):
              (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
              (WebCore::EditorClientWin::isGrammarCheckingEnabled):
              (WebCore::EditorClientWin::spellCheckerDocumentTag):
              (WebCore::Path::transform):
              (WebCore::PopupMenu::updateFromElement):
              (WebCore::ResourceLoader::loadsBlocked):
              (WebCore::systemBeep):
              * rendering/RenderThemeWin.cpp:
              (WebCore::RenderThemeWin::paintButton):
              (WebCore::RenderThemeWin::paintTextField):
      
      WebKit:
              * COM/WebFrame.cpp:
              (WebFrame::initWithName):
              (WebFrame::loadDataSource):
              (WebFrame::receivedRedirect):
              (WebFrame::receivedResponse):
              (WebFrame::didReceiveData):
              (WebFrame::receivedAllData):
              Use resource handles now. Do not start doc loader by hand anymore. 
              Handle didReceiveData() callback instead of receivedData() which 
              is deprecated in implementation of ResourceHandleClient        
      
              * COM/WebFrame.h:
              * COM/WebView.cpp:
              Applied ResourceLoader --> ResourceHandle renaming
      
              * WebKit.vcproj/WebKit.rc:
              Got rid of MFC dependencies (build fix for VCExpress).
      
              * WebKit.vcproj/WebKit.vcproj:
              Added platform/graphics platform/network and platform/network/win 
              to headers search paths
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1378a993
    • ap's avatar
      Reviewed by Maciej. · 3b5a3527
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=11448
              &lang; and &rang; entities are mapped to the incorrect Unicode codepoint
      
      WebCore:
              * html/HTMLEntityNames.gperf: Use canonical Unicode equivalents for these characters.
      
      LayoutTests:
              * fast/parser/entities-in-xhtml-expected.checksum: Removed.
              * fast/parser/entities-in-xhtml-expected.png: Removed.
              Converted to plain text, the large table in the test didn't nearly fit anyway.
      
              * fast/parser/entities-in-xhtml-expected.txt:
              * fast/parser/entities-in-xhtml.xhtml:
              Made the test self-consistent again by using actual numeric values for &lang; and &rang;.
      
              * fast/parser/entities-in-html-expected.txt: Added.
              * fast/parser/entities-in-html.html: Added.
              An HTML copy of the same test.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3b5a3527
  4. 03 Nov, 2006 17 commits
    • bdash's avatar
      2006-11-03 David Smith <catfish.man@gmail.com> · a033443d
      bdash authored
              Reviewed by Tim H.
      
              Fixes: http://bugs.webkit.org/show_bug.cgi?id=11510
              Bug 11510: [Drosera] Doubleclicking the attach table should attach to the clicked item.
      
              * Drosera/DebuggerApplication.m:
              (-[DebuggerApplication showAttachPanel:]): Set the doubleAction for the table view
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a033443d
    • bdash's avatar
      2006-11-03 Mark Rowe <bdash@webkit.org> · 496b5751
      bdash authored
              Reviewed by Oliver.
      
              Update Windows and Qt project files for file removals in r17585.
      
              * CMakeLists.txt:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      496b5751
    • bdash's avatar
      2006-11-03 Zack Rusin <zack@kde.org> · 7c80dbd7
      bdash authored
              Reviewed by Maciej.
      
              The patch fixes text field drawing on the Qt platform.
      
              * platform/qt/RenderThemeQt.cpp:
              (WebCore::RenderThemeQt::paintTextField): Use the style to correctly
              render the text field
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17588 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c80dbd7
    • sfalken's avatar
      2006-11-03 Steve Falkenburg <sfalken@apple.com> · 0acb4416
      sfalken authored
              Fix build
      
              * kjs/JSImmediate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0acb4416
    • oliver's avatar
      2006-11-03 Oliver Hunt <oliver@apple.com> · 12c4dcb1
      oliver authored
              Reviewed by Tim.
      
              Correct incorrect call to SetCursor
      
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::userResize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12c4dcb1
    • adele's avatar
      Reviewed by Oliver. · 5b06f5fc
      adele authored
              Removed DeprecatedRenderSelect and ListBox classes.
      
              * WebCore.xcodeproj/project.pbxproj:
              * css/html4.css:
              * html/HTMLOptionElement.h:
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::recalcStyle):
              (WebCore::HTMLSelectElement::isKeyboardFocusable):
              (WebCore::HTMLSelectElement::isMouseFocusable):
              (WebCore::HTMLSelectElement::createRenderer):
              (WebCore::HTMLSelectElement::setRecalcListItems):
              (WebCore::HTMLSelectElement::notifyOptionSelected):
              (WebCore::HTMLSelectElement::defaultEventHandler):
              (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
              (WebCore::HTMLSelectElement::updateListBoxSelection):
              * html/HTMLSelectElement.h:
              * platform/ListBox.h: Removed.
              * platform/mac/FontCacheMac.mm:
              * platform/mac/ListBoxMac.mm: Removed.
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/DeprecatedRenderSelect.cpp: Removed.
              * rendering/DeprecatedRenderSelect.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17585 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b06f5fc
    • mjs's avatar
      Not reviewed, fix for accidental commit. · 409c53a9
      mjs authored
              - rolled back more of the accidentall commit that I forgot.
      
              * platform/network/mac/ResourceRequestMac.h: Removed.
              * platform/network/mac/ResourceRequestMac.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      409c53a9
    • thatcher's avatar
      Reviewed by Tim H. · bbfdb23e
      thatcher authored
              Fixes: http://bugs.webkit.org/show_bug.cgi?id=9596
              Bug 9596: [Drosera] add a function popup to the source pane
      
              * Drosera/debugger.css: Added styles for function popup
              * Drosera/debugger.html: Added function popup button and select
              * Drosera/debugger.js: Added function popup functionality
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbfdb23e
    • mjs's avatar
      Not reviewed, fix for accidental commit. · afdaba3a
      mjs authored
              - roll back some network changes accidentally committed with a previous patch.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge getData:andResponse:forURL:]):
              (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::checkNotify):
              * loader/CachedImage.cpp:
              (WebCore::CachedImage::createImage):
              * loader/CachedResource.cpp:
              (WebCore::CachedResource::CachedResource):
              (WebCore::CachedResource::~CachedResource):
              (WebCore::CachedResource::setExpireDate):
              (WebCore::CachedResource::isExpired):
              * loader/CachedResource.h:
              (WebCore::CachedResource::response):
              * loader/LoaderFunctions.h:
              * loader/loader.cpp:
              (WebCore::Loader::receivedResponse):
              (WebCore::Loader::didReceivedResponse):
              * loader/loader.h:
              * loader/mac/FormDataStream.h:
              * loader/mac/FormDataStream.m:
              (WebCore::formCreate):
              (WebCore::formFinalize):
              * loader/mac/ImageDocumentMac.mm:
              (WebCore::finishImageLoad):
              * loader/mac/LoaderFunctionsMac.mm:
              (WebCore::CheckCacheObjectStatus):
              (WebCore::CachedResource::setResponse):
              * loader/mac/SubresourceLoaderMac.mm:
              (WebCore::SubresourceLoader::willSendRequest):
              * platform/network/ResourceHandle.h:
              * platform/network/ResourceHandleClient.h:
              (WebCore::ResourceHandleClient::receivedRedirect):
              * platform/network/ResourceRequest.h:
              * platform/network/ResourceResponse.h:
              (WebCore::ResourceResponse::ResourceResponse):
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::redirectedToURL):
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::receivedRedirect):
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      afdaba3a
    • andersca's avatar
      2006-11-03 Anders Carlsson <acarlsson@apple.com> · 16d91119
      andersca authored
              Rubber-stamped by Oliver.
      
              Remove these, they have been merged with SVGRenderTreeAsText.
              
              * rendering/SVGRenderAsText.cpp: Removed.
              * rendering/SVGRenderAsText.h: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16d91119
    • ap's avatar
      Reviewed by Darin. · 7f304099
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=11504
              Fix warnings on non 32 bit platforms
      
              * kjs/JSImmediate.h:
              (KJS::JSImmediate::NanAsBits):
              (KJS::JSImmediate::oneAsBits):
              Rewrite in a way that moves runtime checks to compile-time.
      
              (KJS::):
              (KJS::JSImmediate::fromDouble):
              (KJS::JSImmediate::toDouble):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f304099
    • andersca's avatar
      2006-11-03 Anders Carlsson <acarlsson@apple.com> · 03a8e33a
      andersca authored
              Build fix.
              
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::willSendRequest):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03a8e33a
    • ggaren's avatar
      Forgot to add these two files. Oops. · f7e125b7
      ggaren authored
              * WebCoreSupport/WebChromeClient.h: Added.
              * WebCoreSupport/WebChromeClient.mm: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7e125b7
    • ggaren's avatar
      WebCore: · 9c208d0b
      ggaren authored
              Reviewed by Darin, Beth.
              
              First cut at factoring Page's UIDelegate-related functions into Chrome
              and ChromeClient.
      
              Layout tests pass.
              
              * bridge/mac/PageMac.mm: Removed platform-specific constructor, added
              setBridge method to replace it.
              (WebCore::Page::setBridge):
      
              * bridge/mac/WebCorePageBridge.h: Simplified some things based on the fact
              that WebCorePageBridge.h doesn't need to be included by ObjC-only files,
              and, now that it uses PassRefPtr, can't be.
              
              * page/Chrome.cpp: Added. Code copied and converted to c++ from WebCorePageBridge.mm.
      
              * page/Page.h:
              (WebCore::Page::dragCaretController): Made this function non-const so that
              m_dragCaretController doesn't have to be mutable.
      
      WebKit:
      
              Reviewed by Darin, Beth.
      
              First cut at factoring Page's UIDelegate-related functions into Chrome
              and ChromeClient.
      
              Layout tests pass.
              
              * WebCoreSupport/WebEditorClient.h:
              * WebCoreSupport/WebPageBridge.mm:
              * WebKit.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c208d0b
    • ap's avatar
      2006-11-03 Michael Emmel <mike.emmel@gmail.com> · f6c9cb80
      ap authored
              Reviewed by Maciej.
              
              http://bugs.webkit.org/show_bug.cgi?id=9671
      
              * Scripts/wkstyle:
              Adds astyle sed script formats according to most of the style guidelines. 
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f6c9cb80
    • ap's avatar
      Reviewed by Adele. · 18e99774
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=7323
              REGRESSION (10.4.4): ondrag* events don't fire on page in a frame
      
      WebCore:
              * bridge/mac/FrameMac.h: Moved drag source information to a static variable
              in FrameMac.mm. There can be only one drag active at any moment, and having 
              this information here was making sharing this information between 
              subframes hard.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::FrameMac): Initialize sharedDragInfo.
              (WebCore::FrameMac::freeClipboard):
              (WebCore::FrameMac::dragHysteresisExceeded):
              (WebCore::FrameMac::handleMouseMoveEvent):
              (WebCore::FrameMac::handleMouseReleaseEvent):
              (WebCore::FrameMac::mouseDown):
              (WebCore::FrameMac::dragSourceMovedTo):
              (WebCore::FrameMac::dragSourceEndedAt):
              (WebCore::FrameMac::dispatchDragSrcEvent):
              Access drag source info via sharedDragInfo - this fixes drag source even dispatching.
              Also removed some old code that was forwarding mouse events to subviews to make 
              HTML editing work in subframes.
      
              * page/FrameView.cpp:
              (WebCore::FrameView::updateDragAndDrop):
              (WebCore::FrameView::cancelDragAndDrop):
              (WebCore::FrameView::performDragAndDrop):
              Forward events to subframes for dispatching - this fixes drag target events.
      
      WebKitTools:
              When dragging, do not send EventSendingController's events immediately. Dragging 
              is supposed to be modal, so we need to perform it from within the delegate, without
              returning to JS to make the next mouse movement.
      
              When the mouse is down, mouse events are now recorded, and executed when mouseUp is sent.
      
              * DumpRenderTree/EventSendingController.h:
              * DumpRenderTree/EventSendingController.m:
              (-[EventSendingController dealloc]):
              (-[EventSendingController leapForward:]):
              (-[EventSendingController mouseDown]):
              (-[EventSendingController mouseUp]):
              (-[EventSendingController mouseMoveToX:Y:]):
              (+[EventSendingController saveEvent:]):
              (+[EventSendingController replaySavedEvents]):
              * DumpRenderTree/UIDelegate.m:
              (-[UIDelegate webView:dragImage:at:offset:event:pasteboard:source:slideBack:forView:]):
      
      LayoutTests:
              * fast/events/drag-in-frames-expected.txt: Added.
              * fast/events/drag-in-frames.html: Added.
              * fast/events/resources/drag-in-frames-console.html: Added.
              * fast/events/resources/drag-in-frames-left.html: Added.
              * fast/events/resources/drag-in-frames-right.html: Added.
      
              * editing/selection/expanding-selections.html:
              * editing/selection/expanding-selections2.html:
              * fast/dynamic/layer-hit-test-crash.html:
              * fast/events/event-view-toString.html:
              * fast/events/resources/drag-outside-window-frame.html:
              * svg/custom/hover-default-fill.svg:
              Added missing calls to mouseUp().
      
              * svg/custom/stroke-width-click-expected.txt:
              * svg/custom/stroke-width-click.svg:
              Don't attempt to click outside the page, this was confusing DRT.
      
              * editing/selection/select-from-textfield-outwards-expected.txt:
              * editing/selection/select-from-textfield-outwards.html:
              Removed alerts between dragging steps - they are now useless,
              as the dragging events are stored and executed at once.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18e99774
    • staikos's avatar
      2006-11-03 Zack Rusin <zack@kde.org> · de0f2694
      staikos authored
              Reviewed by Tim, landed by George.
      
              Fixing compile.
      
              * platform/qt/LoaderFunctionsQt.cpp:
              (WebCore::CachedResource::setPlatformResponse): Renamed from setResponse
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      de0f2694