DescriptionMerge 139024
> Add a setting to enable composited scrolling for frames
> https://bugs.webkit.org/show_bug.cgi?id=104950
>
> Reviewed by James Robinson.
>
> Source/WebCore:
>
> Test: compositing/iframes/iframe-composited-scrolling.html
>
> * page/FrameView.cpp:
> (WebCore::FrameView::usesCompositedScrolling): Returns true if compositedScrollingForFramesEnabled and the frame is in forced compositing mode (which is set when forced compositing mode and compositing for scrollable frames are enabled), so that ScrollingCoordinator won't include the region of the frame in the nonFastScrollableRegion.
> (WebCore):
> * page/FrameView.h:
> (FrameView):
> * page/Settings.in: Add compositedScrollingForFramesEnabled setting.
> * page/scrolling/chromium/ScrollingCoordinatorChromium.cpp:
> (WebCore::ScrollingCoordinatorChromium::frameViewLayoutUpdated): Changed the comment about which ScrollableAreas are non-fast-scrollable.
> * rendering/RenderLayerCompositor.cpp:
> (WebCore::RenderLayerCompositor::frameViewDidScroll): Let ScrollongCoordinator know when the scrolling changes for a frame with composited scrolling enabled.
>
> LayoutTests:
>
> Test case to ensure iframes are not added into nonFastScrollableRegion when acceleratedCompositingForScrollableFramesEnabled and compositedScrollingForFramesEnabled.
>
> * compositing/iframes/iframe-composited-scrolling-expected.txt: Added.
> * compositing/iframes/iframe-composited-scrolling.html: Added.
>
TBR=wangxianzhu@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=139632
Patch Set 1 #
Messages
Total messages: 1 (0 generated)
|