mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Replace NoViewportPercentage with a macro
This commit is contained in:
parent
9204f2aaad
commit
abc40f61c0
19 changed files with 104 additions and 103 deletions
|
@ -62,7 +62,7 @@ ${helpers.single_keyword("mask-type", "luminance alpha",
|
|||
spec="https://drafts.fxtf.org/css-masking/#propdef-clip-path">
|
||||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
use values::NoViewportPercentage;
|
||||
use values::HasViewportPercentage;
|
||||
use values::specified::basic_shape::{ShapeSource, GeometryBox};
|
||||
|
||||
pub mod computed_value {
|
||||
|
@ -83,7 +83,7 @@ ${helpers.single_keyword("mask-type", "luminance alpha",
|
|||
ShapeSource::parse(context, input)
|
||||
}
|
||||
|
||||
impl NoViewportPercentage for SpecifiedValue {}
|
||||
no_viewport_percentage!(SpecifiedValue);
|
||||
</%helpers:longhand>
|
||||
|
||||
${helpers.single_keyword("mask-mode",
|
||||
|
@ -196,7 +196,7 @@ ${helpers.single_keyword("mask-composite",
|
|||
use std::sync::Arc;
|
||||
use values::specified::Image;
|
||||
use values::specified::url::SpecifiedUrl;
|
||||
use values::NoViewportPercentage;
|
||||
use values::HasViewportPercentage;
|
||||
|
||||
pub mod computed_value {
|
||||
use std::fmt;
|
||||
|
@ -222,7 +222,7 @@ ${helpers.single_keyword("mask-composite",
|
|||
}
|
||||
}
|
||||
|
||||
impl NoViewportPercentage for SpecifiedValue {}
|
||||
no_viewport_percentage!(SpecifiedValue);
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue