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

Unified Diff: ash/wm/window_state.cc

Issue 357063002: Snap widgets to pixel boundary on ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adjust tests Created 6 years, 5 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
« no previous file with comments | « ash/wm/window_state.h ('k') | ash/wm/window_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index ca1e4bc99429155989783483541f4d897990be05..d0aacce258968a3901d355df0df92b876e12d2a1 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -378,6 +378,7 @@ void WindowState::SetBoundsDirect(const gfx::Rect& bounds) {
std::max(min_size.height(), actual_new_bounds.height()));
}
BoundsSetter().SetBounds(window_, actual_new_bounds);
+ SnapWindowToPixelBoundary(window_);
}
void WindowState::SetBoundsConstrained(const gfx::Rect& bounds) {
« no previous file with comments | « ash/wm/window_state.h ('k') | ash/wm/window_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698