Skip to content

Commit

Permalink
Auto merge of #18926 - glennw:update-wr-bs, r=<try>
Browse files Browse the repository at this point in the history
Update WR (box shadows, subpixel + alpha text)

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18926)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Oct 18, 2017
2 parents ca08271 + 4c1c20d commit c685707
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions components/gfx/display_list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,8 +1153,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,
Expand Down
1 change: 0 additions & 1 deletion components/layout/webrender_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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,
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[css3-box-shadow.htm]
type: reftest
expected:
if os == "linux": FAIL
bug: https://github.com/servo/webrender/issues/1776

0 comments on commit c685707

Please sign in to comment.