Commit 6da44026 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Slider NG: Enable it behind the experimental web feature flag

Bug: 1040826
Change-Id: I4ed8de1d903563808985cea91aa13f125d06a275
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426212
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#810137}
parent 85911e57
......@@ -256,13 +256,15 @@ void RangeInputType::CreateShadowSubtree() {
}
bool RangeInputType::TypeShouldForceLegacyLayout() const {
if (RuntimeEnabledFeatures::LayoutNGForControlsEnabled())
return false;
UseCounter::Count(GetElement().GetDocument(),
WebFeature::kLegacyLayoutBySlider);
return true;
}
LayoutObject* RangeInputType::CreateLayoutObject(const ComputedStyle& style,
LegacyLayout legacy) const {
UseCounter::Count(GetElement().GetDocument(),
WebFeature::kLegacyLayoutBySlider);
// TODO(crbug.com/1131352): input[type=range] should not use
// LayoutFlexibleBox.
return LayoutObjectFactory::CreateFlexibleBox(GetElement(), style, legacy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment