| Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/render_widget_host_view_gtk.cc (revision 34937)
|
| +++ chrome/browser/renderer_host/render_widget_host_view_gtk.cc (working copy)
|
| @@ -505,21 +505,27 @@
|
| key_bindings_handler_->set_enabled(control != IME_DISABLE);
|
| }
|
|
|
| -void RenderWidgetHostViewGtk::DidPaintRect(const gfx::Rect& rect) {
|
| +void RenderWidgetHostViewGtk::DidPaintBackingStoreRects(
|
| + const std::vector<gfx::Rect>& rects) {
|
| if (is_hidden_)
|
| return;
|
|
|
| - if (about_to_validate_and_paint_)
|
| - invalid_rect_ = invalid_rect_.Union(rect);
|
| - else
|
| - Paint(rect);
|
| + for (size_t i = 0; i < rects.size(); ++i) {
|
| + if (about_to_validate_and_paint_) {
|
| + invalid_rect_ = invalid_rect_.Union(rects[i]);
|
| + } else {
|
| + Paint(rects[i]);
|
| + }
|
| + }
|
| }
|
|
|
| -void RenderWidgetHostViewGtk::DidScrollRect(const gfx::Rect& rect, int dx,
|
| - int dy) {
|
| +void RenderWidgetHostViewGtk::DidScrollBackingStoreRect(const gfx::Rect& rect,
|
| + int dx, int dy) {
|
| if (is_hidden_)
|
| return;
|
|
|
| + // TODO(darin): Implement the equivalent of Win32's ScrollWindowEX. Can that
|
| + // be done using XCopyArea? Perhaps similar to BackingStore::ScrollRect?
|
| Paint(rect);
|
| }
|
|
|
|
|