Replace gfx_traits::ScrollPolicy by webrender_traits::ScrollPolicy.

This commit is contained in:
Ms2ger 2017-01-04 12:22:20 +01:00
parent 8e12a11da9
commit 5d2a68033a
4 changed files with 8 additions and 22 deletions

View file

@ -44,15 +44,6 @@ const SPECIAL_STACKING_CONTEXT_ID_MASK: usize = 0xffff;
#[derive(Copy, Clone, RustcEncodable, Debug)]
pub enum DevicePixel {}
/// The scrolling policy of a layer.
#[derive(Clone, PartialEq, Eq, Copy, Deserialize, Serialize, Debug, HeapSizeOf)]
pub enum ScrollPolicy {
/// These layers scroll when the parent receives a scrolling message.
Scrollable,
/// These layers do not scroll when the parent receives a scrolling message.
FixedPosition,
}
/// A newtype struct for denoting the age of messages; prevents race conditions.
#[derive(PartialEq, Eq, Debug, Copy, Clone, PartialOrd, Ord, Deserialize, Serialize)]
pub struct Epoch(pub u32);