Changeset 103426 in webkit


Ignore:
Timestamp:
Dec 21, 2011 11:52:57 AM (12 years ago)
Author:
andersca@apple.com
Message:

ScrollingCoordinator functions should take FrameView objects
https://bugs.webkit.org/show_bug.cgi?id=75023

Reviewed by Sam Weinig.

  • page/ScrollingCoordinator.cpp:

(WebCore::ScrollingCoordinator::syncFrameViewGeometry):

  • page/ScrollingCoordinator.h:
  • page/mac/ScrollingCoordinatorMac.mm:

(WebCore::ScrollingCoordinator::setFrameViewScrollLayer):

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::frameViewDidChangeSize):
(WebCore::RenderLayerCompositor::updateRootLayerPosition):
(WebCore::RenderLayerCompositor::ensureRootLayer):

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r103421 r103426  
     12011-12-21  Anders Carlsson  <andersca@apple.com>
     2
     3        ScrollingCoordinator functions should take FrameView objects
     4        https://bugs.webkit.org/show_bug.cgi?id=75023
     5
     6        Reviewed by Sam Weinig.
     7
     8        * page/ScrollingCoordinator.cpp:
     9        (WebCore::ScrollingCoordinator::syncFrameViewGeometry):
     10        * page/ScrollingCoordinator.h:
     11        * page/mac/ScrollingCoordinatorMac.mm:
     12        (WebCore::ScrollingCoordinator::setFrameViewScrollLayer):
     13        * rendering/RenderLayerCompositor.cpp:
     14        (WebCore::RenderLayerCompositor::frameViewDidChangeSize):
     15        (WebCore::RenderLayerCompositor::updateRootLayerPosition):
     16        (WebCore::RenderLayerCompositor::ensureRootLayer):
     17
    1182011-12-21  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/Source/WebCore/page/ScrollingCoordinator.cpp

    r103421 r103426  
    6363}
    6464
    65 void ScrollingCoordinator::syncFrameGeometry(Frame* frame)
     65void ScrollingCoordinator::syncFrameViewGeometry(FrameView* frameView)
    6666{
    6767    ASSERT(isMainThread());
    6868    ASSERT(m_page);
    6969
    70     if (frame != m_page->mainFrame())
     70    if (frameView->frame() != m_page->mainFrame())
    7171        return;
    7272
    73     IntRect visibleContentRect = frame->view()->visibleContentRect();
    74     IntSize contentsSize = frame->view()->contentsSize();
     73    IntRect visibleContentRect = frameView->visibleContentRect();
     74    IntSize contentsSize = frameView->contentsSize();
    7575
    7676    MutexLocker locker(m_mainFrameGeometryMutex);
  • trunk/Source/WebCore/page/ScrollingCoordinator.h

    r103421 r103426  
    4141namespace WebCore {
    4242
    43 class Frame;
     43class FrameView;
    4444class GraphicsLayer;
    4545class Page;
     
    5757    void pageDestroyed();
    5858
    59     // Should be called whenever the scroll layer for the given frame changes.
    60     void setFrameScrollLayer(Frame*, const GraphicsLayer* scrollLayer);
     59    // Should be called whenever the scroll layer for the given frame view changes.
     60    void setFrameViewScrollLayer(FrameView*, const GraphicsLayer* scrollLayer);
    6161
    62     // Should be called whenever the geometry of the given frame changes,
     62    // Should be called whenever the geometry of the given frame view changes,
    6363    // including the visible content rect and the content size.
    64     void syncFrameGeometry(Frame*);
     64    void syncFrameViewGeometry(FrameView*);
    6565
    6666    // Can be called from any thread. Will try to handle the wheel event on the scrolling thread,
  • trunk/Source/WebCore/page/mac/ScrollingCoordinatorMac.mm

    r103227 r103426  
    3030#import "ScrollingCoordinator.h"
    3131
     32#import "FrameView.h"
    3233#import "Page.h"
    3334#import <QuartzCore/QuartzCore.h>
     
    161162}
    162163
    163 void ScrollingCoordinator::setFrameScrollLayer(Frame* frame, const GraphicsLayer* scrollLayer)
     164void ScrollingCoordinator::setFrameViewScrollLayer(FrameView* frameView, const GraphicsLayer* scrollLayer)
    164165{
    165166    ASSERT(isMainThread());
    166167    ASSERT(m_page);
    167168
    168     if (frame != m_page->mainFrame())
     169    if (frameView->frame() != m_page->mainFrame())
    169170        return;
    170171
  • trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r103419 r103426  
    974974#if ENABLE(THREADED_SCROLLING)
    975975        if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator())
    976             scrollingCoordinator->syncFrameGeometry(frameView->frame());
     976            scrollingCoordinator->syncFrameViewGeometry(frameView);
    977977#endif
    978978    }
     
    12321232#if ENABLE(THREADED_SCROLLING)
    12331233    if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator())
    1234         scrollingCoordinator->syncFrameGeometry(m_renderView->frameView()->frame());
     1234        scrollingCoordinator->syncFrameViewGeometry(m_renderView->frameView());
    12351235#endif
    12361236}
     
    18021802#if ENABLE(THREADED_SCROLLING)
    18031803            if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator())
    1804                 scrollingCoordinator->setFrameScrollLayer(m_renderView->frameView()->frame(), m_scrollLayer.get());
     1804                scrollingCoordinator->setFrameViewScrollLayer(m_renderView->frameView(), m_scrollLayer.get());
    18051805#endif
    18061806        }
Note: See TracChangeset for help on using the changeset viewer.