Changeset 76536 in webkit


Ignore:
Timestamp:
Jan 24, 2011 11:33:52 AM (13 years ago)
Author:
andersca@apple.com
Message:

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

Reviewed by Sam Weinig.

Wait for half a second if we're asked to paint when receiving a DidSetSize message
https://bugs.webkit.org/show_bug.cgi?id=53028

  • UIProcess/DrawingAreaProxyImpl.cpp: (WebKit::DrawingAreaProxyImpl::paint):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r76535 r76536  
     12011-01-24  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Wait for half a second if we're asked to paint when receiving a DidSetSize message
     6        https://bugs.webkit.org/show_bug.cgi?id=53028
     7
     8        * UIProcess/DrawingAreaProxyImpl.cpp:
     9        (WebKit::DrawingAreaProxyImpl::paint):
     10
    1112011-01-24  Anders Carlsson  <andersca@apple.com>
    212
  • trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp

    r76393 r76536  
    2727
    2828#include "DrawingAreaMessages.h"
     29#include "DrawingAreaProxyMessages.h"
    2930#include "Region.h"
    3031#include "UpdateInfo.h"
     
    6162    if (!m_backingStore)
    6263        return;
     64
     65    if (m_isWaitingForDidSetSize) {
     66        if (!m_webPageProxy->isValid())
     67            return;
     68        if (m_webPageProxy->process()->isLaunching())
     69            return;
     70
     71        // The timeout, in seconds, we use when waiting for a DidSetSize message when we're asked to paint.
     72        static const double didSetSizeTimeout = 0.5;
     73        m_webPageProxy->process()->connection()->waitForAndDispatchImmediately<Messages::DrawingAreaProxy::DidSetSize>(m_webPageProxy->pageID(), didSetSizeTimeout);
     74    }
    6375
    6476    m_backingStore->paint(context, rect);
Note: See TracChangeset for help on using the changeset viewer.