mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
style: Fix servo build.
This commit is contained in:
parent
5aeab7adb1
commit
a65925cb85
3 changed files with 5 additions and 6 deletions
|
@ -2591,6 +2591,7 @@ pub mod style_structs {
|
||||||
/// Whether the border-${side} property has nonzero width.
|
/// Whether the border-${side} property has nonzero width.
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
pub fn border_${side}_has_nonzero_width(&self) -> bool {
|
pub fn border_${side}_has_nonzero_width(&self) -> bool {
|
||||||
|
use crate::Zero;
|
||||||
!self.border_${side}_width.is_zero()
|
!self.border_${side}_width.is_zero()
|
||||||
}
|
}
|
||||||
% endfor
|
% endfor
|
||||||
|
@ -2630,6 +2631,7 @@ pub mod style_structs {
|
||||||
/// Whether the outline-width property is non-zero.
|
/// Whether the outline-width property is non-zero.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn outline_has_nonzero_width(&self) -> bool {
|
pub fn outline_has_nonzero_width(&self) -> bool {
|
||||||
|
use crate::Zero;
|
||||||
!self.outline_width.is_zero()
|
!self.outline_width.is_zero()
|
||||||
}
|
}
|
||||||
% elif style_struct.name == "Text":
|
% elif style_struct.name == "Text":
|
||||||
|
@ -2724,11 +2726,7 @@ pub mod style_structs {
|
||||||
/// Whether this is a multicol style.
|
/// Whether this is a multicol style.
|
||||||
#[cfg(feature = "servo")]
|
#[cfg(feature = "servo")]
|
||||||
pub fn is_multicol(&self) -> bool {
|
pub fn is_multicol(&self) -> bool {
|
||||||
use crate::values::Either;
|
!self.column_width.is_auto() || !self.column_count.is_auto()
|
||||||
match self.column_width {
|
|
||||||
Either::First(_width) => true,
|
|
||||||
Either::Second(_auto) => !self.column_count.is_auto(),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
% endif
|
% endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ pub type InitialLetter = GenericInitialLetter<CSSFloat, CSSInteger>;
|
||||||
ToAnimatedValue,
|
ToAnimatedValue,
|
||||||
ToAnimatedZero,
|
ToAnimatedZero,
|
||||||
)]
|
)]
|
||||||
pub struct LetterSpacing(Length);
|
pub struct LetterSpacing(pub Length);
|
||||||
|
|
||||||
impl LetterSpacing {
|
impl LetterSpacing {
|
||||||
/// Return the `normal` computed value, which is just zero.
|
/// Return the `normal` computed value, which is just zero.
|
||||||
|
|
|
@ -836,6 +836,7 @@ pub enum WordBreak {
|
||||||
///
|
///
|
||||||
/// Specifying `word-break: break-word` makes `overflow-wrap` behave as
|
/// Specifying `word-break: break-word` makes `overflow-wrap` behave as
|
||||||
/// `anywhere`, and `word-break` behave like `normal`.
|
/// `anywhere`, and `word-break` behave like `normal`.
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
BreakWord,
|
BreakWord,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue