mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Fix servo build.
This commit is contained in:
parent
31d249fd48
commit
6d43bf78bc
4 changed files with 9 additions and 4 deletions
|
@ -378,10 +378,11 @@ ${helpers.predefined_type(
|
|||
"offset-path",
|
||||
"OffsetPath",
|
||||
"computed::OffsetPath::none()",
|
||||
products="gecko",
|
||||
animation_value_type="none",
|
||||
gecko_pref="layout.css.motion-path.enabled",
|
||||
flags="CREATES_STACKING_CONTEXT FIXPOS_CB",
|
||||
spec="https://drafts.fxtf.org/motion-1/#offset-path-property"
|
||||
spec="https://drafts.fxtf.org/motion-1/#offset-path-property",
|
||||
)}
|
||||
|
||||
// CSSOM View Module
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
#![deny(missing_docs)]
|
||||
|
||||
use Atom;
|
||||
use cssparser::{Parser as CssParser, ParserInput};
|
||||
use element_state::ElementState;
|
||||
use selectors::parser::SelectorList;
|
||||
use std::fmt::{self, Debug, Write};
|
||||
use string_cache::Atom;
|
||||
use style_traits::{CssWriter, ParseError, ToCss};
|
||||
use stylesheets::{Namespaces, Origin, UrlExtraData};
|
||||
use values::serialize_atom_identifier;
|
||||
|
|
|
@ -135,6 +135,10 @@ impl PseudoElement {
|
|||
self.is_before() || self.is_after()
|
||||
}
|
||||
|
||||
/// Whether this is an unknown ::-webkit- pseudo-element.
|
||||
#[inline]
|
||||
pub fn is_unknown_webkit_pseudo_element(&self) -> bool { false }
|
||||
|
||||
/// Whether this pseudo-element is the ::before pseudo.
|
||||
#[inline]
|
||||
pub fn is_before(&self) -> bool {
|
||||
|
|
|
@ -1948,7 +1948,7 @@ pub struct CascadeData {
|
|||
/// to avoid taking element snapshots when an irrelevant attribute changes.
|
||||
/// (We don't bother storing the namespace, since namespaced attributes are
|
||||
/// rare.)
|
||||
attribute_dependencies: PrecomputedHashSet<Atom>,
|
||||
attribute_dependencies: PrecomputedHashSet<LocalName>,
|
||||
|
||||
/// The element state bits that are relied on by selectors. Like
|
||||
/// `attribute_dependencies`, this is used to avoid taking element snapshots
|
||||
|
@ -1964,7 +1964,7 @@ pub struct CascadeData {
|
|||
/// hence in our selector maps). Used to determine when sharing styles is
|
||||
/// safe: we disallow style sharing for elements whose id matches this
|
||||
/// filter, and hence might be in one of our selector maps.
|
||||
mapped_ids: PrecomputedHashSet<LocalName>,
|
||||
mapped_ids: PrecomputedHashSet<Atom>,
|
||||
|
||||
/// Selectors that require explicit cache revalidation (i.e. which depend
|
||||
/// on state that is not otherwise visible to the cache, like attributes or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue