Changeset 76143 in webkit
- Timestamp:
- Jan 19, 2011 11:26:55 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r76142 r76143 26 26 (WebKit::LayerBackedDrawingArea::attachCompositingContext): 27 27 (WebKit::LayerBackedDrawingArea::syncCompositingLayers): 28 29 2011-01-19 Anders Carlsson <andersca@apple.com> 30 31 Reviewed by Sam Weinig. 32 33 Send a new SetSize message if the size differs from the current size 34 https://bugs.webkit.org/show_bug.cgi?id=52728 35 36 * UIProcess/DrawingAreaProxy.h: 37 (WebKit::DrawingAreaProxy::didSetSize): 38 Add UpdateInfo parameter. 39 40 * UIProcess/DrawingAreaProxy.messages.in: 41 Add UpdateInfo parameter to the DidSetSize message. 42 43 * UIProcess/DrawingAreaProxyImpl.cpp: 44 (WebKit::DrawingAreaProxyImpl::didSetSize): 45 If the view size differs from the current size send another SetSize message. 46 47 * UIProcess/DrawingAreaProxyImpl.h: 48 Add UpdateInfo parameter to didSetSize. 49 50 * WebProcess/WebPage/DrawingAreaImpl.cpp: 51 (WebKit::DrawingAreaImpl::setSize): 52 The DidSetSize message now takes an UpdateInfo parameter. 28 53 29 54 2011-01-19 Anders Carlsson <andersca@apple.com> -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxy.h
r75630 r76143 90 90 // FIXME: These should be pure virtual. 91 91 virtual void update(const UpdateInfo&) { } 92 virtual void didSetSize( ) { }92 virtual void didSetSize(const UpdateInfo&) { } 93 93 }; 94 94 -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxy.messages.in
r75630 r76143 23 23 messages -> DrawingAreaProxy { 24 24 Update(WebKit::UpdateInfo updateInfo) 25 DidSetSize( )25 DidSetSize(WebKit::UpdateInfo updateInfo) 26 26 } -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp
r76139 r76143 106 106 } 107 107 108 void DrawingAreaProxyImpl::didSetSize( )108 void DrawingAreaProxyImpl::didSetSize(const UpdateInfo& updateInfo) 109 109 { 110 110 ASSERT(m_isWaitingForDidSetSize); 111 111 m_isWaitingForDidSetSize = false; 112 112 113 // FIXME: Send a new SetSize message if needed. 113 if (m_size != updateInfo.viewSize) 114 sendSetSize(); 114 115 115 116 m_backingStore = nullptr; -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
r76139 r76143 53 53 // CoreIPC message handlers 54 54 virtual void update(const UpdateInfo&); 55 virtual void didSetSize( );55 virtual void didSetSize(const UpdateInfo&); 56 56 57 57 void incorporateUpdate(const UpdateInfo&); -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp
r76135 r76143 141 141 m_webPage->layoutIfNeeded(); 142 142 143 UpdateInfo updateInfo; 144 updateInfo.viewSize = m_webPage->size(); 145 143 146 // FIXME: Repaint. 144 147 145 m_webPage->send(Messages::DrawingAreaProxy::DidSetSize( ));148 m_webPage->send(Messages::DrawingAreaProxy::DidSetSize(updateInfo)); 146 149 } 147 150
Note: See TracChangeset
for help on using the changeset viewer.