Update WR (box shadows, subpixel + alpha text)

This commit is contained in:
Glenn Watson 2017-10-18 07:24:46 +10:00
parent 11413ab013
commit 4c1c20d492
4 changed files with 7 additions and 5 deletions

View file

@ -1226,8 +1226,6 @@ pub struct DefineClipScrollNodeItem {
/// How a box shadow should be clipped.
#[derive(Clone, Copy, Debug, Deserialize, HeapSizeOf, PartialEq, Serialize)]
pub enum BoxShadowClipMode {
/// No special clipping should occur. This is used for (shadowed) text decorations.
None,
/// The area inside `box_bounds` should be clipped out. Corresponds to the normal CSS
/// `box-shadow`.
Outset,

View file

@ -84,7 +84,6 @@ trait ToBoxShadowClipMode {
impl ToBoxShadowClipMode for BoxShadowClipMode {
fn to_clip_mode(&self) -> webrender_api::BoxShadowClipMode {
match *self {
BoxShadowClipMode::None => webrender_api::BoxShadowClipMode::None,
BoxShadowClipMode::Inset => webrender_api::BoxShadowClipMode::Inset,
BoxShadowClipMode::Outset => webrender_api::BoxShadowClipMode::Outset,
}