Changeset 17267 in webkit


Ignore:
Timestamp:
Oct 24, 2006 3:24:18 PM (18 years ago)
Author:
ggaren
Message:

Rolling back in, now fixed:


Nixed a few more redundant loading functions in Frame. Did my best to update
the non-Mac builds.

  • bridge/mac/FrameMac.h:
  • bridge/mac/FrameMac.mm: (WebCore::FrameMac::urlSelected): Kept always 'true' argument for userGesture always 'true', because changing it broke the world, and testing seems to indicate that the one caller that might have passed 'false' didn't need to.
  • page/Frame.cpp: (WebCore::Frame::requestFrame): (WebCore::Frame::frameLoader): (WebCore::Frame::redirectionTimerFired):
  • page/Frame.h:
  • platform/gdk/FrameGdk.cpp:
  • platform/gdk/FrameGdk.h:
  • platform/gdk/TemporaryLinkStubs.cpp: (FrameGdk::issueCopyCommand):
  • platform/qt/FrameQt.cpp:
  • platform/qt/FrameQt.h:
  • platform/win/TemporaryLinkStubs.cpp: (WebCore::FrameWin::shouldInterruptJavaScript): (WebCore::FrameWin::issueCopyCommand):
Location:
trunk/WebCore
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r17266 r17267  
     12006-10-24  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Rolling back in, now fixed:
     4       
     5        Nixed a few more redundant loading functions in Frame. Did my best to update
     6        the non-Mac builds.
     7
     8        * bridge/mac/FrameMac.h:
     9        * bridge/mac/FrameMac.mm:
     10        (WebCore::FrameMac::urlSelected): Kept always 'true' argument for userGesture
     11        always 'true', because changing it broke the world, and testing seems to
     12        indicate that the one caller that might have passed 'false' didn't need to.
     13        * page/Frame.cpp:
     14        (WebCore::Frame::requestFrame):
     15        (WebCore::Frame::frameLoader):
     16        (WebCore::Frame::redirectionTimerFired):
     17        * page/Frame.h:
     18        * platform/gdk/FrameGdk.cpp:
     19        * platform/gdk/FrameGdk.h:
     20        * platform/gdk/TemporaryLinkStubs.cpp:
     21        (FrameGdk::issueCopyCommand):
     22        * platform/qt/FrameQt.cpp:
     23        * platform/qt/FrameQt.h:
     24        * platform/win/TemporaryLinkStubs.cpp:
     25        (WebCore::FrameWin::shouldInterruptJavaScript):
     26        (WebCore::FrameWin::issueCopyCommand):
     27
    1282006-10-24  Anders Carlsson  <acarlsson@apple.com>
    229
  • trunk/WebCore/bridge/mac/FrameMac.h

    r17260 r17267  
    120120
    121121    // FIXME: Merge these and move them into WebFrameLoader.
    122     virtual bool openURL(const KURL&);
    123     virtual void openURLRequest(const FrameLoadRequest&);
    124122    void loadRequest(const FrameLoadRequest&, bool userGesture, NSEvent* triggeringEvent = 0, ObjCDOMElement* submitForm = 0, NSMutableDictionary* formValues = 0);
    125123    virtual void urlSelected(const FrameLoadRequest&, const Event* triggeringEvent);
  • trunk/WebCore/bridge/mac/FrameMac.mm

    r17260 r17267  
    264264}
    265265
    266 bool FrameMac::openURL(const KURL &url)
    267 {
    268     // FIXME: The lack of args here to get the reload flag from
    269     // indicates a problem in how we use Frame::processObjectRequest,
    270     // where we are opening the URL before the args are set up.
    271 
    272     FrameLoadRequest request;
    273     request.m_request.setURL(url);
    274     request.m_request.setHTTPReferrer(referrer());
    275 
    276     loadRequest(request, userGestureHint());
    277 
    278     return true;
    279 }
    280 
    281 void FrameMac::openURLRequest(const FrameLoadRequest& request)
    282 {
    283     loadRequest(request, userGestureHint());
    284 }
    285 
    286266void FrameMac::urlSelected(const FrameLoadRequest& request, const Event* /*triggeringEvent*/)
    287267{
     
    290270        copy.m_request.setHTTPReferrer(referrer());
    291271
     272    // FIXME: How do we know that userGesture is always true?
    292273    loadRequest(copy, true, _currentEvent);
    293274}
  • trunk/WebCore/page/Frame.cpp

    r17260 r17267  
    239239}
    240240
    241 #pragma mark END LOADING FUNCTIONS
    242 
    243 bool Frame::openURL(const KURL& URL)
    244 {
    245     ASSERT_NOT_REACHED();
    246     return true;
    247 }
     241#pragma mark BEGIN LOADING FUNCTIONS
    248242
    249243void Frame::changeLocation(const DeprecatedString& URL, const String& referrer, bool lockHistory, bool userGesture)
     
    297291}
    298292
    299 FrameLoader* Frame::frameLoader()
    300 {
    301     return d->m_frameLoader;
    302 }
    303 
    304293bool Frame::requestFrame(Element* ownerElement, const String& urlParam, const AtomicString& frameName)
    305294{
     
    320309        FrameLoadRequest frameRequest;
    321310        frameRequest.m_request = request;
    322         frame->openURLRequest(frameRequest);
     311        frame->urlSelected(frameRequest, 0);
    323312    } else
    324313        frame = loadSubframe(ownerElement, url, frameName, d->m_referrer);
     
    541530
    542531#pragma mark END LOADING FUNCTIONS
     532
     533FrameLoader* Frame::frameLoader()
     534{
     535    return d->m_frameLoader;
     536}
    543537
    544538KURL Frame::iconURL()
     
    13231317        // in both IE and NS (but not in Mozilla).... we can't easily do that
    13241318        // in Konqueror...
    1325         if (d->m_scheduledHistoryNavigationSteps == 0) // add && parent() to get only frames, but doesn't matter
    1326             openURL(url()); /// ## need args.reload=true?
     1319        if (d->m_scheduledHistoryNavigationSteps == 0)
     1320            urlSelected(url(), "", 0);
    13271321        else {
    13281322            if (d->m_extension) {
  • trunk/WebCore/page/Frame.h

    r17260 r17267  
    110110
    111111  // FIXME: Merge these methods and move them into FrameLoader.
    112   virtual bool openURL(const KURL&);
    113   virtual void openURLRequest(const FrameLoadRequest&) = 0;
    114112  void changeLocation(const DeprecatedString& URL, const String& referrer, bool lockHistory = true, bool userGesture = false);
    115113  virtual void urlSelected(const ResourceRequest&, const String& target, const Event* triggeringEvent, bool lockHistory = false);
  • trunk/WebCore/platform/gdk/FrameGdk.cpp

    r17264 r17267  
    201201}
    202202
    203 bool FrameGdk::openURL(const KURL& url)
    204 {
    205     if (!m_client)
    206         return false;
    207 
    208     m_client->openURL(url);
    209     return true;
    210 }
    211 
    212203void FrameGdk::submitForm(const FrameLoadRequest& frameLoadRequest)
    213204{
  • trunk/WebCore/platform/gdk/FrameGdk.h

    r17260 r17267  
    7979
    8080    void handleGdkEvent(GdkEvent*);
    81     virtual bool openURL(const KURL&);
    82     virtual void openURLRequest(const FrameLoadRequest&);
    8381    virtual void submitForm(const FrameLoadRequest&);
    8482    virtual void urlSelected(const FrameLoadRequest&);
  • trunk/WebCore/platform/gdk/TemporaryLinkStubs.cpp

    r17260 r17267  
    163163void FrameGdk::issueCutCommand() { notImplemented(); }
    164164void FrameGdk::issueCopyCommand() { notImplemented(); }
    165 void FrameGdk::openURLRequest(struct WebCore::FrameLoadRequest const&) { notImplemented(); }
    166165void FrameGdk::issueUndoCommand() { notImplemented(); }
    167166String FrameGdk::mimeTypeForFileName(String const&) const { notImplemented(); return String(); }
  • trunk/WebCore/platform/qt/FrameQt.cpp

    r17260 r17267  
    127127}
    128128
    129 bool FrameQt::openURL(const KURL& url)
    130 {
    131     if (!m_client)
    132         return false;
    133 
    134     m_client->openURL(url);
    135     return true;
    136 }
    137 
    138129void FrameQt::submitForm(const FrameLoadRequest& frameLoadRequest)
    139130{
     
    305296{
    306297    // FIXME: Implement this as soon a KPart is created...
    307 }
    308 
    309 void FrameQt::openURLRequest(const FrameLoadRequest& request)
    310 {
    311     urlSelected(request, 0);
    312298}
    313299
  • trunk/WebCore/platform/qt/FrameQt.h

    r17260 r17267  
    4949    virtual ~FrameQt();
    5050
    51     virtual bool openURL(const KURL&);
    52     virtual void openURLRequest(const FrameLoadRequest&);
    5351    virtual void submitForm(const FrameLoadRequest&);
    5452    virtual void urlSelected(const FrameLoadRequest&, const Event*);
  • trunk/WebCore/platform/win/TemporaryLinkStubs.cpp

    r17264 r17267  
    167167bool FrameWin::runJavaScriptPrompt(String const&, String const&, String &) { notImplemented(); return 0; }
    168168bool FrameWin::shouldInterruptJavaScript() { notImplemented(); return false; }
    169 bool FrameWin::openURL(KURL const&) { notImplemented(); return 0; }
    170169void FrameWin::print() { notImplemented(); }
    171170KJS::Bindings::Instance* FrameWin::getAppletInstanceForWidget(Widget*) { notImplemented(); return 0; }
     
    173172void FrameWin::issueCutCommand() { notImplemented(); }
    174173void FrameWin::issueCopyCommand() { notImplemented(); }
    175 void FrameWin::openURLRequest(const FrameLoadRequest&) { notImplemented(); }
    176174bool FrameWin::passWheelEventToChildWidget(Node*) { notImplemented(); return 0; }
    177175void FrameWin::issueUndoCommand() { notImplemented(); }
Note: See TracChangeset for help on using the changeset viewer.