Changeset 37667 in webkit
- Timestamp:
- Oct 17, 2008 5:03:58 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r37666 r37667 1 2008-10-17 Kevin Watters <kevinwatters@gmail.com> 2 3 Reviewed by Kevin Ollivier 4 5 Fix wx port's scrollbar and drawing handling after recent changes. 6 7 https://bugs.webkit.org/show_bug.cgi?id=21720 8 9 * platform/ScrollView.h: 10 * platform/wx/ScrollViewWx.cpp: 11 (WebCore::ScrollView::platformVisibleContentRect): 12 (WebCore::ScrollView::platformContentsSize): 13 (WebCore::ScrollView::platformSetContentsSize): 14 * platform/wx/WidgetWx.cpp: 15 (WebCore::Widget::paint): 16 1 17 2008-10-17 Kevin Ollivier <kevino@theolliviers.com> 2 18 -
trunk/WebCore/platform/ScrollView.h
r37599 r37667 297 297 public: 298 298 virtual void setPlatformWidget(wxWindow*); 299 299 void adjustScrollbars(int x = -1, int y = -1, bool refresh = true); 300 300 private: 301 void adjustScrollbars(int x = -1, int y = -1, bool refresh = true);302 301 class ScrollViewPrivate; 303 302 ScrollViewPrivate* m_data; -
trunk/WebCore/platform/wx/ScrollViewWx.cpp
r37244 r37667 152 152 IntRect ScrollView::platformVisibleContentRect(bool includeScrollbars) const 153 153 { 154 // FIXME: Need to support includeScrollbars option. 155 int width; 156 platformWidget()->GetClientSize(NULL, &width); 157 int height; 158 platformWidget()->GetClientSize(NULL, &height); 159 ASSERT(width >= 0 && height >= 0); 154 wxWindow* win = platformWidget(); 155 if (!win) 156 return IntRect(); 157 158 int width, height; 159 160 if (includeScrollbars) 161 win->GetSize(&width, &height); 162 else 163 win->GetClientSize(&width, &height); 164 160 165 return IntRect(m_data->viewStart.x, m_data->viewStart.y, width, height); 161 166 } … … 165 170 int width = 0; 166 171 int height = 0; 167 platformWidget()->GetVirtualSize(&width, NULL); 168 platformWidget()->GetVirtualSize(&height, NULL); 169 ASSERT(width >= 0 && height >= 0); 172 if (platformWidget()) { 173 platformWidget()->GetVirtualSize(&width, &height); 174 ASSERT(width >= 0 && height >= 0); 175 } 170 176 return IntSize(width, height); 171 177 } … … 220 226 return; 221 227 222 win->SetVirtualSize( contentsWidth(), contentsHeight());228 win->SetVirtualSize(m_contentsSize.width(), m_contentsSize.height()); 223 229 adjustScrollbars(); 224 230 } … … 344 350 } 345 351 346 347 } 352 } -
trunk/WebCore/platform/wx/WidgetWx.cpp
r37452 r37667 90 90 void Widget::paint(GraphicsContext*,const IntRect& r) 91 91 { 92 invalidateRect(r);93 if (platformWidget())94 platformWidget()->Update();95 92 } 96 93 -
trunk/WebKit/wx/ChangeLog
r37452 r37667 1 2008-10-17 Kevin Watters <kevinwatters@gmail.com> 2 3 Reviewed by Kevin Ollivier 4 5 Fix wx port's scrollbar and drawing handling after recent changes. 6 7 https://bugs.webkit.org/show_bug.cgi?id=21720 8 9 * WebView.cpp: 10 (wxWebView::OnPaint): 11 (wxWebView::OnSize): 12 1 13 2008-10-09 Kevin Ollivier <kevino@theolliviers.com> 2 14 -
trunk/WebKit/wx/WebView.cpp
r37203 r37667 433 433 frame->view()->layout(); 434 434 435 frame->view()->paint (gc, paintRect);435 frame->view()->paintContents(gc, paintRect); 436 436 } 437 437 delete gc; … … 446 446 frame->sendResizeEvent(); 447 447 frame->view()->layout(); 448 frame->view()->adjustScrollbars(); 448 449 } 449 450
Note: See TracChangeset
for help on using the changeset viewer.