Mac: additional repaint fixes related to issue #360.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@364 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-11-08 16:19:03 +00:00
parent 8257177763
commit 09bf0b039f
6 changed files with 108 additions and 95 deletions

View File

@@ -119,10 +119,9 @@ LRESULT CALLBACK WebWidgetHost::WndProc(HWND hwnd, UINT message, WPARAM wparam,
case WM_PAINT: {
// Paint to the window.
RECT rect;
if (GetUpdateRect(hwnd, &rect, FALSE)) {
if (GetUpdateRect(hwnd, &rect, FALSE))
host->UpdatePaintRect(gfx::Rect(rect));
}
host->Paint();
host->Paint(gfx::Rect(rect));
return 0;
}
@@ -360,7 +359,7 @@ bool WebWidgetHost::WndProc(UINT message, WPARAM wparam, LPARAM lparam) {
return false;
}
void WebWidgetHost::Paint() {
void WebWidgetHost::Paint(const gfx::Rect& dirty_rect) {
if (canvas_.get() && paint_rect_.IsEmpty())
return;