[webkit-changes] [WebKit/WebKit] 3a3482: Modernize remote scrolling coordinator code
Alex Christensen
noreply at github.com
Thu Aug 10 14:07:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3a348283c6c0b9d2dca551b74e2d7a9ff00db420
https://github.com/WebKit/WebKit/commit/3a348283c6c0b9d2dca551b74e2d7a9ff00db420
Author: Alex Christensen <achristensen at apple.com>
Date: 2023-08-10 (Thu, 10 Aug 2023)
Changed paths:
M Source/WebCore/page/scrolling/ScrollingStateTree.cpp
M Source/WebCore/page/scrolling/ScrollingStateTree.h
M Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp
M Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.h
M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm
M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.h
M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.mm
Log Message:
-----------
Modernize remote scrolling coordinator code
https://bugs.webkit.org/show_bug.cgi?id=259993
rdar://113651997
Reviewed by Simon Fraser.
Remove some unnecessary headers including other headers.
Use ThreadSafeWeakPtr instead of storing a raw pointer.
Make RemoteScrollingCoordinatorTransaction::decode return std::optional.
Use return value instead of out-param in RemoteScrollingCoordinator::buildTransaction.
* Source/WebCore/page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::setHasChangedProperties):
(WebCore::ScrollingStateTree::createUnparentedNode):
(WebCore::ScrollingStateTree::insertNode):
* Source/WebCore/page/scrolling/ScrollingStateTree.h:
* Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
(WebKit::RemoteScrollingCoordinatorTransaction::RemoteScrollingCoordinatorTransaction):
(WebKit::RemoteScrollingCoordinatorTransaction::decode):
* Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.h:
(WebKit::RemoteScrollingCoordinatorTransaction::clearScrollLatching const):
(WebKit::RemoteScrollingCoordinatorTransaction::setStateTreeToEncode): Deleted.
(WebKit::RemoteScrollingCoordinatorTransaction::setClearScrollLatching): Deleted.
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::updateRendering):
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.h:
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.mm:
(WebKit::RemoteScrollingCoordinator::buildTransaction):
Canonical link: https://commits.webkit.org/266779@main
More information about the webkit-changes
mailing list