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

Unified Diff: chrome/browser/ui/window_snapshot/window_snapshot_aura.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 years, 2 months 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/ui/window_snapshot/window_snapshot_aura.cc
diff --git a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
index a2309a2364f1bda40b29800420a52cfa44ba147c..f7164c7da358d59464a83327398026dde91006bc 100644
--- a/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
+++ b/chrome/browser/ui/window_snapshot/window_snapshot_aura.cc
@@ -25,8 +25,7 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
// When not in compact mode we must take into account the window's position on
// the desktop.
- read_pixels_bounds.set_origin(
- snapshot_bounds.origin().Add(window->bounds().origin()));
+ read_pixels_bounds.Offset(window->bounds().OffsetFromOrigin());
gfx::Rect read_pixels_bounds_in_pixel =
ui::ConvertRectToPixel(window->layer(), read_pixels_bounds);

Powered by Google App Engine
This is Rietveld 408576698