style: Fix servo build.

This commit is contained in:
Emilio Cobos Álvarez 2018-09-03 12:56:30 +02:00
parent 31d249fd48
commit 6d43bf78bc
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 9 additions and 4 deletions

View file

@ -378,10 +378,11 @@ ${helpers.predefined_type(
"offset-path", "offset-path",
"OffsetPath", "OffsetPath",
"computed::OffsetPath::none()", "computed::OffsetPath::none()",
products="gecko",
animation_value_type="none", animation_value_type="none",
gecko_pref="layout.css.motion-path.enabled", gecko_pref="layout.css.motion-path.enabled",
flags="CREATES_STACKING_CONTEXT FIXPOS_CB", 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 // CSSOM View Module

View file

@ -6,11 +6,11 @@
#![deny(missing_docs)] #![deny(missing_docs)]
use Atom;
use cssparser::{Parser as CssParser, ParserInput}; use cssparser::{Parser as CssParser, ParserInput};
use element_state::ElementState; use element_state::ElementState;
use selectors::parser::SelectorList; use selectors::parser::SelectorList;
use std::fmt::{self, Debug, Write}; use std::fmt::{self, Debug, Write};
use string_cache::Atom;
use style_traits::{CssWriter, ParseError, ToCss}; use style_traits::{CssWriter, ParseError, ToCss};
use stylesheets::{Namespaces, Origin, UrlExtraData}; use stylesheets::{Namespaces, Origin, UrlExtraData};
use values::serialize_atom_identifier; use values::serialize_atom_identifier;

View file

@ -135,6 +135,10 @@ impl PseudoElement {
self.is_before() || self.is_after() 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. /// Whether this pseudo-element is the ::before pseudo.
#[inline] #[inline]
pub fn is_before(&self) -> bool { pub fn is_before(&self) -> bool {

View file

@ -1948,7 +1948,7 @@ pub struct CascadeData {
/// to avoid taking element snapshots when an irrelevant attribute changes. /// to avoid taking element snapshots when an irrelevant attribute changes.
/// (We don't bother storing the namespace, since namespaced attributes are /// (We don't bother storing the namespace, since namespaced attributes are
/// rare.) /// rare.)
attribute_dependencies: PrecomputedHashSet<Atom>, attribute_dependencies: PrecomputedHashSet<LocalName>,
/// The element state bits that are relied on by selectors. Like /// The element state bits that are relied on by selectors. Like
/// `attribute_dependencies`, this is used to avoid taking element snapshots /// `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 /// hence in our selector maps). Used to determine when sharing styles is
/// safe: we disallow style sharing for elements whose id matches this /// safe: we disallow style sharing for elements whose id matches this
/// filter, and hence might be in one of our selector maps. /// 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 /// Selectors that require explicit cache revalidation (i.e. which depend
/// on state that is not otherwise visible to the cache, like attributes or /// on state that is not otherwise visible to the cache, like attributes or