⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286725 in webkit


Ignore:
Timestamp:
Dec 8, 2021, 1:26:07 PM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r285526. rdar://problem/85928816

Add runtime flag for momentum scrolling
https://bugs.webkit.org/show_bug.cgi?id=232898
<rdar://problem/85211338>

Reviewed by Simon Fraser.

  • Scripts/Preferences/WebPreferencesInternal.yaml: Add the preference.
  • page/scrolling/AsyncScrollingCoordinator.cpp: (WebCore::AsyncScrollingCoordinator::setFrameScrollingNodeState):
  • page/scrolling/ScrollingStateFrameScrollingNode.cpp: (WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode): (WebCore::ScrollingStateFrameScrollingNode::applicableProperties const): (WebCore::ScrollingStateFrameScrollingNode::setMomentumScrollingAnimatorEnabled):
  • page/scrolling/ScrollingStateFrameScrollingNode.h:
  • page/scrolling/ScrollingStateNode.h:
  • page/scrolling/ScrollingTree.cpp: (WebCore::ScrollingTree::commitTreeState):
  • page/scrolling/ScrollingTree.h: (WebCore::ScrollingTree::momentumScrollingAnimatorEnabled const): (WebCore::ScrollingTree::setMomentumScrollingAnimatorEnabled):
  • page/scrolling/ScrollingTreeScrollingNode.cpp: (WebCore::ScrollingTreeScrollingNode::momentumScrollingAnimatorEnabled const):
  • page/scrolling/ScrollingTreeScrollingNode.h:
  • page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.h:
  • page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.mm: (WebCore::ScrollingTreeScrollingNodeDelegateMac::momentumScrollingAnimatorEnabled const):
  • platform/ScrollingEffectsController.h: (WebCore::ScrollingEffectsControllerClient::momentumScrollingAnimatorEnabled const):
  • Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp: (ArgumentCoder<ScrollingStateFrameScrollingNode>::encode): (ArgumentCoder<ScrollingStateFrameScrollingNode>::decode):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285526 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.4.2.1-branch/Source
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.4.2.1-branch/Source/WTF/ChangeLog

    r286717 r286725  
     12021-12-03  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r285526. rdar://problem/85928816
     4
     5    Add runtime flag for momentum scrolling
     6    https://bugs.webkit.org/show_bug.cgi?id=232898
     7    <rdar://problem/85211338>
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    * Scripts/Preferences/WebPreferencesInternal.yaml:
     12    Add the preference.
     13   
     14    * page/scrolling/AsyncScrollingCoordinator.cpp:
     15    (WebCore::AsyncScrollingCoordinator::setFrameScrollingNodeState):
     16    * page/scrolling/ScrollingStateFrameScrollingNode.cpp:
     17    (WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode):
     18    (WebCore::ScrollingStateFrameScrollingNode::applicableProperties const):
     19    (WebCore::ScrollingStateFrameScrollingNode::setMomentumScrollingAnimatorEnabled):
     20    * page/scrolling/ScrollingStateFrameScrollingNode.h:
     21    * page/scrolling/ScrollingStateNode.h:
     22    * page/scrolling/ScrollingTree.cpp:
     23    (WebCore::ScrollingTree::commitTreeState):
     24    * page/scrolling/ScrollingTree.h:
     25    (WebCore::ScrollingTree::momentumScrollingAnimatorEnabled const):
     26    (WebCore::ScrollingTree::setMomentumScrollingAnimatorEnabled):
     27    * page/scrolling/ScrollingTreeScrollingNode.cpp:
     28    (WebCore::ScrollingTreeScrollingNode::momentumScrollingAnimatorEnabled const):
     29    * page/scrolling/ScrollingTreeScrollingNode.h:
     30    * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.h:
     31    * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.mm:
     32    (WebCore::ScrollingTreeScrollingNodeDelegateMac::momentumScrollingAnimatorEnabled const):
     33    * platform/ScrollingEffectsController.h:
     34    (WebCore::ScrollingEffectsControllerClient::momentumScrollingAnimatorEnabled const):
     35   
     36    * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
     37    (ArgumentCoder<ScrollingStateFrameScrollingNode>::encode):
     38    (ArgumentCoder<ScrollingStateFrameScrollingNode>::decode):
     39   
     40    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     41
     42    2021-11-09  Tim Horton  <timothy_horton@apple.com>
     43
     44            Add runtime flag for momentum scrolling
     45            https://bugs.webkit.org/show_bug.cgi?id=232898
     46            <rdar://problem/85211338>
     47
     48            Reviewed by Simon Fraser.
     49
     50            * Scripts/Preferences/WebPreferencesInternal.yaml:
     51            Add the preference.
     52
    1532021-12-01  Alan Coon  <alancoon@apple.com>
    254
  • branches/safari-612.4.2.1-branch/Source/WTF/Scripts/Preferences/WebPreferencesInternal.yaml

    r279355 r286725  
    537537      default: false
    538538
     539MomentumScrollingAnimatorEnabled:
     540  type: bool
     541  humanReadableName: "Momentum Scrolling Animator"
     542  humanReadableDescription: "Drive momentum scrolling via an internal animator instead of using momentum events"
     543  defaultValue:
     544    WebKitLegacy:
     545      "PLATFORM(MAC)": true
     546      default: false
     547    WebKit:
     548      "PLATFORM(MAC)": true
     549      default: false
     550    WebCore:
     551      "PLATFORM(MAC)": true
     552      default: false
     553
    539554MouseEventsSimulationEnabled:
    540555  type: bool
  • branches/safari-612.4.2.1-branch/Source/WebCore/ChangeLog

    r286723 r286725  
     12021-12-03  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r285526. rdar://problem/85928816
     4
     5    Add runtime flag for momentum scrolling
     6    https://bugs.webkit.org/show_bug.cgi?id=232898
     7    <rdar://problem/85211338>
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    * Scripts/Preferences/WebPreferencesInternal.yaml:
     12    Add the preference.
     13   
     14    * page/scrolling/AsyncScrollingCoordinator.cpp:
     15    (WebCore::AsyncScrollingCoordinator::setFrameScrollingNodeState):
     16    * page/scrolling/ScrollingStateFrameScrollingNode.cpp:
     17    (WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode):
     18    (WebCore::ScrollingStateFrameScrollingNode::applicableProperties const):
     19    (WebCore::ScrollingStateFrameScrollingNode::setMomentumScrollingAnimatorEnabled):
     20    * page/scrolling/ScrollingStateFrameScrollingNode.h:
     21    * page/scrolling/ScrollingStateNode.h:
     22    * page/scrolling/ScrollingTree.cpp:
     23    (WebCore::ScrollingTree::commitTreeState):
     24    * page/scrolling/ScrollingTree.h:
     25    (WebCore::ScrollingTree::momentumScrollingAnimatorEnabled const):
     26    (WebCore::ScrollingTree::setMomentumScrollingAnimatorEnabled):
     27    * page/scrolling/ScrollingTreeScrollingNode.cpp:
     28    (WebCore::ScrollingTreeScrollingNode::momentumScrollingAnimatorEnabled const):
     29    * page/scrolling/ScrollingTreeScrollingNode.h:
     30    * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.h:
     31    * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.mm:
     32    (WebCore::ScrollingTreeScrollingNodeDelegateMac::momentumScrollingAnimatorEnabled const):
     33    * platform/ScrollingEffectsController.h:
     34    (WebCore::ScrollingEffectsControllerClient::momentumScrollingAnimatorEnabled const):
     35   
     36    * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
     37    (ArgumentCoder<ScrollingStateFrameScrollingNode>::encode):
     38    (ArgumentCoder<ScrollingStateFrameScrollingNode>::decode):
     39   
     40    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     41
     42    2021-11-09  Tim Horton  <timothy_horton@apple.com>
     43
     44            Add runtime flag for momentum scrolling
     45            https://bugs.webkit.org/show_bug.cgi?id=232898
     46            <rdar://problem/85211338>
     47
     48            Reviewed by Simon Fraser.
     49
     50            * page/scrolling/AsyncScrollingCoordinator.cpp:
     51            (WebCore::AsyncScrollingCoordinator::setFrameScrollingNodeState):
     52            * page/scrolling/ScrollingStateFrameScrollingNode.cpp:
     53            (WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode):
     54            (WebCore::ScrollingStateFrameScrollingNode::applicableProperties const):
     55            (WebCore::ScrollingStateFrameScrollingNode::setMomentumScrollingAnimatorEnabled):
     56            * page/scrolling/ScrollingStateFrameScrollingNode.h:
     57            * page/scrolling/ScrollingStateNode.h:
     58            * page/scrolling/ScrollingTree.cpp:
     59            (WebCore::ScrollingTree::commitTreeState):
     60            * page/scrolling/ScrollingTree.h:
     61            (WebCore::ScrollingTree::momentumScrollingAnimatorEnabled const):
     62            (WebCore::ScrollingTree::setMomentumScrollingAnimatorEnabled):
     63            * page/scrolling/ScrollingTreeScrollingNode.cpp:
     64            (WebCore::ScrollingTreeScrollingNode::momentumScrollingAnimatorEnabled const):
     65            * page/scrolling/ScrollingTreeScrollingNode.h:
     66            * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.h:
     67            * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.mm:
     68            (WebCore::ScrollingTreeScrollingNodeDelegateMac::momentumScrollingAnimatorEnabled const):
     69            * platform/ScrollingEffectsController.h:
     70            (WebCore::ScrollingEffectsControllerClient::momentumScrollingAnimatorEnabled const):
     71
    1722021-12-03  Russell Epstein  <repstein@apple.com>
    273
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.cpp

    r279218 r286725  
    652652    frameScrollingNode.setScrollingPerformanceTestingEnabled(settings.scrollingPerformanceTestingEnabled());
    653653    frameScrollingNode.setWheelEventGesturesBecomeNonBlocking(settings.wheelEventGesturesBecomeNonBlocking());
     654    frameScrollingNode.setMomentumScrollingAnimatorEnabled(settings.momentumScrollingAnimatorEnabled());
    654655
    655656    frameScrollingNode.setMinLayoutViewportOrigin(frameView.minStableLayoutViewportOrigin());
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.cpp

    r278325 r286725  
    6262    , m_wheelEventGesturesBecomeNonBlocking(stateNode.wheelEventGesturesBecomeNonBlocking())
    6363    , m_scrollingPerformanceTestingEnabled(stateNode.scrollingPerformanceTestingEnabled())
     64    , m_momentumScrollingAnimatorEnabled(stateNode.momentumScrollingAnimatorEnabled())
    6465{
    6566    if (hasChangedProperty(Property::RootContentsLayer))
     
    113114        Property::MaxLayoutViewportOrigin,
    114115        Property::OverrideVisualViewportSize,
     116        Property::MomentumScrollingAnimatorEnabled,
    115117    };
    116118
     
    308310    m_scrollingPerformanceTestingEnabled = enabled;
    309311    setPropertyChanged(Property::ScrollingPerformanceTestingEnabled);
     312}
     313
     314void ScrollingStateFrameScrollingNode::setMomentumScrollingAnimatorEnabled(bool enabled)
     315{
     316    if (enabled == m_momentumScrollingAnimatorEnabled)
     317        return;
     318   
     319    m_momentumScrollingAnimatorEnabled = enabled;
     320    setPropertyChanged(Property::MomentumScrollingAnimatorEnabled);
    310321}
    311322
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.h

    r278253 r286725  
    118118    WEBCORE_EXPORT void setWheelEventGesturesBecomeNonBlocking(bool);
    119119
     120    bool momentumScrollingAnimatorEnabled() const { return m_momentumScrollingAnimatorEnabled; }
     121    WEBCORE_EXPORT void setMomentumScrollingAnimatorEnabled(bool);
     122
    120123    void dumpProperties(WTF::TextStream&, ScrollingStateTreeAsTextBehavior) const override;
    121124
     
    150153    bool m_wheelEventGesturesBecomeNonBlocking { false };
    151154    bool m_scrollingPerformanceTestingEnabled { false };
     155    bool m_momentumScrollingAnimatorEnabled { false };
    152156};
    153157
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/ScrollingStateNode.h

    r271937 r286725  
    256256        VisualViewportIsSmallerThanLayoutViewport   = 1LLU << 32,
    257257        AsyncFrameOrOverflowScrollingEnabled        = 1LLU << 33,
    258         WheelEventGesturesBecomeNonBlocking         = 1LLU << 34,
    259         ScrollingPerformanceTestingEnabled          = 1LLU << 35,
    260         LayoutViewport                              = 1LLU << 36,
    261         MinLayoutViewportOrigin                     = 1LLU << 37,
    262         MaxLayoutViewportOrigin                     = 1LLU << 38,
    263         OverrideVisualViewportSize                  = 1LLU << 39,
     258        MomentumScrollingAnimatorEnabled            = 1LLU << 34,
     259        WheelEventGesturesBecomeNonBlocking         = 1LLU << 35,
     260        ScrollingPerformanceTestingEnabled          = 1LLU << 36,
     261        LayoutViewport                              = 1LLU << 37,
     262        MinLayoutViewportOrigin                     = 1LLU << 38,
     263        MaxLayoutViewportOrigin                     = 1LLU << 39,
     264        OverrideVisualViewportSize                  = 1LLU << 40,
    264265        // ScrollingStatePositionedNode
    265         RelatedOverflowScrollingNodes               = 1LLU << 40,
    266         LayoutConstraintData                        = 1LLU << 41,
     266        RelatedOverflowScrollingNodes               = 1LLU << 41,
     267        LayoutConstraintData                        = 1LLU << 42,
    267268        // ScrollingStateFixedNode, ScrollingStateStickyNode
    268         ViewportConstraints                         = 1LLU << 42,
     269        ViewportConstraints                         = 1LLU << 43,
    269270        // ScrollingStateOverflowScrollProxyNode
    270         OverflowScrollingNode                       = 1LLU << 43,
     271        OverflowScrollingNode                       = 1LLU << 44,
    271272    };
    272273   
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/ScrollingTree.cpp

    r286719 r286725  
    280280            || rootNode->hasChangedProperty(ScrollingStateNode::Property::WheelEventGesturesBecomeNonBlocking)
    281281            || rootNode->hasChangedProperty(ScrollingStateNode::Property::ScrollingPerformanceTestingEnabled)
    282             || rootNode->hasChangedProperty(ScrollingStateNode::Property::IsMonitoringWheelEvents))) {
     282            || rootNode->hasChangedProperty(ScrollingStateNode::Property::IsMonitoringWheelEvents)
     283            || rootNode->hasChangedProperty(ScrollingStateNode::Property::MomentumScrollingAnimatorEnabled))) {
    283284        Locker locker { m_treeStateLock };
    284285
     
    300301        if (rootStateNodeChanged || rootNode->hasChangedProperty(ScrollingStateNode::Property::IsMonitoringWheelEvents))
    301302            m_isMonitoringWheelEvents = scrollingStateTree->rootStateNode()->isMonitoringWheelEvents();
     303
     304        if (rootStateNodeChanged || rootNode->hasChangedProperty(ScrollingStateNode::Property::MomentumScrollingAnimatorEnabled))
     305            m_momentumScrollingAnimatorEnabled = scrollingStateTree->rootStateNode()->momentumScrollingAnimatorEnabled();
    302306    }
    303307
     
    321325            node->willBeDestroyed();
    322326    }
     327
     328    if (rootNode && (rootStateNodeChanged || rootNode->hasChangedProperty(ScrollingStateNode::Property::MomentumScrollingAnimatorEnabled)))
     329        RELEASE_LOG(Scrolling, "ScrollingTree momentum scrolling animator enabled: %d", rootNode->momentumScrollingAnimatorEnabled());
     330   
    323331
    324332    LOG_WITH_STREAM(ScrollingTree, stream << "committed ScrollingTree" << scrollingTreeAsText(ScrollingStateTreeAsTextBehaviorDebug));
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/ScrollingTree.h

    r278923 r286725  
    101101    void setScrollingPerformanceTestingEnabled(bool value) { m_scrollingPerformanceTestingEnabled = value; }
    102102
     103    bool momentumScrollingAnimatorEnabled() const { return m_momentumScrollingAnimatorEnabled; }
     104    void setMomentumScrollingAnimatorEnabled(bool value) { m_momentumScrollingAnimatorEnabled = value; }
     105
    103106    WEBCORE_EXPORT OptionSet<WheelEventProcessingSteps> determineWheelEventProcessing(const PlatformWheelEvent&);
    104107    WEBCORE_EXPORT virtual WheelEventHandlingResult handleWheelEvent(const PlatformWheelEvent&, OptionSet<WheelEventProcessingSteps> = { });
     
    336339    bool m_asyncFrameOrOverflowScrollingEnabled { false };
    337340    bool m_wheelEventGesturesBecomeNonBlocking { false };
     341    bool m_momentumScrollingAnimatorEnabled { false };
    338342    bool m_needsApplyLayerPositionsAfterCommit { false };
    339343    bool m_inCommitTreeState { false };
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.cpp

    r279218 r286725  
    228228}
    229229
     230bool ScrollingTreeScrollingNode::momentumScrollingAnimatorEnabled() const
     231{
     232    return scrollingTree().momentumScrollingAnimatorEnabled();
     233}
     234
    230235FloatPoint ScrollingTreeScrollingNode::adjustedScrollPosition(const FloatPoint& scrollPosition, ScrollClamping clamping) const
    231236{
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/ScrollingTreeScrollingNode.h

    r279218 r286725  
    121121   
    122122    virtual FloatPoint adjustedScrollPosition(const FloatPoint&, ScrollClamping = ScrollClamping::Clamped) const;
    123 
     123    bool momentumScrollingAnimatorEnabled() const;
     124   
    124125    virtual void currentScrollPositionChanged(ScrollType, ScrollingLayerPositionAction = ScrollingLayerPositionAction::Sync);
    125126    virtual void updateViewportForCurrentScrollPosition(std::optional<FloatRect> = { }) { }
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.h

    r279218 r286725  
    9090    void adjustScrollPositionToBoundsIfNecessary() final;
    9191
     92    bool momentumScrollingAnimatorEnabled() const final;
     93
    9294    bool scrollPositionIsNotRubberbandingEdge(const FloatPoint&) const;
    9395    void scrollControllerAnimationTimerFired();
  • branches/safari-612.4.2.1-branch/Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.mm

    r279218 r286725  
    479479}
    480480
     481bool ScrollingTreeScrollingNodeDelegateMac::momentumScrollingAnimatorEnabled() const
     482{
     483    return scrollingNode().momentumScrollingAnimatorEnabled();
     484}
     485
    481486} // namespace WebCore
    482487
  • branches/safari-612.4.2.1-branch/Source/WebCore/platform/ScrollController.h

    r280492 r286725  
    114114    virtual LayoutSize scrollExtent() const = 0;
    115115    virtual FloatSize viewportSize() const = 0;
     116
     117    virtual bool momentumScrollingAnimatorEnabled() const { return false; }
    116118};
    117119
  • branches/safari-612.4.2.1-branch/Source/WebKit/ChangeLog

    r286724 r286725  
     12021-12-03  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r285526. rdar://problem/85928816
     4
     5    Add runtime flag for momentum scrolling
     6    https://bugs.webkit.org/show_bug.cgi?id=232898
     7    <rdar://problem/85211338>
     8   
     9    Reviewed by Simon Fraser.
     10   
     11    * Scripts/Preferences/WebPreferencesInternal.yaml:
     12    Add the preference.
     13   
     14    * page/scrolling/AsyncScrollingCoordinator.cpp:
     15    (WebCore::AsyncScrollingCoordinator::setFrameScrollingNodeState):
     16    * page/scrolling/ScrollingStateFrameScrollingNode.cpp:
     17    (WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode):
     18    (WebCore::ScrollingStateFrameScrollingNode::applicableProperties const):
     19    (WebCore::ScrollingStateFrameScrollingNode::setMomentumScrollingAnimatorEnabled):
     20    * page/scrolling/ScrollingStateFrameScrollingNode.h:
     21    * page/scrolling/ScrollingStateNode.h:
     22    * page/scrolling/ScrollingTree.cpp:
     23    (WebCore::ScrollingTree::commitTreeState):
     24    * page/scrolling/ScrollingTree.h:
     25    (WebCore::ScrollingTree::momentumScrollingAnimatorEnabled const):
     26    (WebCore::ScrollingTree::setMomentumScrollingAnimatorEnabled):
     27    * page/scrolling/ScrollingTreeScrollingNode.cpp:
     28    (WebCore::ScrollingTreeScrollingNode::momentumScrollingAnimatorEnabled const):
     29    * page/scrolling/ScrollingTreeScrollingNode.h:
     30    * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.h:
     31    * page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.mm:
     32    (WebCore::ScrollingTreeScrollingNodeDelegateMac::momentumScrollingAnimatorEnabled const):
     33    * platform/ScrollingEffectsController.h:
     34    (WebCore::ScrollingEffectsControllerClient::momentumScrollingAnimatorEnabled const):
     35   
     36    * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
     37    (ArgumentCoder<ScrollingStateFrameScrollingNode>::encode):
     38    (ArgumentCoder<ScrollingStateFrameScrollingNode>::decode):
     39   
     40    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@285526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     41
     42    2021-11-09  Tim Horton  <timothy_horton@apple.com>
     43
     44            Add runtime flag for momentum scrolling
     45            https://bugs.webkit.org/show_bug.cgi?id=232898
     46            <rdar://problem/85211338>
     47
     48            Reviewed by Simon Fraser.
     49
     50            * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp:
     51            (ArgumentCoder<ScrollingStateFrameScrollingNode>::encode):
     52            (ArgumentCoder<ScrollingStateFrameScrollingNode>::decode):
     53
    1542021-12-03  Russell Epstein  <repstein@apple.com>
    255
  • branches/safari-612.4.2.1-branch/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp

    r280527 r286725  
    150150        WebCore::ScrollingStateNode::Property::VisualViewportIsSmallerThanLayoutViewport,
    151151        WebCore::ScrollingStateNode::Property::AsyncFrameOrOverflowScrollingEnabled,
     152        WebCore::ScrollingStateNode::Property::MomentumScrollingAnimatorEnabled,
    152153        WebCore::ScrollingStateNode::Property::WheelEventGesturesBecomeNonBlocking,
    153154        WebCore::ScrollingStateNode::Property::ScrollingPerformanceTestingEnabled,
     
    252253    SCROLLING_NODE_ENCODE(ScrollingStateNode::Property::MaxLayoutViewportOrigin, maxLayoutViewportOrigin)
    253254    SCROLLING_NODE_ENCODE(ScrollingStateNode::Property::OverrideVisualViewportSize, overrideVisualViewportSize)
     255    // MomentumScrollingAnimatorEnabled is not relevant for UI-side compositing.
    254256
    255257    if (node.hasChangedProperty(ScrollingStateNode::Property::CounterScrollingLayer))
     
    366368    SCROLLING_NODE_DECODE(ScrollingStateNode::Property::MaxLayoutViewportOrigin, FloatPoint, setMaxLayoutViewportOrigin)
    367369    SCROLLING_NODE_DECODE(ScrollingStateNode::Property::OverrideVisualViewportSize, std::optional<FloatSize>, setOverrideVisualViewportSize)
     370    // MomentumScrollingAnimatorEnabled is not encoded.
    368371
    369372    if (node.hasChangedProperty(ScrollingStateNode::Property::CounterScrollingLayer)) {
Note: See TracChangeset for help on using the changeset viewer.