mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Replace gfx_traits::ScrollPolicy by webrender_traits::ScrollPolicy.
This commit is contained in:
parent
8e12a11da9
commit
5d2a68033a
4 changed files with 8 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue