⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176530 in webkit


Ignore:
Timestamp:
Nov 24, 2014, 4:26:35 PM (12 years ago)
Author:
benjamin@webkit.org
Message:

[WK2] Remove some bad stuff from WebPageProxy
https://bugs.webkit.org/show_bug.cgi?id=138896

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-11-24
Reviewed by Sam Weinig.

The state loadStateAtProcessExit does not seem to be used anywhere.

The state urlAtProcessExit only exists to forward the url from
WebPageProxy::resetStateAfterProcessExited() to the coordinated graphics code
WebView::processDidExit().

  • UIProcess/CoordinatedGraphics/WebView.cpp:

(WebKit::WebView::processDidExit):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::WebPageProxy):
(WebKit::WebPageProxy::resetStateAfterProcessExited):

  • UIProcess/WebPageProxy.h:

(WebKit::WebPageProxy::urlAtProcessExit): Deleted.
(WebKit::WebPageProxy::loadStateAtProcessExit): Deleted.

Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176522 r176530  
     12014-11-24  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        [WK2] Remove some bad stuff from WebPageProxy
     4        https://bugs.webkit.org/show_bug.cgi?id=138896
     5
     6        Reviewed by Sam Weinig.
     7
     8        The state loadStateAtProcessExit does not seem to be used anywhere.
     9
     10        The state urlAtProcessExit only exists to forward the url from
     11        WebPageProxy::resetStateAfterProcessExited() to the coordinated graphics code
     12        WebView::processDidExit().
     13
     14        * UIProcess/CoordinatedGraphics/WebView.cpp:
     15        (WebKit::WebView::processDidExit):
     16        * UIProcess/WebPageProxy.cpp:
     17        (WebKit::WebPageProxy::WebPageProxy):
     18        (WebKit::WebPageProxy::resetStateAfterProcessExited):
     19        * UIProcess/WebPageProxy.h:
     20        (WebKit::WebPageProxy::urlAtProcessExit): Deleted.
     21        (WebKit::WebPageProxy::loadStateAtProcessExit): Deleted.
     22
    1232014-11-24  Ryuan Choi  <ryuan.choi@navercorp.com>
    224
  • trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.cpp

    r176462 r176530  
    3535#include "NotImplemented.h"
    3636#include "ViewState.h"
     37#include "WebBackForwardList.h"
     38#include "WebBackForwardListItem.h"
    3739#include "WebContextMenuProxy.h"
    3840#include "WebPageProxy.h"
     
    346348void WebView::processDidExit()
    347349{
    348     m_client.webProcessCrashed(this, m_page->urlAtProcessExit());
     350    m_client.webProcessCrashed(this, m_page->backForwardList()->currentItem()->url());
    349351}
    350352
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r176462 r176530  
    285285    , m_viewWasEverInWindow(false)
    286286    , m_backForwardList(WebBackForwardList::create(*this))
    287     , m_loadStateAtProcessExit(FrameLoadState::State::Finished)
    288287#if PLATFORM(MAC) && !USE(ASYNC_NSTEXTINPUTCLIENT)
    289288    , m_temporarilyClosedComposition(false)
     
    45464545    m_isPageSuspended = false;
    45474546
    4548     if (m_mainFrame) {
    4549         m_urlAtProcessExit = m_mainFrame->url();
    4550         m_loadStateAtProcessExit = m_mainFrame->frameLoadState().m_state;
    4551     }
    4552 
    45534547    m_pageClient.processDidExit();
    45544548
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r176462 r176530  
    757757    bool isValid() const;
    758758
    759     const String& urlAtProcessExit() const { return m_urlAtProcessExit; }
    760     FrameLoadState::State loadStateAtProcessExit() const { return m_loadStateAtProcessExit; }
    761 
    762759#if ENABLE(DRAG_SUPPORT)
    763760    WebCore::DragOperation currentDragOperation() const { return m_currentDragOperation; }
     
    14211418    String m_toolTip;
    14221419
    1423     String m_urlAtProcessExit;
    1424     FrameLoadState::State m_loadStateAtProcessExit;
    1425 
    14261420    EditorState m_editorState;
    14271421#if PLATFORM(MAC) && !USE(ASYNC_NSTEXTINPUTCLIENT)
Note: See TracChangeset for help on using the changeset viewer.