Changeset 84698 in webkit


Ignore:
Timestamp:
Apr 22, 2011 4:01:04 PM (13 years ago)
Author:
jer.noble@apple.com
Message:

2011-04-22 Dan Bernstein <mitz@apple.com>

Reviewed by Sam Weinig.

Paint the bounding rect of the dirty region instead of individual rectangles when the region
covers at least 3/4 of its bounds.

  • WebProcess/WebPage/DrawingAreaImpl.cpp: (WebKit::shouldPaintBoundsRect): Use floating point math so that the logic that was supposed to achieve this actually works.
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r84682 r84698  
    99        (WebKit::shouldPaintBoundsRect): Use floating point math so that the logic that was supposed to
    1010        achieve this actually works.
     11
     122011-04-22  Jer Noble  <jer.noble@apple.com>
     13
     14        Reviewed by Maciej Stachowiak.
     15
     16        Crash at WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation + 79
     17        https://bugs.webkit.org/show_bug.cgi?id=59225
     18
     19        * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
     20        (WebKit::WebFullScreenManagerMac::beginEnterFullScreenAnimation): Guard against
     21            m_fullScreenRootLayer being NULL.
     22        (WebKit::WebFullScreenManagerMac::beginExitFullScreenAnimation): Ditto.
    1123
    12242011-04-22  Jer Noble  <jer.noble@apple.com>
  • trunk/Source/WebKit2/WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm

    r81911 r84698  
    174174{
    175175    ASSERT(m_element);
    176     ASSERT(m_fullScreenRootLayer);
     176   
     177    if (!m_fullScreenRootLayer) {
     178        // If we don't have a root layer, we can't animate in and out of full screen
     179        this->beganEnterFullScreenAnimation();
     180        this->finishedEnterFullScreenAnimation(true);
     181        return;
     182    }
    177183
    178184    IntRect destinationFrame = getFullScreenRect();
     
    223229{
    224230    ASSERT(m_element);
    225     ASSERT(m_fullScreenRootLayer);
     231   
     232    if (!m_fullScreenRootLayer) {
     233        // If we don't have a root layer, we can't animate in and out of full screen
     234        this->beganExitFullScreenAnimation();
     235        this->finishedExitFullScreenAnimation(true);
     236        return;
     237    }
    226238
    227239    IntRect destinationFrame = getFullScreenRect();
Note: See TracChangeset for help on using the changeset viewer.