Bug 240105

Summary: webview can not scroll when using WebKit2UseRemoteLayerTreeDrawingArea
Product: WebKit Reporter: dreamer_swift
Component: CompositingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac (Intel)   
OS: macOS 12   

Description dreamer_swift 2022-05-04 20:21:37 PDT
webview can not scroll when using WebKit2UseRemoteLayerTreeDrawingArea


RemoteLayerTreeDrawingArea
    bool usesDelegatedScrolling() const override { return true; }
    bool usesDelegatedPageScaling() const override { return true; }

usesDelegatedScrolling return true, but ui side not impl scrollview and scroll function

==================================================================================

void PageClientImpl::requestScroll(const FloatPoint& scrollPosition, const IntPoint& scrollOrigin, ScrollIsAnimated)
{
}

WebCore::FloatPoint PageClientImpl::viewScrollPosition()
{
    return { };
}

==================================================================================
so the function "scrollingTree().setNeedsApplyLayerPositionsAfterCommit();" is not called when scroll event fired
Comment 1 Simon Fraser (smfr) 2022-05-04 20:30:59 PDT
Yes, this is not a supported configuration right now.
Comment 2 dreamer_swift 2022-05-04 21:08:07 PDT
Any plans for supporting RemoteLayerTreeDrawing in macos?
Comment 3 dreamer_swift 2022-05-04 21:08:26 PDT
(In reply to Simon Fraser (smfr) from comment #1)
> Yes, this is not a supported configuration right now.

Any plans for supporting RemoteLayerTreeDrawing in macos?
Comment 4 Simon Fraser (smfr) 2022-05-04 21:26:34 PDT
It requires a large amount of refactoring work, so maybe, at some point. Why is this of interest to you?
Comment 5 dreamer_swift 2022-05-04 21:50:57 PDT
(In reply to Simon Fraser (smfr) from comment #4)
> It requires a large amount of refactoring work, so maybe, at some point. Why
> is this of interest to you?

I would like to add a native video layer to some node, such as a matel layer, RemoteLayerTreeDrawingArea provide the whole layer tree for me to do this. if RemoteLayerTreeDrawingArea is not supported right now, do you have any suggestions about it?
Comment 6 Radar WebKit Bug Importer 2022-05-11 20:22:13 PDT
<rdar://problem/93147780>