Changeset 172039 in webkit


Ignore:
Timestamp:
Aug 5, 2014 11:34:57 AM (10 years ago)
Author:
Antti Koivisto
Message:

REGRESSION: Extremely flashy scrolling while a page is still loading (because of flush throttling)
https://bugs.webkit.org/show_bug.cgi?id=135603
<rdar://problem/17876385>

Reviewed by Andreas Kling.

  • page/FrameView.cpp:

(WebCore::determineLayerFlushThrottleState):

Disable throttling after user has scrolled the page.
This is consistent with the speculative tiling. It also gets enabled on first scroll.

(WebCore::FrameView::setWasScrolledByUser):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r172036 r172039  
     12014-08-05  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION: Extremely flashy scrolling while a page is still loading (because of flush throttling)
     4        https://bugs.webkit.org/show_bug.cgi?id=135603
     5        <rdar://problem/17876385>
     6
     7        Reviewed by Andreas Kling.
     8
     9        * page/FrameView.cpp:
     10        (WebCore::determineLayerFlushThrottleState):
     11       
     12            Disable throttling after user has scrolled the page.
     13            This is consistent with the speculative tiling. It also gets enabled on first scroll.
     14
     15        (WebCore::FrameView::setWasScrolledByUser):
     16
    1172014-08-05  Martin Hodovan  <mhodovan.u-szeged@partner.samsung.com>
    218
  • trunk/Source/WebCore/page/FrameView.cpp

    r171896 r172039  
    22772277    if (!page.progress().isMainLoadProgressing())
    22782278        return 0;
     2279    // Scrolling during page loading disables throttling.
     2280    if (page.mainFrame().view()->wasScrolledByUser())
     2281        return 0;
    22792282    // Disable for image documents so large GIF animations don't get throttled during loading.
    22802283    auto* document = page.mainFrame().document();
     
    35673570        return;
    35683571    m_wasScrolledByUser = wasScrolledByUser;
     3572    updateLayerFlushThrottling();
    35693573    adjustTiledBackingCoverage();
    35703574}
Note: See TracChangeset for help on using the changeset viewer.