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

Unified Diff: ui/aura/root_window_host_linux.cc

Issue 10816009: SetBounds even when size didn't change. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_linux.cc
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc
index 9cdef7c07418010704470f472f9c032d3aca53be..04f7587d7801086615678f0494fcee2fbf0601d9 100644
--- a/ui/aura/root_window_host_linux.cc
+++ b/ui/aura/root_window_host_linux.cc
@@ -820,11 +820,6 @@ void RootWindowHostLinux::SetBounds(const gfx::Rect& bounds) {
bool size_changed = bounds_.size() != bounds.size() ||
current_scale != new_scale;
- if (!size_changed) {
- root_window_->SchedulePaintInRect(root_window_->bounds());
- return;
- }
-
if (bounds.size() != bounds_.size())
XResizeWindow(xdisplay_, xwindow_, bounds.width(), bounds.height());
@@ -839,6 +834,8 @@ void RootWindowHostLinux::SetBounds(const gfx::Rect& bounds) {
bounds_ = bounds;
if (size_changed)
root_window_->OnHostResized(bounds.size());
+ else
+ root_window_->SchedulePaintInRect(root_window_->bounds());
}
gfx::Point RootWindowHostLinux::GetLocationOnNativeScreen() const {
« 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