| Index: chrome/browser/ui/panels/panel_gtk.cc
|
| diff --git a/chrome/browser/ui/panels/panel_gtk.cc b/chrome/browser/ui/panels/panel_gtk.cc
|
| index c8058c806123403f563b80e56161921851279a1c..9a969a7844e4d8e6c7534d7ed9a8be225fff1fe1 100644
|
| --- a/chrome/browser/ui/panels/panel_gtk.cc
|
| +++ b/chrome/browser/ui/panels/panel_gtk.cc
|
| @@ -948,9 +948,12 @@ gfx::Size PanelGtk::ContentSizeFromWindowSize(
|
| }
|
|
|
| int PanelGtk::TitleOnlyHeight() const {
|
| - GtkAllocation allocation;
|
| - gtk_widget_get_allocation(titlebar_->widget(), &allocation);
|
| - return allocation.height;
|
| + gfx::Size& frame_size = GetFrameSize();
|
| + if (!frame_size.IsEmpty())
|
| + return frame_size.height() - kFrameBorderThickness;
|
| +
|
| + NOTREACHED() << "Checking title height before window allocated";
|
| + return 0;
|
| }
|
|
|
| bool PanelGtk::IsPanelAlwaysOnTop() const {
|
|
|