Changeset 76179 in webkit
- Timestamp:
- Jan 19, 2011 4:27:47 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r76167 r76179 1 2011-01-19 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam Weinig. 4 5 When resizing, the web process should repaint the page 6 https://bugs.webkit.org/show_bug.cgi?id=52764 7 8 * UIProcess/DrawingAreaProxyImpl.cpp: 9 (WebKit::DrawingAreaProxyImpl::didSetSize): 10 Incorporate the update. 11 12 (WebKit::DrawingAreaProxyImpl::incorporateUpdate): 13 Return early if the update bounds rect is empty. This can happen if painting is 14 disabled and we get a DidSetSize message. 15 16 * WebProcess/WebPage/DrawingAreaImpl.cpp: 17 (WebKit::DrawingAreaImpl::setSize): 18 If painting is disabled, just send back an empty UpdateInfo struct. Otherwise, 19 paint and fill in the UpdateInfo struct. 20 21 (WebKit::DrawingAreaImpl::display): 22 Assert that painting is not disabled. 23 1 24 2011-01-19 Alexey Proskuryakov <ap@apple.com> 2 25 -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp
r76157 r76179 126 126 127 127 m_backingStore = nullptr; 128 129 incorporateUpdate(updateInfo); 128 130 } 129 131 130 132 void DrawingAreaProxyImpl::incorporateUpdate(const UpdateInfo& updateInfo) 131 133 { 132 // FIXME: Check for the update bounds being empty here. 134 if (updateInfo.updateRectBounds.isEmpty()) 135 return; 133 136 134 137 if (!m_backingStore) -
trunk/Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp
r76157 r76179 143 143 144 144 UpdateInfo updateInfo; 145 updateInfo.viewSize = m_webPage->size(); 146 147 // FIXME: Repaint. 145 146 if (m_isPaintingSuspended) 147 updateInfo.viewSize = m_webPage->size(); 148 else 149 display(updateInfo); 148 150 149 151 m_webPage->send(Messages::DrawingAreaProxy::DidSetSize(updateInfo)); … … 232 234 void DrawingAreaImpl::display(UpdateInfo& updateInfo) 233 235 { 236 ASSERT(!m_isPaintingSuspended); 237 234 238 // FIXME: It would be better if we could avoid painting altogether when there is a custom representation. 235 239 if (m_webPage->mainFrameHasCustomRepresentation())
Note: See TracChangeset
for help on using the changeset viewer.