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

@@ -149,7 +149,7 @@ class WebWidgetHostGtkWidget {
g_handling_expose = true;
gfx::Rect rect(expose->area);
host->UpdatePaintRect(rect);
host->Paint();
host->Paint(rect);
g_handling_expose = false;
return FALSE;
}
@@ -344,7 +344,7 @@ void WebWidgetHost::Resize(const gfx::Size &newsize) {
SetSize(newsize.width(), newsize.height());
}
void WebWidgetHost::Paint() {
void WebWidgetHost::Paint(const gfx::Rect& dirty_rect) {
int width = logical_size_.width();
int height = logical_size_.height();
gfx::Rect client_rect(width, height);