Changeset 243846 in webkit


Ignore:
Timestamp:
Apr 3, 2019, 7:52:58 PM (6 years ago)
Author:
Simon Fraser
Message:

Remove some redundant memebers from ScrollingStateFrameScrollingNode
https://bugs.webkit.org/show_bug.cgi?id=196571

Reviewed by Zalan Bujtas.

m_requestedScrollPosition and m_requestedScrollPositionRepresentsProgrammaticScroll were
duplicated on ScrollingStateFrameScrollingNode and ScrollingStateScrollingNode, so
remove them from the derived class.

  • page/scrolling/ScrollingStateFrameScrollingNode.cpp:

(WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode):
(WebCore::ScrollingStateFrameScrollingNode::dumpProperties const):

  • page/scrolling/ScrollingStateFrameScrollingNode.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r243845 r243846  
     12019-04-03  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Remove some redundant memebers from ScrollingStateFrameScrollingNode
     4        https://bugs.webkit.org/show_bug.cgi?id=196571
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        m_requestedScrollPosition and m_requestedScrollPositionRepresentsProgrammaticScroll were
     9        duplicated on ScrollingStateFrameScrollingNode and ScrollingStateScrollingNode, so
     10        remove them from the derived class.
     11
     12        * page/scrolling/ScrollingStateFrameScrollingNode.cpp:
     13        (WebCore::ScrollingStateFrameScrollingNode::ScrollingStateFrameScrollingNode):
     14        (WebCore::ScrollingStateFrameScrollingNode::dumpProperties const):
     15        * page/scrolling/ScrollingStateFrameScrollingNode.h:
     16
    1172019-04-03  Said Abou-Hallawa  <sabouhallawa@apple.com>
    218
  • trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.cpp

    r242359 r243846  
    4848    : ScrollingStateScrollingNode(stateNode, adoptiveTree)
    4949    , m_eventTrackingRegions(stateNode.eventTrackingRegions())
    50     , m_requestedScrollPosition(stateNode.requestedScrollPosition())
    5150    , m_layoutViewport(stateNode.layoutViewport())
    5251    , m_minLayoutViewportOrigin(stateNode.minLayoutViewportOrigin())
     
    5857    , m_synchronousScrollingReasons(stateNode.synchronousScrollingReasons())
    5958    , m_behaviorForFixed(stateNode.scrollBehaviorForFixedElements())
    60     , m_requestedScrollPositionRepresentsProgrammaticScroll(stateNode.requestedScrollPositionRepresentsProgrammaticScroll())
    6159    , m_fixedElementsLayoutRelativeToFrame(stateNode.fixedElementsLayoutRelativeToFrame())
    6260    , m_asyncFrameOrOverflowScrollingEnabled(stateNode.asyncFrameOrOverflowScrollingEnabled())
     
    332330    ts.dumpProperty("behavior for fixed", m_behaviorForFixed);
    333331
    334     if (m_requestedScrollPosition != FloatPoint())
    335         ts.dumpProperty("requested scroll position", m_requestedScrollPosition);
    336     if (m_requestedScrollPositionRepresentsProgrammaticScroll)
    337         ts.dumpProperty("requested scroll position represents programmatic scroll", m_requestedScrollPositionRepresentsProgrammaticScroll);
    338 
    339332    if (m_fixedElementsLayoutRelativeToFrame)
    340333        ts.dumpProperty("fixed elements lay out relative to frame", m_fixedElementsLayoutRelativeToFrame);
  • trunk/Source/WebCore/page/scrolling/ScrollingStateFrameScrollingNode.h

    r242359 r243846  
    146146
    147147    EventTrackingRegions m_eventTrackingRegions;
    148     FloatPoint m_requestedScrollPosition;
    149148
    150149    FloatRect m_layoutViewport;
     
    158157    SynchronousScrollingReasons m_synchronousScrollingReasons { 0 };
    159158    ScrollBehaviorForFixedElements m_behaviorForFixed { StickToDocumentBounds };
    160     bool m_requestedScrollPositionRepresentsProgrammaticScroll { false };
    161159    bool m_fixedElementsLayoutRelativeToFrame { false };
    162160    bool m_asyncFrameOrOverflowScrollingEnabled { false };
Note: See TracChangeset for help on using the changeset viewer.