mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
style: Remove DeclaredValue::WithVariables.
We never construct it. Differential Revision: https://phabricator.services.mozilla.com/D5976
This commit is contained in:
parent
d5ba19696a
commit
c155efe7a5
3 changed files with 0 additions and 10 deletions
|
@ -543,7 +543,6 @@ impl<'a> CustomPropertiesBuilder<'a> {
|
|||
self.may_have_cycles |= !specified_value.references.is_empty();
|
||||
map.insert(name.clone(), (*specified_value).clone());
|
||||
},
|
||||
DeclaredValue::WithVariables(_) => unreachable!(),
|
||||
DeclaredValue::CSSWideKeyword(keyword) => match keyword {
|
||||
CSSWideKeyword::Initial => {
|
||||
map.remove(name);
|
||||
|
|
|
@ -379,7 +379,6 @@
|
|||
% endif
|
||||
% endif
|
||||
}
|
||||
DeclaredValue::WithVariables(_) => unreachable!(),
|
||||
DeclaredValue::CSSWideKeyword(keyword) => match keyword {
|
||||
% if not data.current_style_struct.inherited:
|
||||
CSSWideKeyword::Unset |
|
||||
|
|
|
@ -1444,8 +1444,6 @@ impl ShorthandId {
|
|||
pub enum DeclaredValue<'a, T: 'a> {
|
||||
/// A known specified value from the stylesheet.
|
||||
Value(&'a T),
|
||||
/// An unparsed value that contains `var()` functions.
|
||||
WithVariables(&'a Arc<UnparsedValue>),
|
||||
/// An CSS-wide keyword.
|
||||
CSSWideKeyword(CSSWideKeyword),
|
||||
}
|
||||
|
@ -1459,11 +1457,6 @@ pub enum DeclaredValue<'a, T: 'a> {
|
|||
pub enum DeclaredValueOwned<T> {
|
||||
/// A known specified value from the stylesheet.
|
||||
Value(T),
|
||||
/// An unparsed value that contains `var()` functions.
|
||||
WithVariables(
|
||||
#[cfg_attr(feature = "gecko", ignore_malloc_size_of = "XXX: how to handle this?")]
|
||||
Arc<UnparsedValue>
|
||||
),
|
||||
/// An CSS-wide keyword.
|
||||
CSSWideKeyword(CSSWideKeyword),
|
||||
}
|
||||
|
@ -1473,7 +1466,6 @@ impl<T> DeclaredValueOwned<T> {
|
|||
fn borrow(&self) -> DeclaredValue<T> {
|
||||
match *self {
|
||||
DeclaredValueOwned::Value(ref v) => DeclaredValue::Value(v),
|
||||
DeclaredValueOwned::WithVariables(ref v) => DeclaredValue::WithVariables(v),
|
||||
DeclaredValueOwned::CSSWideKeyword(v) => DeclaredValue::CSSWideKeyword(v),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue