⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 107332 in webkit


Ignore:
Timestamp:
Feb 9, 2012, 5:54:43 PM (15 years ago)
Author:
andersca@apple.com
Message:

FrameView::addSlowRepaintObject() doesn't update m_canBlitOnScroll correctly
https://bugs.webkit.org/show_bug.cgi?id=78291

Reviewed by Dan Bernstein.

m_slowRepaintObjectCount needs to be incremented before calling updateCanBlitOnScrollRecursively(),
because otherwise useSlowRepaints() will return false even though we have to use slow repaints.

I was unable to make a layout test for this because it requires that updateCanBlitOnScrollRecursively() isn't
called again after m_slowRepaintObjectCount has been incremented.

  • page/FrameView.cpp:

(WebCore::FrameView::addSlowRepaintObject):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107317 r107332  
     12012-02-09  Anders Carlsson  <andersca@apple.com>
     2
     3        FrameView::addSlowRepaintObject() doesn't update m_canBlitOnScroll correctly
     4        https://bugs.webkit.org/show_bug.cgi?id=78291
     5
     6        Reviewed by Dan Bernstein.
     7
     8        m_slowRepaintObjectCount needs to be incremented before calling updateCanBlitOnScrollRecursively(),
     9        because otherwise useSlowRepaints() will return false even though we have to use slow repaints.
     10
     11        I was unable to make a layout test for this because it requires that updateCanBlitOnScrollRecursively() isn't
     12        called again after m_slowRepaintObjectCount has been incremented.
     13
     14        * page/FrameView.cpp:
     15        (WebCore::FrameView::addSlowRepaintObject):
     16
    1172012-02-09  Ojan Vafai  <ojan@chromium.org>
    218
  • trunk/Source/WebCore/page/FrameView.cpp

    r107270 r107332  
    13291329void FrameView::addSlowRepaintObject()
    13301330{
    1331     if (!m_slowRepaintObjectCount)
     1331    if (!m_slowRepaintObjectCount++)
    13321332        updateCanBlitOnScrollRecursively();
    1333     m_slowRepaintObjectCount++;
    13341333}
    13351334
Note: See TracChangeset for help on using the changeset viewer.