| Index: ui/views/layout/fill_layout.cc
|
| diff --git a/ui/views/layout/fill_layout.cc b/ui/views/layout/fill_layout.cc
|
| index 54893671f58784ce963503f694582214e3cccd27..21375461210b0d54256f975553c703ed2097021c 100644
|
| --- a/ui/views/layout/fill_layout.cc
|
| +++ b/ui/views/layout/fill_layout.cc
|
| @@ -20,7 +20,7 @@ void FillLayout::Layout(View* host) {
|
| frame_view->SetBoundsRect(host->GetContentsBounds());
|
| }
|
|
|
| -gfx::Size FillLayout::GetPreferredSize(View* host) {
|
| +gfx::Size FillLayout::GetPreferredSize(const View* host) const {
|
| if (!host->has_children())
|
| return gfx::Size();
|
| DCHECK_EQ(1, host->child_count());
|
| @@ -29,7 +29,7 @@ gfx::Size FillLayout::GetPreferredSize(View* host) {
|
| return rect.size();
|
| }
|
|
|
| -int FillLayout::GetPreferredHeightForWidth(View* host, int width) {
|
| +int FillLayout::GetPreferredHeightForWidth(const View* host, int width) const {
|
| if (!host->has_children())
|
| return 0;
|
| DCHECK_EQ(1, host->child_count());
|
|
|