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

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: Last patchset was missing canvas_direct2d.cc edit, fixed it and sent to try bots. 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 a79a8fc4aefa3ba047860a92e7f1c9e748c982e8..c39a8d2987a77b2ebc4ab50171b078319284a74e 100644
--- a/chrome/browser/renderer_host/backing_store_x.cc
+++ b/chrome/browser/renderer_host/backing_store_x.cc
@@ -436,9 +436,14 @@ void BackingStoreX::ScrollBackingStore(int dx, int dy,
}
void BackingStoreX::XShowRect(const gfx::Rect& rect, XID target) {
+ XShowRect(gfx::Point(0, 0), rect, 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,

Powered by Google App Engine
This is Rietveld 408576698