mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Move LayerType enum to gfx_trait
The LayerType enum is only used in gfx_traits and layout, so it shouldn't be defined in msg. Move the definition to gfx_traits instead. Fixes #9220
This commit is contained in:
parent
08d1c2a4d3
commit
70a2179cd2
4 changed files with 14 additions and 17 deletions
|
@ -22,7 +22,6 @@ pub use paint_listener::PaintListener;
|
|||
use azure::azure_hl::Color;
|
||||
use euclid::matrix::Matrix4;
|
||||
use euclid::rect::Rect;
|
||||
use msg::compositor_msg::LayerType;
|
||||
use msg::constellation_msg::{Failure, PipelineId};
|
||||
use std::fmt::{self, Debug, Formatter};
|
||||
|
||||
|
@ -38,6 +37,18 @@ pub enum LayerKind {
|
|||
HasTransform,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, Copy, Hash, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub enum LayerType {
|
||||
/// A layer for the fragment body itself.
|
||||
FragmentBody,
|
||||
/// An extra layer created for a DOM fragments with overflow:scroll.
|
||||
OverflowScroll,
|
||||
/// A layer created to contain ::before pseudo-element content.
|
||||
BeforePseudoContent,
|
||||
/// A layer created to contain ::after pseudo-element content.
|
||||
AfterPseudoContent,
|
||||
}
|
||||
|
||||
/// The scrolling policy of a layer.
|
||||
#[derive(Clone, PartialEq, Eq, Copy, Deserialize, Serialize, Debug, HeapSizeOf)]
|
||||
pub enum ScrollPolicy {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue