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

Unified Diff: ash/wm/window_state.cc

Issue 2927003002: Do not adjust subpixel if the window's position is controlled by client. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | 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 c3f33ef717cb907f19cad482dcc3b04adc930afc..ad1af91c427efe668de342abc1ab56ac1bb8d10e 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -452,7 +452,8 @@ void WindowState::SetBoundsDirect(const gfx::Rect& bounds) {
std::max(min_size.height(), actual_new_bounds.height()));
}
BoundsSetter().SetBounds(window_, actual_new_bounds);
- wm::SnapWindowToPixelBoundary(window_);
+ if (!allow_set_bounds_direct())
+ wm::SnapWindowToPixelBoundary(window_);
}
void WindowState::SetBoundsConstrained(const gfx::Rect& bounds) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698