diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 23:22:33 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 23:22:33 +0000 |
commit | a1cc1bcb7b5d912f4c38181eee19c4a1375f4a01 (patch) | |
tree | d20a8d96ba859af14df8d18acfccc36f8639aca2 /content | |
parent | ae9e4789d9a4f3a6b1f945dbac5184483a94da19 (diff) | |
download | chromium_src-a1cc1bcb7b5d912f4c38181eee19c4a1375f4a01.zip chromium_src-a1cc1bcb7b5d912f4c38181eee19c4a1375f4a01.tar.gz chromium_src-a1cc1bcb7b5d912f4c38181eee19c4a1375f4a01.tar.bz2 |
GTTF: Fix problems with contents detected by debugallocation:
- unitialized variables
Example:
[320:320:0108/121207:1124051475207:FATAL:browser_main_loop.cc(175)] Gtk: IA__gtk_widget_set_size_request: assertion `width >= -1' failed
base::debug::StackTrace::StackTrace() [0xc57eac]
logging::LogMessage::~LogMessage() [0xc77719]
content::(anonymous namespace)::GLibLogHandler() [0x33f749c]
<unknown> [0x7fe62ad7ffa1]
<unknown> [0x7fe62ad801b2]
content::Shell::SizeTo() [0x81f69c]
content::Shell::PlatformResizeSubViews() [0x81f6cc]
content::Shell::CreateShell() [0x81c3f2]
content::Shell::CreateNewWindow() [0x81c6fa]
content::WebKitTestController::PrepareForLayoutTest() [0x829e82]
content::InProcessBrowserLayoutTest::RunLayoutTestInternal() [0x5790f7]
content::InProcessBrowserLayoutTest::RunLayoutTest() [0x578d91]
content::MediaLayoutTest_VideoLoopTest_Test::RunTestOnMainThread() [0x4d93ba]
content::ContentBrowserTest::RunTestOnMainThreadLoop() [0x573ba2]
content::BrowserTestBase::ProxyRunTestOnMainThreadLoop() [0x83e5ab]
base::internal::RunnableAdapter<>::Run() [0x83eb7e]
base::internal::InvokeHelper<>::MakeItSo() [0x83eb16]
base::internal::Invoker<>::Run() [0x83eac3]
base::Callback<>::Run() [0x459f2d]
content::ShellBrowserMainParts::PreMainMessageLoopRun() [0x838a4e]
content::BrowserMainLoop::CreateThreads() [0x33f846e]
content::BrowserMainRunnerImpl::Initialize() [0x326bd64]
content::BrowserMain() [0x326b96b]
content::BrowserTestBase::SetUp() [0x83e536]
content::ContentBrowserTest::SetUp() [0x573a15]
BUG=30715
Review URL: https://codereview.chromium.org/11777028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/shell/shell_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/shell/shell_gtk.cc b/content/shell/shell_gtk.cc index 25e6dd7..2a3fb6e 100644 --- a/content/shell/shell_gtk.cc +++ b/content/shell/shell_gtk.cc @@ -101,6 +101,8 @@ void Shell::PlatformSetIsLoading(bool loading) { } void Shell::PlatformCreateWindow(int width, int height) { + SizeTo(width, height); + if (headless_) return; @@ -194,8 +196,6 @@ void Shell::PlatformCreateWindow(int width, int height) { gtk_container_add(GTK_CONTAINER(window_), vbox_); gtk_widget_show_all(GTK_WIDGET(window_)); - - SizeTo(width, height); } void Shell::PlatformSetContents() { |