From b9adf8b7ac3673f135c796b2262bd2b07dc3b85c Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 5 Dec 2019 11:31:35 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20store=20computed=20values=20of?= =?UTF-8?q?=20logical=20properties=20in=20style=20structs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They are not used. --- components/style/properties/properties.mako.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 0a26ae4555b..38243aa45e4 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -2590,8 +2590,10 @@ pub mod style_structs { /// The ${style_struct.name} style struct. pub struct ${style_struct.name} { % for longhand in style_struct.longhands: - /// The ${longhand.name} computed value. - pub ${longhand.ident}: longhands::${longhand.ident}::computed_value::T, + % if not longhand.logical: + /// The ${longhand.name} computed value. + pub ${longhand.ident}: longhands::${longhand.ident}::computed_value::T, + % endif % endfor % if style_struct.name == "InheritedText": /// The "used" text-decorations that apply to this box. @@ -3836,7 +3838,9 @@ mod lazy_static_module { % for style_struct in data.active_style_structs(): ${style_struct.ident}: Arc::new(style_structs::${style_struct.name} { % for longhand in style_struct.longhands: - ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), + % if not longhand.logical: + ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), + % endif % endfor % if style_struct.name == "InheritedText": text_decorations_in_effect: