Index: third_party/WebKit/Source/core/layout/ng/ng_space_utils.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_space_utils.h b/third_party/WebKit/Source/core/layout/ng/ng_space_utils.h |
index d583b17a828bd789e7c63d5898d18c740135374a..1ce6b779071c5143b1ed11a5205ea0a25b5434d9 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_space_utils.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_space_utils.h |
@@ -28,6 +28,12 @@ CORE_EXPORT WTF::Optional<LayoutUnit> GetClearanceOffset( |
const std::shared_ptr<NGExclusions>& exclusions, |
const ComputedStyle& style); |
+// Whether child's constraint space should shrink to its intrinsic width. |
+// This is needed for buttons, select, input, floats and orthogonal children. |
+// See LayoutBox::sizesLogicalWidthToFitContent for the rationale behind this. |
+bool ShouldShrinkToFit(const NGConstraintSpace& parent_space, |
+ const ComputedStyle& style); |
+ |
} // namespace blink |
#endif // NGSpaceUtils_h |