Changeset 152407 in webkit


Ignore:
Timestamp:
Jul 4, 2013 2:17:40 PM (11 years ago)
Author:
andersca@apple.com
Message:

Paint the page background if we haven't received our first update
https://bugs.webkit.org/show_bug.cgi?id=118402
<rdar://problem/13893308>

Reviewed by Simon Fraser.

Make sure that we always paint something when we haven't received our first update from the web process.

  • UIProcess/API/mac/WKView.mm:

(-[WKView drawRect:]):

  • UIProcess/DrawingAreaProxyImpl.h:

(WebKit::DrawingAreaProxyImpl::hasReceivedFirstUpdate):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r152403 r152407  
     12013-07-04  Anders Carlsson  <andersca@apple.com>
     2
     3        Paint the page background if we haven't received our first update
     4        https://bugs.webkit.org/show_bug.cgi?id=118402
     5        <rdar://problem/13893308>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Make sure that we always paint something when we haven't received our first update from the web process.
     10
     11        * UIProcess/API/mac/WKView.mm:
     12        (-[WKView drawRect:]):
     13        * UIProcess/DrawingAreaProxyImpl.h:
     14        (WebKit::DrawingAreaProxyImpl::hasReceivedFirstUpdate):
     15
    1162013-07-04  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r152190 r152407  
    21662166            // If the window doesn't have a valid backing store, we need to fill the parts of the page that we
    21672167            // didn't paint with the background color (white or clear), to avoid garbage in those areas.
    2168             if (!_data->_windowHasValidBackingStore) {
     2168            if (!_data->_windowHasValidBackingStore || !drawingArea->hasReceivedFirstUpdate()) {
    21692169                Vector<IntRect> unpaintedRects = unpaintedRegion.rects();
    21702170                for (size_t i = 0; i < unpaintedRects.size(); ++i)
  • trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h

    r142160 r152407  
    5252    bool isInAcceleratedCompositingMode() const { return !m_layerTreeContext.isEmpty(); }
    5353#endif
     54
     55    bool hasReceivedFirstUpdate() const { return m_hasReceivedFirstUpdate; }
    5456
    5557private:
Note: See TracChangeset for help on using the changeset viewer.