From dd503dfacb46c63702e4a4b49b85ca30df62a8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 8 Feb 2016 02:53:22 +0100 Subject: Refactor style to be completely backend-independent This commit refactors the style crate to be completely independent of the actual implementation and pseudo-elements supported. This also adds a gecko backend which introduces parsing for the anonymous box pseudo-elements[1], although there's still no way of querying them. https://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSAnonBoxList.h --- components/script/dom/htmlstyleelement.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/script/dom/htmlstyleelement.rs') diff --git a/components/script/dom/htmlstyleelement.rs b/components/script/dom/htmlstyleelement.rs index 4b423b920b7..067561d4181 100644 --- a/components/script/dom/htmlstyleelement.rs +++ b/components/script/dom/htmlstyleelement.rs @@ -17,7 +17,8 @@ use layout_interface::{LayoutChan, Msg}; use std::sync::Arc; use string_cache::Atom; use style::media_queries::parse_media_query_list; -use style::stylesheets::{Origin, Stylesheet}; +use style::servo::Stylesheet; +use style::stylesheets::Origin; use util::str::DOMString; #[dom_struct] -- cgit v1.2.3