diff --git a/ports/geckolib/data.rs b/ports/geckolib/data.rs index dd0fa4dc18d..0f07ef83c57 100644 --- a/ports/geckolib/data.rs +++ b/ports/geckolib/data.rs @@ -6,12 +6,11 @@ use euclid::Size2D; use euclid::size::TypedSize2D; use gecko_bindings::bindings::RawServoStyleSet; use num_cpus; -use selector_impl::{Stylist, Stylesheet, SharedStyleContext}; +use selector_impl::{GeckoSelectorImpl, Stylist, Stylesheet, SharedStyleContext}; use std::cmp; use std::collections::HashMap; use std::sync::mpsc::{channel, Receiver, Sender}; use std::sync::{Arc, RwLock}; -use style::animation::Animation; use style::dom::OpaqueNode; use style::media_queries::{Device, MediaType}; use style::parallel::WorkQueueData; @@ -19,6 +18,8 @@ use util::geometry::ViewportPx; use util::thread_state; use util::workqueue::WorkQueue; +pub type Animation = ::style::animation::Animation; + pub struct PerDocumentStyleData { /// Rule processor. pub stylist: Arc, diff --git a/ports/geckolib/properties.mako.rs b/ports/geckolib/properties.mako.rs index 79b200d0f1b..6493a399ea9 100644 --- a/ports/geckolib/properties.mako.rs +++ b/ports/geckolib/properties.mako.rs @@ -39,7 +39,7 @@ use values::{StyleCoordHelpers, ToGeckoStyleCoord, convert_nscolor_to_rgba}; use values::{convert_rgba_to_nscolor, debug_assert_unit_is_safe_to_copy}; use values::round_border_to_device_pixels; -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct GeckoComputedValues { % for style_struct in data.style_structs: ${style_struct.ident}: Arc<${style_struct.gecko_struct_name}>, diff --git a/ports/geckolib/selector_impl.rs b/ports/geckolib/selector_impl.rs index dda81ecec06..5c5e1731b3b 100644 --- a/ports/geckolib/selector_impl.rs +++ b/ports/geckolib/selector_impl.rs @@ -16,6 +16,7 @@ pub type PrivateStyleData = style::data::PrivateStyleData fmt::Result { + for c in char::decode_utf16(self.as_slice().iter().cloned()) { + try!(write!(w, "{}", c.unwrap_or(char::REPLACEMENT_CHARACTER))) + } + Ok(()) + } +} + impl<'a> From<&'a str> for Atom { #[inline] fn from(string: &str) -> Atom {