summaryrefslogtreecommitdiffstats
path: root/chromium/ui/views/layout/fill_layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/layout/fill_layout.cc')
-rw-r--r--chromium/ui/views/layout/fill_layout.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/ui/views/layout/fill_layout.cc b/chromium/ui/views/layout/fill_layout.cc
index 54893671f58..21375461210 100644
--- a/chromium/ui/views/layout/fill_layout.cc
+++ b/chromium/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());