Changeset 106679 in webkit


Ignore:
Timestamp:
Feb 3, 2012 11:30:19 AM (12 years ago)
Author:
andersca@apple.com
Message:

Add ScrollingTreeState class
https://bugs.webkit.org/show_bug.cgi?id=77756

Reviewed by Andreas Kling.

Add a new ScrollingTreeState whose intent is to be a data container for the current
scrolling tree state. the ScrollingCoordinator class will update it and periodically
send over the new state to the ScrollingTree object on the scrolling thread.

  • WebCore.xcodeproj/project.pbxproj:
  • page/scrolling/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::ScrollingCoordinator):

  • page/scrolling/ScrollingCoordinator.h:

(WebCore):
(ScrollingCoordinator):

  • page/scrolling/ScrollingTreeState.cpp: Added.

(WebCore):
(WebCore::ScrollingTreeState::create):
(WebCore::ScrollingTreeState::ScrollingTreeState):
(WebCore::ScrollingTreeState::~ScrollingTreeState):
(WebCore::ScrollingTreeState::setViewportRect):
(WebCore::ScrollingTreeState::setContentsSize):

  • page/scrolling/ScrollingTreeState.h: Added.

(WebCore):
(ScrollingTreeState):
(WebCore::ScrollingTreeState::viewportRect):
(WebCore::ScrollingTreeState::contentsSize):

Location:
trunk/Source/WebCore
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106678 r106679  
     12012-02-03  Anders Carlsson  <andersca@apple.com>
     2
     3        Add ScrollingTreeState class
     4        https://bugs.webkit.org/show_bug.cgi?id=77756
     5
     6        Reviewed by Andreas Kling.
     7
     8        Add a new ScrollingTreeState whose intent is to be a data container for the current
     9        scrolling tree state. the ScrollingCoordinator class will update it and periodically
     10        send over the new state to the ScrollingTree object on the scrolling thread.
     11
     12        * WebCore.xcodeproj/project.pbxproj:
     13        * page/scrolling/ScrollingCoordinator.cpp:
     14        (WebCore::ScrollingCoordinator::ScrollingCoordinator):
     15        * page/scrolling/ScrollingCoordinator.h:
     16        (WebCore):
     17        (ScrollingCoordinator):
     18        * page/scrolling/ScrollingTreeState.cpp: Added.
     19        (WebCore):
     20        (WebCore::ScrollingTreeState::create):
     21        (WebCore::ScrollingTreeState::ScrollingTreeState):
     22        (WebCore::ScrollingTreeState::~ScrollingTreeState):
     23        (WebCore::ScrollingTreeState::setViewportRect):
     24        (WebCore::ScrollingTreeState::setContentsSize):
     25        * page/scrolling/ScrollingTreeState.h: Added.
     26        (WebCore):
     27        (ScrollingTreeState):
     28        (WebCore::ScrollingTreeState::viewportRect):
     29        (WebCore::ScrollingTreeState::contentsSize):
     30
    1312012-02-03  Beth Dakin  <bdakin@apple.com>
    232
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r106609 r106679  
    491491                1AAADDA314DB409F00AF64B3 /* ScrollingTree.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAADDA114DB409F00AF64B3 /* ScrollingTree.cpp */; };
    492492                1AAADDA414DB409F00AF64B3 /* ScrollingTree.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AAADDA214DB409F00AF64B3 /* ScrollingTree.h */; };
     493                1AAADDBE14DC640700AF64B3 /* ScrollingTreeState.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AAADDBC14DC640600AF64B3 /* ScrollingTreeState.cpp */; };
     494                1AAADDBF14DC640700AF64B3 /* ScrollingTreeState.h in Headers */ = {isa = PBXBuildFile; fileRef = 1AAADDBD14DC640600AF64B3 /* ScrollingTreeState.h */; };
    493495                1AB1AE7A0C051FDE00139F4F /* zoomInCursor.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AB1AE780C051FDE00139F4F /* zoomInCursor.png */; };
    494496                1AB1AE7B0C051FDE00139F4F /* zoomOutCursor.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AB1AE790C051FDE00139F4F /* zoomOutCursor.png */; };
     
    72097211                1AAADDA114DB409F00AF64B3 /* ScrollingTree.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScrollingTree.cpp; sourceTree = "<group>"; };
    72107212                1AAADDA214DB409F00AF64B3 /* ScrollingTree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollingTree.h; sourceTree = "<group>"; };
     7213                1AAADDBC14DC640600AF64B3 /* ScrollingTreeState.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScrollingTreeState.cpp; sourceTree = "<group>"; };
     7214                1AAADDBD14DC640600AF64B3 /* ScrollingTreeState.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollingTreeState.h; sourceTree = "<group>"; };
    72117215                1AB1AE780C051FDE00139F4F /* zoomInCursor.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoomInCursor.png; sourceTree = "<group>"; };
    72127216                1AB1AE790C051FDE00139F4F /* zoomOutCursor.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = zoomOutCursor.png; sourceTree = "<group>"; };
     
    1392613930                                1AAADDA114DB409F00AF64B3 /* ScrollingTree.cpp */,
    1392713931                                1AAADDA214DB409F00AF64B3 /* ScrollingTree.h */,
     13932                                1AAADDBC14DC640600AF64B3 /* ScrollingTreeState.cpp */,
     13933                                1AAADDBD14DC640600AF64B3 /* ScrollingTreeState.h */,
    1392813934                        );
    1392913935                        path = scrolling;
     
    2410624112                                1AF62F2614DAFEA10041556C /* ScrollingThread.h in Headers */,
    2410724113                                1AAADDA414DB409F00AF64B3 /* ScrollingTree.h in Headers */,
     24114                                1AAADDBF14DC640700AF64B3 /* ScrollingTreeState.h in Headers */,
    2410824115                        );
    2410924116                        runOnlyForDeploymentPostprocessing = 0;
     
    2703527042                                1AF62F2514DAFE9E0041556C /* ScrollingThread.cpp in Sources */,
    2703627043                                1AAADDA314DB409F00AF64B3 /* ScrollingTree.cpp in Sources */,
     27044                                1AAADDBE14DC640700AF64B3 /* ScrollingTreeState.cpp in Sources */,
    2703727045                        );
    2703827046                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp

    r106609 r106679  
    3838#include "ScrollingThread.h"
    3939#include "ScrollingTree.h"
     40#include "ScrollingTreeState.h"
    4041#include <wtf/Functional.h>
    4142#include <wtf/MainThread.h>
     
    5253    : m_page(page)
    5354    , m_scrollingTree(ScrollingTree::create(this))
     55    , m_scrollingTreeState(ScrollingTreeState::create())
    5456    , m_didDispatchDidUpdateMainFrameScrollPosition(false)
    5557{
  • trunk/Source/WebCore/page/scrolling/ScrollingCoordinator.h

    r106609 r106679  
    4646class PlatformWheelEvent;
    4747class ScrollingTree;
     48class ScrollingTreeState;
    4849
    4950#if ENABLE(GESTURE_EVENTS)
     
    100101    RefPtr<ScrollingTree> m_scrollingTree;
    101102
     103    OwnPtr<ScrollingTreeState> m_scrollingTreeState;
     104
    102105    Mutex m_mainFrameGeometryMutex;
    103106    IntRect m_mainFrameVisibleContentRect;
Note: See TracChangeset for help on using the changeset viewer.