mirror of
https://github.com/servo/servo.git
synced 2025-06-21 07:38:59 +01:00
Don’t store computed values of logical properties in style structs
They are not used.
This commit is contained in:
parent
2d2cd2b7d7
commit
b9adf8b7ac
1 changed files with 7 additions and 3 deletions
|
@ -2590,8 +2590,10 @@ pub mod style_structs {
|
||||||
/// The ${style_struct.name} style struct.
|
/// The ${style_struct.name} style struct.
|
||||||
pub struct ${style_struct.name} {
|
pub struct ${style_struct.name} {
|
||||||
% for longhand in style_struct.longhands:
|
% for longhand in style_struct.longhands:
|
||||||
/// The ${longhand.name} computed value.
|
% if not longhand.logical:
|
||||||
pub ${longhand.ident}: longhands::${longhand.ident}::computed_value::T,
|
/// The ${longhand.name} computed value.
|
||||||
|
pub ${longhand.ident}: longhands::${longhand.ident}::computed_value::T,
|
||||||
|
% endif
|
||||||
% endfor
|
% endfor
|
||||||
% if style_struct.name == "InheritedText":
|
% if style_struct.name == "InheritedText":
|
||||||
/// The "used" text-decorations that apply to this box.
|
/// 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():
|
% for style_struct in data.active_style_structs():
|
||||||
${style_struct.ident}: Arc::new(style_structs::${style_struct.name} {
|
${style_struct.ident}: Arc::new(style_structs::${style_struct.name} {
|
||||||
% for longhand in style_struct.longhands:
|
% 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
|
% endfor
|
||||||
% if style_struct.name == "InheritedText":
|
% if style_struct.name == "InheritedText":
|
||||||
text_decorations_in_effect:
|
text_decorations_in_effect:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue