style: Fix Gecko and Servo builds, and appease tidy.

This commit is contained in:
Emilio Cobos Álvarez 2019-03-26 16:23:12 +01:00
parent f9ce3a9da2
commit ff41f82720
16 changed files with 155 additions and 78 deletions

View file

@ -2759,7 +2759,7 @@ pub struct ComputedValuesInner {
pub writing_mode: WritingMode,
/// A set of flags we use to store misc information regarding this style.
flags: ComputedValueFlags,
pub flags: ComputedValueFlags,
/// The rule node representing the ordered list of rules matched for this
/// node. Can be None for default values and text nodes. This is
@ -3719,8 +3719,8 @@ mod lazy_static_module {
use super::{ComputedValues, ComputedValuesInner, longhands, style_structs};
use super::computed_value_flags::ComputedValueFlags;
/// The initial values for all style structs as defined by the specification.
lazy_static! {
/// The initial values for all style structs as defined by the specification.
pub static ref INITIAL_SERVO_VALUES: ComputedValues = ComputedValues {
inner: ComputedValuesInner {
% for style_struct in data.active_style_structs():
@ -3744,7 +3744,7 @@ mod lazy_static_module {
writing_mode: WritingMode::empty(),
rules: None,
visited_style: None,
flags: Cell::new(ComputedValueFlags::empty()),
flags: ComputedValueFlags::empty(),
}
};
}