Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(966)

Unified Diff: chrome/browser/renderer_host/backing_store_x.cc

Issue 4319003: Replace TabContentsViewGtk with TabContentsViewViews as part of the ongoing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address final comments from reviewers Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/backing_store_x.cc
diff --git a/chrome/browser/renderer_host/backing_store_x.cc b/chrome/browser/renderer_host/backing_store_x.cc
index 9fc7e5c838a246cc9b250d0b568fe0f95426490a..d71b391d3d589b54109e846a8d48a101c637cdff 100644
--- a/chrome/browser/renderer_host/backing_store_x.cc
+++ b/chrome/browser/renderer_host/backing_store_x.cc
@@ -430,10 +430,11 @@ void BackingStoreX::ScrollBackingStore(int dx, int dy,
}
}
-void BackingStoreX::XShowRect(const gfx::Rect& rect, XID target) {
+void BackingStoreX::XShowRect(const gfx::Point &origin,
+ const gfx::Rect& rect, XID target) {
XCopyArea(display_, pixmap_, target, static_cast<GC>(pixmap_gc_),
rect.x(), rect.y(), rect.width(), rect.height(),
- rect.x(), rect.y());
+ rect.x() + origin.x(), rect.y() + origin.y());
}
void BackingStoreX::CairoShowRect(const gfx::Rect& rect,
« no previous file with comments | « chrome/browser/renderer_host/backing_store_x.h ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698