Changeset 100617 in webkit


Ignore:
Timestamp:
Nov 17, 2011 6:51:52 AM (12 years ago)
Author:
alexis.menard@openbossa.org
Message:

[Qt][WK2] Cleanup dead code in QtWebPageProxy.
https://bugs.webkit.org/show_bug.cgi?id=72608

Reviewed by Simon Hausmann.

Remove some dead code after we merged our views.
QQuickWebView is now using AC which means that this
path is never called now.

  • UIProcess/qt/QtWebPageProxy.cpp:

(QtWebPageProxy::didReceiveDownloadResponse):

  • UIProcess/qt/QtWebPageProxy.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r100607 r100617  
     12011-11-17  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        [Qt][WK2] Cleanup dead code in QtWebPageProxy.
     4        https://bugs.webkit.org/show_bug.cgi?id=72608
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Remove some dead code after we merged our views.
     9        QQuickWebView is now using AC which means that this
     10        path is never called now.
     11
     12        * UIProcess/qt/QtWebPageProxy.cpp:
     13        (QtWebPageProxy::didReceiveDownloadResponse):
     14        * UIProcess/qt/QtWebPageProxy.h:
     15
    1162011-11-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
    217
  • trunk/Source/WebKit2/UIProcess/qt/QtWebPageProxy.cpp

    r100602 r100617  
    608608}
    609609
    610 void QtWebPageProxy::paint(QPainter* painter, const QRect& area)
    611 {
    612     if (m_webPageProxy->isValid())
    613         paintContent(painter, area);
    614     else
    615         painter->fillRect(area, Qt::white);
    616 }
    617 
    618610bool QtWebPageProxy::canGoBack() const
    619611{
     
    820812    // Now that our downloadItem has everything we need we can emit downloadRequested.
    821813    m_viewInterface->downloadRequested(download);
    822 }
    823 
    824 void QtWebPageProxy::paintContent(QPainter* painter, const QRect& area)
    825 {
    826     // FIXME: Do something with the unpainted region?
    827     WebCore::Region unpaintedRegion;
    828     static_cast<DrawingAreaProxyImpl*>(m_webPageProxy->drawingArea())->paint(painter, area, unpaintedRegion);
    829814}
    830815
  • trunk/Source/WebKit2/UIProcess/qt/QtWebPageProxy.h

    r100590 r100617  
    148148    int loadProgress() const { return m_loadProgress; }
    149149
    150     void paint(QPainter*, const QRect&);
    151 
    152150    bool canGoBack() const;
    153151    void goBack();
     
    212210
    213211protected:
    214     virtual void paintContent(QPainter* painter, const QRect& area);
    215212    RefPtr<WebKit::WebPageProxy> m_webPageProxy;
    216213    WebKit::QtViewInterface* const m_viewInterface;
Note: See TracChangeset for help on using the changeset viewer.