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

Unified Diff: views/controls/tabbed_pane/native_tabbed_pane_win.cc

Issue 6462022: It turns out I had the sense of the GetLocalBounds bool wrong everywhere, so ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
Index: views/controls/tabbed_pane/native_tabbed_pane_win.cc
===================================================================
--- views/controls/tabbed_pane/native_tabbed_pane_win.cc (revision 74228)
+++ views/controls/tabbed_pane/native_tabbed_pane_win.cc (working copy)
@@ -57,7 +57,7 @@
View* child = host->GetChildViewAt(i);
// The child might not have been laid out yet.
if (child == page)
- child->SetBoundsRect(host->GetLocalBounds());
+ child->SetBoundsRect(host->GetContentsBounds());
child->SetVisible(child == page);
}
@@ -72,7 +72,7 @@
private:
// LayoutManager overrides:
virtual void Layout(View* host) {
- gfx::Rect bounds(host->GetLocalBounds());
+ gfx::Rect bounds(host->GetContentsBounds());
for (int i = 0; i < host->GetChildViewCount(); ++i) {
View* child = host->GetChildViewAt(i);
// We only layout visible children, since it may be expensive.

Powered by Google App Engine
This is Rietveld 408576698