summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/widget/widget_gtk.cc1
-rw-r--r--views/widget/widget_win.cc1
2 files changed, 0 insertions, 2 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index 1aec6a4..a430de7 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -436,7 +436,6 @@ void WidgetGtk::CreateGtkWidget(GtkWidget* parent) {
void WidgetGtk::OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation) {
root_view_->SetBounds(0, 0, allocation->width, allocation->height);
- root_view_->Layout();
root_view_->SchedulePaint();
}
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc
index d4cd460..5cc8a79 100644
--- a/views/widget/widget_win.cc
+++ b/views/widget/widget_win.cc
@@ -873,7 +873,6 @@ void WidgetWin::ChangeSize(UINT size_param, const CSize& size) {
// Resizing changes the size of the view hierarchy and thus forces a
// complete relayout.
root_view_->SetBounds(0, 0, rect.Width(), rect.Height());
- root_view_->Layout();
root_view_->SchedulePaint();
if (use_layered_buffer_)