mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove BoxShadowClipMode from gfx
This commit is contained in:
parent
246b54507a
commit
a74688b992
3 changed files with 7 additions and 30 deletions
|
@ -33,8 +33,8 @@ use style::values::computed::Filter;
|
|||
use style_traits::cursor::Cursor;
|
||||
use text::TextRun;
|
||||
use text::glyph::ByteIndex;
|
||||
use webrender_api::{self, ClipId, ColorF, GradientStop, LocalClip, MixBlendMode, ScrollPolicy};
|
||||
use webrender_api::{ScrollSensitivity, StickyOffsetBounds, TransformStyle};
|
||||
use webrender_api::{self, BoxShadowClipMode, ClipId, ColorF, GradientStop, LocalClip, MixBlendMode};
|
||||
use webrender_api::{ScrollPolicy, ScrollSensitivity, StickyOffsetBounds, TransformStyle};
|
||||
|
||||
pub use style::dom::OpaqueNode;
|
||||
|
||||
|
@ -944,6 +944,7 @@ pub struct BoxShadowDisplayItem {
|
|||
pub border_radius: BorderRadii<Au>,
|
||||
|
||||
/// How we should clip the result.
|
||||
#[ignore_malloc_size_of = "enum type in webrender"]
|
||||
pub clip_mode: BoxShadowClipMode,
|
||||
}
|
||||
|
||||
|
@ -998,17 +999,6 @@ pub struct DefineClipScrollNodeItem {
|
|||
pub node_index: ClipScrollNodeIndex,
|
||||
}
|
||||
|
||||
/// How a box shadow should be clipped.
|
||||
#[derive(Clone, Copy, Debug, Deserialize, MallocSizeOf, PartialEq, Serialize)]
|
||||
pub enum BoxShadowClipMode {
|
||||
/// The area inside `box_bounds` should be clipped out. Corresponds to the normal CSS
|
||||
/// `box-shadow`.
|
||||
Outset,
|
||||
/// The area outside `box_bounds` should be clipped out. Corresponds to the `inset` flag on CSS
|
||||
/// `box-shadow`.
|
||||
Inset,
|
||||
}
|
||||
|
||||
impl DisplayItem {
|
||||
pub fn base(&self) -> &BaseDisplayItem {
|
||||
match *self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue