mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user