da651a9821
Re-enable 'OutsideViewport' rAF throttling https://bugs.webkit.org/show_bug.cgi?id=211482 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2020-05-13 Reviewed by Darin Adler. Test: fast/animation/request-animation-frame-throttling-outside-viewport.html Make preferredFrameInterval return AggressiveThrottlingAnimationInterval if the OutsideViewport throttling reason exists. Add an internal setting for enabling 'OutsideViewport' rAF throttling. It is on by default but it is off by default for DRT and WTR. An Internals API is added to enable it for specific tests which want to test its functionality. * page/FrameView.cpp: (WebCore::FrameView::updateScriptedAnimationsAndTimersThrottlingState): * page/Page.cpp: (WebCore::Page::setOutsideViewportThrottlingEnabledForTesting): * page/Page.h: (WebCore::Page::canUpdateThrottlingReason const): * platform/graphics/AnimationFrameRate.h: (WebCore::preferredFrameInterval): (WebCore::operator<<): * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): (WebCore::Internals::setOutsideViewportThrottlingEnabled): * testing/Internals.h: * testing/Internals.idl: LayoutTests: Enable the 'OutsideViewport' rAF throttling https://bugs.webkit.org/show_bug.cgi?id=211482 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2020-05-13 Reviewed by Darin Adler. * fast/animation/request-animation-frame-throttle-subframe.html: Enable 'OutsideViewport' rAF throttling for the layout test. * fast/animation/request-animation-frame-throttling-outside-viewport-expected.txt: Added. * fast/animation/request-animation-frame-throttling-outside-viewport.html: Added. * fast/animation/resources/frame-with-animation-2.html: Added. A new test to verify the OutsideViewport throttling case. Canonical link: https://commits.webkit.org/224760@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261663 268f45cc-cd09-0410-ab3c-d52691b4dbfc |
||
---|---|---|
.. | ||
frame-with-animation-2.html | ||
frame-with-animation.html | ||
requestAnimationFrame-frame-2.html | ||
requestAnimationFrame-frame.html |