servo: Merge #19260 - Update WR (opaque image optimizations, property binding optimizations) (from glennw:update-wr-bindings-opaque); r=emilio

Source-Repo: https://github.com/servo/servo
Source-Revision: e61a4d04e9982df94c402916da1cddfd6d0fdfa7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 6d6759456f21c2d066de4c69a13ee21eb346ef96
This commit is contained in:
Glenn Watson 2017-11-16 18:38:48 -06:00
Родитель fca18fa0f5
Коммит 50ab9887d8
2 изменённых файлов: 5 добавлений и 3 удалений

4
servo/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)",

Просмотреть файл

@ -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 {},