Commit 8f1da6e5 authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[FlexNG] Remove LayoutNGFlexBox flag.

There should be no behaviour change.

Change-Id: Iaf844f6ba65813022147d91fe8e0d7ebdaacd7e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386457
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: default avatarDavid Grogan <dgrogan@chromium.org>
Reviewed-by: default avatarChristian Biesinger <cbiesinger@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812029}
parent 8a93811e
......@@ -356,7 +356,6 @@ void SetRuntimeFeaturesFromChromiumFeatures() {
{"LangClientHintHeader", features::kLangClientHintHeader},
{"LayoutNG", blink::features::kLayoutNG},
{"LayoutNGFieldset", blink::features::kLayoutNGFieldset},
{"LayoutNGFlexBox", blink::features::kFlexNG},
{"LayoutNGFragmentItem", blink::features::kFragmentItem},
{"LayoutNGRuby", blink::features::kLayoutNGRuby},
{"LegacyWindowsDWriteFontFallback",
......
......@@ -565,7 +565,6 @@ const base::FeatureParam<int> kFontPreloadingDelaysRenderingParam{
const base::Feature kFlexAspectRatio{"FlexAspectRatio",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kFlexNG{"FlexNG", base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kKeepScriptResourceAlive{"KeepScriptResourceAlive",
base::FEATURE_DISABLED_BY_DEFAULT};
......
......@@ -177,7 +177,6 @@ BLINK_COMMON_EXPORT extern const base::FeatureParam<int>
kFontPreloadingDelaysRenderingParam;
BLINK_COMMON_EXPORT extern const base::Feature kFlexAspectRatio;
BLINK_COMMON_EXPORT extern const base::Feature kFlexNG;
BLINK_COMMON_EXPORT extern const base::Feature kKeepScriptResourceAlive;
......
......@@ -120,11 +120,8 @@ LayoutBlock* LayoutObjectFactory::CreateBlockForLineClamp(
LayoutBlock* LayoutObjectFactory::CreateFlexibleBox(Node& node,
const ComputedStyle& style,
LegacyLayout legacy) {
bool disable_ng_for_type = !RuntimeEnabledFeatures::LayoutNGFlexBoxEnabled();
if (disable_ng_for_type)
UseCounter::Count(node.GetDocument(), WebFeature::kLegacyLayoutByFlexBox);
return CreateObject<LayoutBlock, LayoutNGFlexibleBox, LayoutFlexibleBox>(
node, style, legacy, disable_ng_for_type);
node, style, legacy);
}
LayoutBlock* LayoutObjectFactory::CreateGrid(Node& node,
......@@ -240,11 +237,8 @@ LayoutBox* LayoutObjectFactory::CreateTableSection(Node& node,
LayoutObject* LayoutObjectFactory::CreateButton(Node& node,
const ComputedStyle& style,
LegacyLayout legacy) {
bool disable_ng_for_type = !RuntimeEnabledFeatures::LayoutNGFlexBoxEnabled();
if (disable_ng_for_type)
UseCounter::Count(node.GetDocument(), WebFeature::kLegacyLayoutByFlexBox);
return CreateObject<LayoutBlock, LayoutNGButton, LayoutButton>(
node, style, legacy, disable_ng_for_type);
return CreateObject<LayoutBlock, LayoutNGButton, LayoutButton>(node, style,
legacy);
}
LayoutBlock* LayoutObjectFactory::CreateFieldset(Node& node,
......
......@@ -1503,8 +1503,6 @@ TEST_F(NGLayoutResultCachingTest, MissIsFixedBlockSizeIndefinite) {
}
TEST_F(NGLayoutResultCachingTest, HitColumnFlexBoxMeasureAndLayout) {
ScopedLayoutNGFlexBoxForTest layout_ng_flex_box(true);
SetBodyInnerHTML(R"HTML(
<!DOCTYPE html>
<style>
......@@ -1557,8 +1555,6 @@ TEST_F(NGLayoutResultCachingTest, HitColumnFlexBoxMeasureAndLayout) {
}
TEST_F(NGLayoutResultCachingTest, HitRowFlexBoxMeasureAndLayout) {
ScopedLayoutNGFlexBoxForTest layout_ng_flex_box(true);
SetBodyInnerHTML(R"HTML(
<!DOCTYPE html>
<style>
......
......@@ -1001,10 +1001,6 @@
depends_on: ["LayoutNG"],
status: "stable",
},
{
name: "LayoutNGFlexBox",
status: "stable",
},
{
name: "LayoutNGForControls",
depends_on: ["LayoutNG"],
......
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