aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Watson <github@intuitionlibrary.com>2017-11-17 09:36:24 +1000
committerGlenn Watson <github@intuitionlibrary.com>2017-11-17 10:38:04 +1000
commitcdc163533c23e40a5faef75088fc7a0381f6dc75 (patch)
treef24b55d0f17806201cd5c628aafeae7616d612de
parentfa61bfb83a7d7d9160e0384bb651e9b019c206ce (diff)
downloadservo-cdc163533c23e40a5faef75088fc7a0381f6dc75.tar.gz
servo-cdc163533c23e40a5faef75088fc7a0381f6dc75.zip
Update WR (opaque image optimizations, property binding optimizations)
-rw-r--r--Cargo.lock4
-rw-r--r--components/layout/webrender_helpers.rs4
2 files changed, 5 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 7968076d374..2f42209392b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3634,7 +3634,7 @@ dependencies = [
[[package]]
name = "webrender"
version = "0.53.2"
-source = "git+https://github.com/servo/webrender#6dba5ed000b0c08e507390fff09ef4a134222cf0"
+source = "git+https://github.com/servo/webrender#d57f591c3c53a6cd3e707a8cbfeec7db4bdebb74"
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)",
@@ -3661,7 +3661,7 @@ dependencies = [
[[package]]
name = "webrender_api"
version = "0.53.2"
-source = "git+https://github.com/servo/webrender#6dba5ed000b0c08e507390fff09ef4a134222cf0"
+source = "git+https://github.com/servo/webrender#d57f591c3c53a6cd3e707a8cbfeec7db4bdebb74"
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)",
diff --git a/components/layout/webrender_helpers.rs b/components/layout/webrender_helpers.rs
index 3f7940aada7..1976c141890 100644
--- a/components/layout/webrender_helpers.rs
+++ b/components/layout/webrender_helpers.rs
@@ -200,7 +200,9 @@ impl ToFilterOps for Vec<Filter> {
GenericFilter::Grayscale(amount) => result.push(webrender_api::FilterOp::Grayscale(amount.0)),
GenericFilter::HueRotate(angle) => result.push(webrender_api::FilterOp::HueRotate(angle.radians())),
GenericFilter::Invert(amount) => result.push(webrender_api::FilterOp::Invert(amount.0)),
- GenericFilter::Opacity(amount) => result.push(webrender_api::FilterOp::Opacity(amount.0.into())),
+ GenericFilter::Opacity(amount) => {
+ result.push(webrender_api::FilterOp::Opacity(amount.0.into(), amount.0));
+ }
GenericFilter::Saturate(amount) => result.push(webrender_api::FilterOp::Saturate(amount.0)),
GenericFilter::Sepia(amount) => result.push(webrender_api::FilterOp::Sepia(amount.0)),
GenericFilter::DropShadow(ref shadow) => match *shadow {},