mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #18926 - glennw:update-wr-bs, r=jdm
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 -->
This commit is contained in:
commit
59d727b020
4 changed files with 7 additions and 5 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -3585,7 +3585,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "webrender"
|
||||
version = "0.52.1"
|
||||
source = "git+https://github.com/servo/webrender#5e30fb4168a22440d91066c246eb16e35eb84e91"
|
||||
source = "git+https://github.com/servo/webrender#6a7b5381b21805f4e3a15cda3bbe8466bc916485"
|
||||
dependencies = [
|
||||
"app_units 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"bincode 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -3613,7 +3613,7 @@ dependencies = [
|
|||
[[package]]
|
||||
name = "webrender_api"
|
||||
version = "0.52.1"
|
||||
source = "git+https://github.com/servo/webrender#5e30fb4168a22440d91066c246eb16e35eb84e91"
|
||||
source = "git+https://github.com/servo/webrender#6a7b5381b21805f4e3a15cda3bbe8466bc916485"
|
||||
dependencies = [
|
||||
"app_units 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"bincode 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -1153,8 +1153,6 @@ pub struct DefineClipScrollNodeItem {
|
|||
/// How a box shadow should be clipped.
|
||||
#[derive(Clone, Copy, Debug, Deserialize, MallocSizeOf, 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,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[css3-box-shadow.htm]
|
||||
type: reftest
|
||||
expected:
|
||||
if os == "linux": FAIL
|
||||
bug: https://github.com/servo/webrender/issues/1776
|
Loading…
Add table
Add a link
Reference in a new issue