Changeset 103426 in webkit
- Timestamp:
- Dec 21, 2011 11:52:57 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r103421 r103426 1 2011-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 1 18 2011-12-21 Anders Carlsson <andersca@apple.com> 2 19 -
trunk/Source/WebCore/page/ScrollingCoordinator.cpp
r103421 r103426 63 63 } 64 64 65 void ScrollingCoordinator::syncFrame Geometry(Frame* frame)65 void ScrollingCoordinator::syncFrameViewGeometry(FrameView* frameView) 66 66 { 67 67 ASSERT(isMainThread()); 68 68 ASSERT(m_page); 69 69 70 if (frame != m_page->mainFrame())70 if (frameView->frame() != m_page->mainFrame()) 71 71 return; 72 72 73 IntRect visibleContentRect = frame ->view()->visibleContentRect();74 IntSize contentsSize = frame ->view()->contentsSize();73 IntRect visibleContentRect = frameView->visibleContentRect(); 74 IntSize contentsSize = frameView->contentsSize(); 75 75 76 76 MutexLocker locker(m_mainFrameGeometryMutex); -
trunk/Source/WebCore/page/ScrollingCoordinator.h
r103421 r103426 41 41 namespace WebCore { 42 42 43 class Frame ;43 class FrameView; 44 44 class GraphicsLayer; 45 45 class Page; … … 57 57 void pageDestroyed(); 58 58 59 // Should be called whenever the scroll layer for the given frame changes.60 void setFrame ScrollLayer(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); 61 61 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, 63 63 // including the visible content rect and the content size. 64 void syncFrame Geometry(Frame*);64 void syncFrameViewGeometry(FrameView*); 65 65 66 66 // 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 30 30 #import "ScrollingCoordinator.h" 31 31 32 #import "FrameView.h" 32 33 #import "Page.h" 33 34 #import <QuartzCore/QuartzCore.h> … … 161 162 } 162 163 163 void ScrollingCoordinator::setFrame ScrollLayer(Frame* frame, const GraphicsLayer* scrollLayer)164 void ScrollingCoordinator::setFrameViewScrollLayer(FrameView* frameView, const GraphicsLayer* scrollLayer) 164 165 { 165 166 ASSERT(isMainThread()); 166 167 ASSERT(m_page); 167 168 168 if (frame != m_page->mainFrame())169 if (frameView->frame() != m_page->mainFrame()) 169 170 return; 170 171 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r103419 r103426 974 974 #if ENABLE(THREADED_SCROLLING) 975 975 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator()) 976 scrollingCoordinator->syncFrame Geometry(frameView->frame());976 scrollingCoordinator->syncFrameViewGeometry(frameView); 977 977 #endif 978 978 } … … 1232 1232 #if ENABLE(THREADED_SCROLLING) 1233 1233 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator()) 1234 scrollingCoordinator->syncFrame Geometry(m_renderView->frameView()->frame());1234 scrollingCoordinator->syncFrameViewGeometry(m_renderView->frameView()); 1235 1235 #endif 1236 1236 } … … 1802 1802 #if ENABLE(THREADED_SCROLLING) 1803 1803 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator()) 1804 scrollingCoordinator->setFrame ScrollLayer(m_renderView->frameView()->frame(), m_scrollLayer.get());1804 scrollingCoordinator->setFrameViewScrollLayer(m_renderView->frameView(), m_scrollLayer.get()); 1805 1805 #endif 1806 1806 }
Note: See TracChangeset
for help on using the changeset viewer.