mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 165669.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@902 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -24,16 +24,15 @@ void WebWidgetHost::InvalidateRect(const gfx::Rect& rect) {
|
||||
|
||||
int width, height;
|
||||
GetSize(width, height);
|
||||
const gfx::Rect client_rect(width, height);
|
||||
|
||||
const gfx::Rect rect_in_client = client_rect.Intersect(rect);
|
||||
if (rect_in_client.IsEmpty())
|
||||
gfx::Rect client_rect(width, height);
|
||||
client_rect.Intersect(rect);
|
||||
if (client_rect.IsEmpty())
|
||||
return;
|
||||
|
||||
UpdatePaintRect(rect_in_client);
|
||||
UpdatePaintRect(client_rect);
|
||||
|
||||
if (view_)
|
||||
InvalidateWindowRect(rect_in_client);
|
||||
InvalidateWindowRect(client_rect);
|
||||
else
|
||||
ScheduleTimer();
|
||||
}
|
||||
@@ -140,7 +139,7 @@ void WebWidgetHost::UpdatePaintRect(const gfx::Rect& rect) {
|
||||
SkRegion::kUnion_Op);
|
||||
#else
|
||||
// TODO(cef): Update all ports to use regions instead of rectangles.
|
||||
paint_rect_ = paint_rect_.Union(rect);
|
||||
paint_rect_.Union(rect);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user