From 84cabf24163d55b73c1c1096f022812a6455de03 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Sat, 30 Jan 2021 13:47:10 +0000 Subject: [PATCH] style: Support Grid/Flex/Table/Column layout for the rendered legend of a fieldset. Differential Revision: https://phabricator.services.mozilla.com/D101555 --- components/style/values/specified/box.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index 94785b60988..2c56a32be54 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -266,6 +266,12 @@ impl Display { .unwrap() } + /// Returns the raw underlying u16 value. + #[inline] + pub const fn to_u16(&self) -> u16 { + self.0 + } + /// Whether this is `display: inline` (or `inline list-item`). #[inline] pub fn is_inline_flow(&self) -> bool {