Commit 70f8f965 authored by Ian Kilpatrick's avatar Ian Kilpatrick Committed by Commit Bot

[FlexNG] Move "-webkit-box" (non line-clamp) over to FlexNG.

As above. Previously this was handled by LayoutFlexibleBox.

Bug: 845235
Change-Id: Id4899b487c92b723341c8251601f317abb6618c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2451732Reviewed-by: default avatarDavid Grogan <dgrogan@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814361}
parent 416e8f99
...@@ -272,7 +272,8 @@ LayoutObject* LayoutObject::CreateObject(Element* element, ...@@ -272,7 +272,8 @@ LayoutObject* LayoutObject::CreateObject(Element* element,
return LayoutObjectFactory::CreateBlockForLineClamp(*element, style, return LayoutObjectFactory::CreateBlockForLineClamp(*element, style,
legacy); legacy);
} }
if (RuntimeEnabledFeatures::LayoutNGWebkitBoxEnabled())
return LayoutObjectFactory::CreateFlexibleBox(*element, style, legacy);
UseCounter::Count(element->GetDocument(), UseCounter::Count(element->GetDocument(),
WebFeature::kLegacyLayoutByFlexBox); WebFeature::kLegacyLayoutByFlexBox);
return new LayoutFlexibleBox(element); return new LayoutFlexibleBox(element);
......
...@@ -1037,6 +1037,10 @@ ...@@ -1037,6 +1037,10 @@
name: "LayoutNGTextField", name: "LayoutNGTextField",
depends_on: ["EditingNG"], depends_on: ["EditingNG"],
}, },
{
name: "LayoutNGWebkitBox",
status: "stable",
},
{ {
// Adds the "sources" attribute to the LayoutShift interface for the // Adds the "sources" attribute to the LayoutShift interface for the
// Layout Instability API (bit.ly/cls-sources). // Layout Instability API (bit.ly/cls-sources).
......
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