Changeset 76179 in webkit


Ignore:
Timestamp:
Jan 19, 2011 4:27:47 PM (13 years ago)
Author:
andersca@apple.com
Message:

2011-01-19 Anders Carlsson <andersca@apple.com>

Reviewed by Sam Weinig.

When resizing, the web process should repaint the page
https://bugs.webkit.org/show_bug.cgi?id=52764

  • UIProcess/DrawingAreaProxyImpl.cpp: (WebKit::DrawingAreaProxyImpl::didSetSize): Incorporate the update.

(WebKit::DrawingAreaProxyImpl::incorporateUpdate):
Return early if the update bounds rect is empty. This can happen if painting is
disabled and we get a DidSetSize message.

  • WebProcess/WebPage/DrawingAreaImpl.cpp: (WebKit::DrawingAreaImpl::setSize): If painting is disabled, just send back an empty UpdateInfo struct. Otherwise, paint and fill in the UpdateInfo struct.

(WebKit::DrawingAreaImpl::display):
Assert that painting is not disabled.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r76167 r76179  
     12011-01-19  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        When resizing, the web process should repaint the page
     6        https://bugs.webkit.org/show_bug.cgi?id=52764
     7
     8        * UIProcess/DrawingAreaProxyImpl.cpp:
     9        (WebKit::DrawingAreaProxyImpl::didSetSize):
     10        Incorporate the update.
     11
     12        (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
     13        Return early if the update bounds rect is empty. This can happen if painting is
     14        disabled and we get a DidSetSize message.
     15
     16        * WebProcess/WebPage/DrawingAreaImpl.cpp:
     17        (WebKit::DrawingAreaImpl::setSize):
     18        If painting is disabled, just send back an empty UpdateInfo struct. Otherwise,
     19        paint and fill in the UpdateInfo struct.
     20
     21        (WebKit::DrawingAreaImpl::display):
     22        Assert that painting is not disabled.
     23
    1242011-01-19  Alexey Proskuryakov  <ap@apple.com>
    225
  • trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp

    r76157 r76179  
    126126
    127127    m_backingStore = nullptr;
     128
     129    incorporateUpdate(updateInfo);
    128130}
    129131
    130132void DrawingAreaProxyImpl::incorporateUpdate(const UpdateInfo& updateInfo)
    131133{
    132     // FIXME: Check for the update bounds being empty here.
     134    if (updateInfo.updateRectBounds.isEmpty())
     135        return;
    133136
    134137    if (!m_backingStore)
  • trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp

    r76157 r76179  
    143143
    144144    UpdateInfo updateInfo;
    145     updateInfo.viewSize = m_webPage->size();
    146 
    147     // FIXME: Repaint.
     145
     146    if (m_isPaintingSuspended)
     147        updateInfo.viewSize = m_webPage->size();
     148    else
     149        display(updateInfo);
    148150
    149151    m_webPage->send(Messages::DrawingAreaProxy::DidSetSize(updateInfo));
     
    232234void DrawingAreaImpl::display(UpdateInfo& updateInfo)
    233235{
     236    ASSERT(!m_isPaintingSuspended);
     237
    234238    // FIXME: It would be better if we could avoid painting altogether when there is a custom representation.
    235239    if (m_webPage->mainFrameHasCustomRepresentation())
Note: See TracChangeset for help on using the changeset viewer.