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

Unified Diff: chrome/browser/ui/views/tab_contents/tab_contents_container.cc

Issue 8340014: Minimize resize calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup 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 | « no previous file | ui/aura/window.cc » ('j') | views/controls/native/native_view_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tab_contents/tab_contents_container.cc
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
index 0bbf679cbf8822ae675277b679c4a098e04ccc86..c9635042297350638454d4017fe969f1d428c083 100644
--- a/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_container.cc
@@ -85,10 +85,8 @@ void TabContentsContainer::Observe(
// TabContentsContainer, View overrides:
void TabContentsContainer::Layout() {
- if (native_container_) {
+ if (native_container_)
native_container_->GetView()->SetBounds(0, 0, width(), height());
- native_container_->GetView()->Layout();
- }
}
void TabContentsContainer::GetAccessibleState(ui::AccessibleViewState* state) {
« no previous file with comments | « no previous file | ui/aura/window.cc » ('j') | views/controls/native/native_view_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698