Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions style/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ extern crate to_shmem_derive;
#[macro_use]
mod macros;

pub mod animation;
pub mod applicable_declarations;
#[allow(missing_docs)] // TODO.
#[cfg(feature = "servo")]
pub mod attr;
pub mod author_styles;
pub mod bezier;
pub mod bloom;
Expand All @@ -96,8 +92,6 @@ pub mod data;
pub mod dom;
pub mod dom_apis;
pub mod driver;
#[cfg(feature = "servo")]
mod encoding_support;
pub mod error_reporting;
pub mod font_face;
pub mod font_metrics;
Expand Down Expand Up @@ -165,8 +159,6 @@ pub type Namespace = crate::values::GenericAtomIdent<web_atoms::NamespaceStaticS
#[cfg(feature = "servo")]
#[allow(missing_docs)]
pub type Prefix = crate::values::GenericAtomIdent<web_atoms::PrefixStaticSet>;
#[cfg(feature = "servo")]
mod shadow_parts;

pub use style_traits::arc_slice::ArcSlice;
pub use style_traits::owned_slice::OwnedSlice;
Expand All @@ -185,6 +177,8 @@ pub mod gecko;
#[cfg(feature = "servo")]
#[allow(unsafe_code)]
pub mod servo;
#[cfg(feature = "servo")]
pub use servo::{animation, attr};

macro_rules! reexport_computed_values {
( $( { $name: ident } )+ ) => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion style/attr.rs → style/servo/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//!
//! [attr]: https://dom.spec.whatwg.org/#interface-attr

use super::shadow_parts::ShadowParts;
use crate::color::{parsing::parse_color_keyword, AbsoluteColor};
use crate::properties::PropertyDeclarationBlock;
use crate::shadow_parts::ShadowParts;
use crate::shared_lock::Locked;
use crate::str::str_join;
use crate::str::{read_exponent, read_fraction, HTML_SPACE_CHARACTERS};
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions style/servo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
//!
//! These get compiled out on a Gecko build.

pub mod animation;
#[allow(missing_docs)] // TODO.
pub mod attr;
mod encoding_support;
pub mod media_queries;
pub mod restyle_damage;
pub mod selector_parser;
mod shadow_parts;
pub mod url;
2 changes: 0 additions & 2 deletions style/shadow_parts.rs → style/servo/shadow_parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ impl ShadowParts {

#[cfg(test)]
mod tests {
use crate::shadow_parts::parse_mapping_list;

use super::*;

#[test]
Expand Down
Loading