mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Do not use CVAS for the -servo-under-display-none property
This commit is contained in:
parent
d27c5954a1
commit
f2b1c6b7cf
1 changed files with 2 additions and 5 deletions
|
@ -256,17 +256,14 @@ ${helpers.single_keyword("image-rendering",
|
||||||
spec="Nonstandard (internal layout use only)">
|
spec="Nonstandard (internal layout use only)">
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use style_traits::ToCss;
|
use style_traits::ToCss;
|
||||||
use values::computed::ComputedValueAsSpecified;
|
|
||||||
|
|
||||||
|
#[cfg_attr(feature = "servo", derive(Deserialize, HeapSizeOf, Serialize))]
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, ToComputedValue)]
|
||||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf, Deserialize, Serialize))]
|
|
||||||
pub struct SpecifiedValue(pub bool);
|
pub struct SpecifiedValue(pub bool);
|
||||||
|
|
||||||
pub mod computed_value {
|
pub mod computed_value {
|
||||||
pub type T = super::SpecifiedValue;
|
pub type T = super::SpecifiedValue;
|
||||||
}
|
}
|
||||||
impl ComputedValueAsSpecified for SpecifiedValue {}
|
|
||||||
|
|
||||||
pub fn get_initial_value() -> computed_value::T {
|
pub fn get_initial_value() -> computed_value::T {
|
||||||
SpecifiedValue(false)
|
SpecifiedValue(false)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue