Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement `text-align` (except `justify`) #25203

Merged
merged 6 commits into from Dec 10, 2019
Next

Don’t store computed values of logical properties in style structs

They are not used.
  • Loading branch information
SimonSapin committed Dec 7, 2019
commit b9adf8b7ac3673f135c796b2262bd2b07dc3b85c
@@ -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:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.