@@ -74,7 +74,7 @@ void ThreadedScrollingTreeScrollingNodeDelegate::updateUserScrollInProgressForEv
7474 m_scrollController.updateGestureInProgressState (wheelEvent);
7575 bool isInUserScroll = m_scrollController.isUserScrollInProgress ();
7676 if (isInUserScroll != wasInUserScroll)
77- protectedScrollingNode ()->setUserScrollInProgress (isInUserScroll);
77+ scrollingNode ()->setUserScrollInProgress (isInUserScroll);
7878}
7979
8080bool ThreadedScrollingTreeScrollingNodeDelegate::startAnimatedScrollToPosition (FloatPoint destinationPosition)
@@ -97,20 +97,20 @@ void ThreadedScrollingTreeScrollingNodeDelegate::serviceScrollAnimation(Monotoni
9797std::unique_ptr<ScrollingEffectsControllerTimer> ThreadedScrollingTreeScrollingNodeDelegate::createTimer (Function<void ()>&& function)
9898{
9999 // This is only used for a scroll snap timer.
100- return WTF::makeUnique<ScrollingEffectsControllerTimer>(RunLoop::currentSingleton (), [function = WTFMove (function), protectedNode = Ref { scrollingNode () } ] {
101- Locker locker { protectedNode ->scrollingTree ()->treeLock () };
100+ return WTF::makeUnique<ScrollingEffectsControllerTimer>(RunLoop::currentSingleton (), [function = WTFMove (function), scrollingNode = this -> scrollingNode ()] {
101+ Locker locker { scrollingNode ->scrollingTree ()->treeLock () };
102102 function ();
103103 });
104104}
105105
106106void ThreadedScrollingTreeScrollingNodeDelegate::startAnimationCallback (ScrollingEffectsController&)
107107{
108- protectedScrollingNode ()->setScrollAnimationInProgress (true );
108+ scrollingNode ()->setScrollAnimationInProgress (true );
109109}
110110
111111void ThreadedScrollingTreeScrollingNodeDelegate::stopAnimationCallback (ScrollingEffectsController&)
112112{
113- protectedScrollingNode ()->setScrollAnimationInProgress (false );
113+ scrollingNode ()->setScrollAnimationInProgress (false );
114114}
115115
116116bool ThreadedScrollingTreeScrollingNodeDelegate::allowsHorizontalScrolling () const
@@ -125,7 +125,7 @@ bool ThreadedScrollingTreeScrollingNodeDelegate::allowsVerticalScrolling() const
125125
126126void ThreadedScrollingTreeScrollingNodeDelegate::immediateScrollBy (const FloatSize& delta, ScrollClamping clamping)
127127{
128- protectedScrollingNode ()->scrollBy (delta, clamping);
128+ scrollingNode ()->scrollBy (delta, clamping);
129129}
130130
131131void ThreadedScrollingTreeScrollingNodeDelegate::adjustScrollPositionToBoundsIfNecessary ()
@@ -152,32 +152,32 @@ float ThreadedScrollingTreeScrollingNodeDelegate::pageScaleFactor() const
152152
153153void ThreadedScrollingTreeScrollingNodeDelegate::willStartAnimatedScroll ()
154154{
155- protectedScrollingNode ()->willStartAnimatedScroll ();
155+ scrollingNode ()->willStartAnimatedScroll ();
156156}
157157
158158void ThreadedScrollingTreeScrollingNodeDelegate::didStopAnimatedScroll ()
159159{
160- protectedScrollingNode ()->didStopAnimatedScroll ();
160+ scrollingNode ()->didStopAnimatedScroll ();
161161}
162162
163163void ThreadedScrollingTreeScrollingNodeDelegate::willStartWheelEventScroll ()
164164{
165- protectedScrollingNode ()->willStartWheelEventScroll ();
165+ scrollingNode ()->willStartWheelEventScroll ();
166166}
167167
168168void ThreadedScrollingTreeScrollingNodeDelegate::didStopWheelEventScroll ()
169169{
170- protectedScrollingNode ()->didStopWheelEventScroll ();
170+ scrollingNode ()->didStopWheelEventScroll ();
171171}
172172
173173void ThreadedScrollingTreeScrollingNodeDelegate::willStartScrollSnapAnimation ()
174174{
175- protectedScrollingNode ()->setScrollSnapInProgress (true );
175+ scrollingNode ()->setScrollSnapInProgress (true );
176176}
177177
178178void ThreadedScrollingTreeScrollingNodeDelegate::didStopScrollSnapAnimation ()
179179{
180- protectedScrollingNode ()->setScrollSnapInProgress (false );
180+ scrollingNode ()->setScrollSnapInProgress (false );
181181 didStopAnimatedScroll ();
182182}
183183
@@ -196,7 +196,7 @@ void ThreadedScrollingTreeScrollingNodeDelegate::deferWheelEventTestCompletionFo
196196 return ;
197197
198198 // Just use the scrolling node ID as the identifier, since we know this is coming from a ScrollingEffectsController associated with this node.
199- scrollingTree ()->deferWheelEventTestCompletionForReason (scrollingNode (). scrollingNodeID (), reason);
199+ scrollingTree ()->deferWheelEventTestCompletionForReason (scrollingNode ()-> scrollingNodeID (), reason);
200200}
201201
202202void ThreadedScrollingTreeScrollingNodeDelegate::removeWheelEventTestCompletionDeferralForReason (ScrollingNodeID, WheelEventTestMonitor::DeferReason reason) const
@@ -205,7 +205,7 @@ void ThreadedScrollingTreeScrollingNodeDelegate::removeWheelEventTestCompletionD
205205 return ;
206206
207207 // Just use the scrolling node ID as the identifier, since we know this is coming from a ScrollingEffectsController associated with this node.
208- scrollingTree ()->removeWheelEventTestCompletionDeferralForReason (scrollingNode (). scrollingNodeID (), reason);
208+ scrollingTree ()->removeWheelEventTestCompletionDeferralForReason (scrollingNode ()-> scrollingNodeID (), reason);
209209}
210210
211211FloatPoint ThreadedScrollingTreeScrollingNodeDelegate::adjustedScrollPosition (const FloatPoint& position) const
@@ -230,7 +230,7 @@ void ThreadedScrollingTreeScrollingNodeDelegate::handleKeyboardScrollRequest(con
230230
231231ScrollingNodeID ThreadedScrollingTreeScrollingNodeDelegate::scrollingNodeIDForTesting () const
232232{
233- return scrollingNode (). scrollingNodeID ();
233+ return scrollingNode ()-> scrollingNodeID ();
234234}
235235
236236
0 commit comments