Changeset 90829 in webkit


Ignore:
Timestamp:
Jul 12, 2011, 11:13:41 AM (14 years ago)
Author:
andreas.kling@nokia.com
Message:

[Qt][WK2] QDesktopWebView crashes if resized without web process.
https://bugs.webkit.org/show_bug.cgi?id=64371

Reviewed by Benjamin Poulain.

  • UIProcess/qt/QtWebPageProxy.cpp:

(QtWebPageProxy::paint): Remove an invalid assertion. The drawing
area may be null if the web process has crashed.
(QtWebPageProxy::setDrawingAreaSize): Fail silently if there is no
drawing area.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r90820 r90829  
     12011-07-12  Andreas Kling  <kling@webkit.org>
     2
     3        [Qt][WK2] QDesktopWebView crashes if resized without web process.
     4        https://bugs.webkit.org/show_bug.cgi?id=64371
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        * UIProcess/qt/QtWebPageProxy.cpp:
     9        (QtWebPageProxy::paint): Remove an invalid assertion. The drawing
     10        area may be null if the web process has crashed.
     11        (QtWebPageProxy::setDrawingAreaSize): Fail silently if there is no
     12        drawing area.
     13
    1142011-07-12  Andreas Kling  <kling@webkit.org>
    215
  • trunk/Source/WebKit2/UIProcess/qt/QtWebPageProxy.cpp

    r90820 r90829  
    468468void QtWebPageProxy::paint(QPainter* painter, QRect area)
    469469{
    470     ASSERT(m_webPageProxy->drawingArea());
    471470    if (m_webPageProxy->isValid())
    472471        paintContent(painter, area);
     
    586585void QtWebPageProxy::setDrawingAreaSize(const QSize& size)
    587586{
    588     ASSERT(m_webPageProxy->drawingArea());
     587    if (!m_webPageProxy->drawingArea())
     588        return;
    589589    m_webPageProxy->drawingArea()->setSize(IntSize(size), IntSize());
    590590}
Note: See TracChangeset for help on using the changeset viewer.