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

Unified Diff: ui/aura/window.cc

Issue 8340014: Minimize resize calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve review issue Created 9 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
« no previous file with comments | « chrome/browser/ui/views/tab_contents/tab_contents_container.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 854eaf4b2e74b35dafa3dc43e4e69149d0aa9f23..f13ce7cbca503893eeed78881f57d1e2b7a0e9dc 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -442,6 +442,9 @@ Desktop* Window::GetDesktop() {
void Window::SetBoundsInternal(const gfx::Rect& new_bounds) {
const gfx::Rect old_bounds = bounds();
+ if (old_bounds == new_bounds)
+ return;
+
bool was_move = old_bounds.size() == new_bounds.size();
layer_->SetBounds(new_bounds);
« no previous file with comments | « chrome/browser/ui/views/tab_contents/tab_contents_container.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698