summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/compositor_bindings/web_layer_tree_view_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
index 4ff7b0d..2b4d835 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
@@ -58,11 +58,11 @@ bool WebLayerTreeViewImpl::initialize(const WebLayerTreeView::Settings& webSetti
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTopControlsHeight)) {
std::string controls_height_str =
CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switches::kTopControlsHeight);
- int controls_height;
- if (base::StringToInt(controls_height_str, &controls_height) && controls_height > 0)
- settings.topControlsHeightPx = controls_height;
+ double controls_height;
+ if (base::StringToDouble(controls_height_str, &controls_height) && controls_height > 0)
+ settings.topControlsHeight = controls_height;
}
- if (settings.calculateTopControlsPosition && (settings.topControlsHeightPx <= 0 || !settings.compositorFrameMessage)) {
+ if (settings.calculateTopControlsPosition && (settings.topControlsHeight <= 0 || !settings.compositorFrameMessage)) {
DCHECK(false) << "Top controls repositioning enabled without valid height or compositorFrameMessage set.";
settings.calculateTopControlsPosition = false;
}