From c7091f7b81b6c2d41de4de0d78a30da345c4938c Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 8 Jul 2020 10:56:21 -0400 Subject: [PATCH 1/6] Update image crate. --- Cargo.lock | 51 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b2062cd058e..bf9f3fb0107 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1221,6 +1221,16 @@ dependencies = [ "byteorder", ] +[[package]] +name = "deflate" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73770f8e1fe7d64df17ca66ad28994a0a623ea497fa69486e14984e715c5d174" +dependencies = [ + "adler32", + "byteorder", +] + [[package]] name = "deny_public_fields" version = "0.0.1" @@ -2156,7 +2166,7 @@ dependencies = [ "lazy_static", "libc", "muldiv", - "num-rational", + "num-rational 0.2.4", "paste", ] @@ -2698,18 +2708,18 @@ dependencies = [ [[package]] name = "image" -version = "0.23.0" +version = "0.23.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef4e336ec01a678e7ab692914c641181528e8656451e6252f8f9e33728882eaf" +checksum = "b5b0553fec6407d63fe2975b794dfb099f3f790bdc958823851af37b26404ab4" dependencies = [ "bytemuck", "byteorder", "gif", "jpeg-decoder", "num-iter", - "num-rational", + "num-rational 0.3.0", "num-traits", - "png", + "png 0.16.6", "scoped_threadpool", "tiff", ] @@ -3913,6 +3923,17 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-rational" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5b4d7360f362cfb50dde8143501e6940b22f644be75a4cc90b2d81968908138" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + [[package]] name = "num-traits" version = "0.2.12" @@ -4322,10 +4343,22 @@ checksum = "ef859a23054bbfee7811284275ae522f0434a3c8e7f4b74bd4a35ae7e1c4a283" dependencies = [ "bitflags", "crc32fast", - "deflate", + "deflate 0.7.20", "inflate", ] +[[package]] +name = "png" +version = "0.16.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c150bf7479fafe3dd8740dbe48cc33b2a3efb7b0fe3483aced8bbc39f6d0238d" +dependencies = [ + "bitflags", + "crc32fast", + "deflate 0.8.6", + "miniz_oxide", +] + [[package]] name = "podio" version = "0.1.7" @@ -4540,7 +4573,7 @@ dependencies = [ "font-kit", "lyon_geom 0.15.0", "pathfinder_geometry", - "png", + "png 0.15.3", "sw-composite", "typed-arena", ] @@ -6008,9 +6041,9 @@ dependencies = [ [[package]] name = "tiff" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "002351e428db1eb1d8656d4ca61947c3519ac3191e1c804d4600cd32093b77ad" +checksum = "3f3b8a87c4da944c3f27e5943289171ac71a6150a79ff6bacfff06d159dfff2f" dependencies = [ "byteorder", "lzw", From a6ca582a556d19a82b1e9f71015b7e62277d32fa Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 8 Jul 2020 11:04:19 -0400 Subject: [PATCH 2/6] Update raqote, font-kit, fontconfig. --- Cargo.lock | 93 ++++++++++++++++-------------------- components/canvas/Cargo.toml | 4 +- components/gfx/Cargo.toml | 2 +- servo-tidy.toml | 2 + 4 files changed, 46 insertions(+), 55 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bf9f3fb0107..bf34ed4bf45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -718,9 +718,9 @@ dependencies = [ [[package]] name = "cmake" -version = "0.1.41" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c84c596dcf125d6781f58e3f4254677ec2a6d8aa56e8501ac277100990b3229" +checksum = "0e56268c17a6248366d66d4a47a3381369d068cce8409bb1716ed77ea32163bb" dependencies = [ "cc", ] @@ -1211,16 +1211,6 @@ dependencies = [ "ws", ] -[[package]] -name = "deflate" -version = "0.7.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707b6a7b384888a70c8d2e8650b3e60170dfc6a67bb4aa67b6dfca57af4bedb4" -dependencies = [ - "adler32", - "byteorder", -] - [[package]] name = "deflate" version = "0.8.6" @@ -1580,9 +1570,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "font-kit" -version = "0.7.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ab2cdc792b545c49acb23aafa1cdc9381ea96140741f10bac596fd1bd1aa4f" +checksum = "22ed9b6d89600e22d9bfcfdd8c27e981540664a1a85a3f3971793c75502f49d9" dependencies = [ "bitflags", "byteorder", @@ -1592,7 +1582,7 @@ dependencies = [ "dirs", "dwrote", "float-ord", - "freetype", + "freetype 0.5.1", "lazy_static", "libc", "log", @@ -1638,6 +1628,27 @@ dependencies = [ "servo-freetype-sys", ] +[[package]] +name = "freetype" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73222ab32d9ad65fe0e1c3258da8d614fd47cf19fce92b09eb520060c5c5ad5" +dependencies = [ + "freetype-sys", + "libc", +] + +[[package]] +name = "freetype-sys" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d48ac0ce366dd47a115ec8e598d7c51b4a974fc52ded5e53a56b31f55f34f3ea" +dependencies = [ + "cmake", + "libc", + "pkg-config", +] + [[package]] name = "fs_extra" version = "1.1.0" @@ -1853,7 +1864,7 @@ dependencies = [ "euclid", "fnv", "fontsan", - "freetype", + "freetype 0.4.1", "gfx_traits", "harfbuzz-sys", "ipc-channel", @@ -2476,7 +2487,7 @@ dependencies = [ "core-graphics 0.17.3", "core-text 13.3.2", "foreign-types", - "freetype", + "freetype 0.4.1", "pkg-config", ] @@ -2719,7 +2730,7 @@ dependencies = [ "num-iter", "num-rational 0.3.0", "num-traits", - "png 0.16.6", + "png", "scoped_threadpool", "tiff", ] @@ -2745,15 +2756,6 @@ dependencies = [ "hashbrown", ] -[[package]] -name = "inflate" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cdb29978cc5797bd8dcc8e5bf7de604891df2a8dc576973d71a281e916db2ff" -dependencies = [ - "adler32", -] - [[package]] name = "input_buffer" version = "0.3.1" @@ -4335,18 +4337,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "png" -version = "0.15.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef859a23054bbfee7811284275ae522f0434a3c8e7f4b74bd4a35ae7e1c4a283" -dependencies = [ - "bitflags", - "crc32fast", - "deflate 0.7.20", - "inflate", -] - [[package]] name = "png" version = "0.16.6" @@ -4355,7 +4345,7 @@ checksum = "c150bf7479fafe3dd8740dbe48cc33b2a3efb7b0fe3483aced8bbc39f6d0238d" dependencies = [ "bitflags", "crc32fast", - "deflate 0.8.6", + "deflate", "miniz_oxide", ] @@ -4565,15 +4555,14 @@ checksum = "a871f1e45a3a3f0c73fb60343c811238bb5143a81642e27c2ac7aac27ff01a63" [[package]] name = "raqote" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501c19caa439857ed7bea975fa4c3c10ee9a24e33c2640030c3ac14b58f39f77" +version = "0.8.1-alpha.0" +source = "git+https://github.com/jrmuizel/raqote#5444a1040bd4fd72e860ff75244fbe8fa7814470" dependencies = [ "euclid", "font-kit", "lyon_geom 0.15.0", "pathfinder_geometry", - "png 0.15.3", + "png", "sw-composite", "typed-arena", ] @@ -5129,9 +5118,9 @@ dependencies = [ [[package]] name = "servo-fontconfig" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a088f8d775a5c5314aae09bd77340bc9c67d72b9a45258be34c83548b4814cd9" +checksum = "0b47fef69c52fb55838c756949c60595f0b855daa4e82fc52ad99ff3e03e2c70" dependencies = [ "libc", "servo-fontconfig-sys", @@ -5139,20 +5128,20 @@ dependencies = [ [[package]] name = "servo-fontconfig-sys" -version = "4.0.9" +version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b3e166450f523f4db06c14f02a2d39e76d49b5d8cbd224338d93e3595c156c" +checksum = "1c5e8d42c2957f6f433d90ab61277ed0226b3f49fffb19aa5493213c42e5d6df" dependencies = [ "expat-sys", + "freetype-sys", "pkg-config", - "servo-freetype-sys", ] [[package]] name = "servo-freetype-sys" -version = "4.0.5" +version = "4.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c4ccb6d0d32d277d3ef7dea86203d8210945eb7a45fba89dd445b3595dd0dfc" +checksum = "9232032c2e85118c0282c6562c84cab12316e655491ba0a5d1905b2320060d1b" dependencies = [ "cmake", "pkg-config", @@ -6833,7 +6822,7 @@ dependencies = [ "cstr", "dwrote", "euclid", - "freetype", + "freetype 0.4.1", "fxhash", "gleam 0.11.0", "glslopt", diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml index 2281ea30242..fa93fbcbae4 100644 --- a/components/canvas/Cargo.toml +++ b/components/canvas/Cargo.toml @@ -22,7 +22,7 @@ canvas_traits = { path = "../canvas_traits" } crossbeam-channel = "0.4" cssparser = "0.27" euclid = "0.20" -font-kit = "0.7" +font-kit = "0.9" fnv = "1.0" gfx = { path = "../gfx" } gleam = "0.11" @@ -32,7 +32,7 @@ log = "0.4" lyon_geom = "0.14" num-traits = "0.2" pixels = { path = "../pixels" } -raqote = { version = "0.8", features = ["text"] } +raqote = { git = "https://github.com/jrmuizel/raqote", features = ["text"] } servo_arc = { path = "../servo_arc" } servo_config = { path = "../config" } sparkle = "0.1.25" diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index 0ffa87835e1..d8ba44dc612 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -52,7 +52,7 @@ freetype = "0.4" servo_allocator = { path = "../allocator" } [target.'cfg(target_os = "linux")'.dependencies] -servo-fontconfig = "0.4" +servo-fontconfig = "0.5" [target.'cfg(target_os = "android")'.dependencies] xml-rs = "0.8" diff --git a/servo-tidy.toml b/servo-tidy.toml index 323ce582840..f427c89df7b 100644 --- a/servo-tidy.toml +++ b/servo-tidy.toml @@ -32,10 +32,12 @@ packages = [ "arrayvec", "base64", "cocoa", + "freetype", "gleam", "libloading", "metal", "miniz_oxide", + "num-rational", "parking_lot", "parking_lot_core", "wayland-sys", From 327fed6084a99cfeede4752dc7b71416b5d83032 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 8 Jul 2020 11:08:42 -0400 Subject: [PATCH 3/6] Update harfbuzz, freetype, unicode-script. --- Cargo.lock | 37 +++++++++---------------------- components/gfx/Cargo.toml | 6 ++--- components/layout/Cargo.toml | 2 +- components/layout_2020/Cargo.toml | 2 +- servo-tidy.toml | 1 - 5 files changed, 16 insertions(+), 32 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bf34ed4bf45..0b97773a84b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -999,18 +999,6 @@ dependencies = [ "libc", ] -[[package]] -name = "core-text" -version = "13.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db84654ad95211c082cf9795f6f83dc17d0ae6c985ac1b906369dc7384ed346d" -dependencies = [ - "core-foundation 0.6.4", - "core-graphics 0.17.3", - "foreign-types", - "libc", -] - [[package]] name = "core-text" version = "15.0.0" @@ -1578,7 +1566,7 @@ dependencies = [ "byteorder", "core-foundation 0.7.0", "core-graphics 0.19.0", - "core-text 15.0.0", + "core-text", "dirs", "dwrote", "float-ord", @@ -1859,12 +1847,12 @@ dependencies = [ "byteorder", "core-foundation 0.7.0", "core-graphics 0.19.0", - "core-text 15.0.0", + "core-text", "dwrote", "euclid", "fnv", "fontsan", - "freetype 0.4.1", + "freetype 0.5.1", "gfx_traits", "harfbuzz-sys", "ipc-channel", @@ -2479,15 +2467,15 @@ checksum = "63d68db75012a85555434ee079e7e6337931f87a087ab2988becbadf64673a7f" [[package]] name = "harfbuzz-sys" -version = "0.3.4" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212d74cab8498b2d15700b694fb38f77562869d05e1f8b602dd05221a1ca2d63" +checksum = "8c50680ef38c3c83947499b5df4f340db5b436807dfa2b21330d86254e2e4dd6" dependencies = [ "cc", - "core-graphics 0.17.3", - "core-text 13.3.2", + "core-graphics 0.19.0", + "core-text", "foreign-types", - "freetype 0.4.1", + "freetype 0.5.1", "pkg-config", ] @@ -6454,12 +6442,9 @@ dependencies = [ [[package]] name = "unicode-script" -version = "0.3.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09f03ad95feb4fde244d79985bfd79eb34ff2702fedb441d2ba3f4ff813efd19" -dependencies = [ - "harfbuzz-sys", -] +checksum = "79bf4d5fc96546fdb73f9827097810bbda93b11a6770ff3a54e1f445d4135787" [[package]] name = "unicode-segmentation" @@ -6818,7 +6803,7 @@ dependencies = [ "cfg-if", "core-foundation 0.7.0", "core-graphics 0.19.0", - "core-text 15.0.0", + "core-text", "cstr", "dwrote", "euclid", diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index d8ba44dc612..e79575d5d07 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -20,7 +20,7 @@ euclid = "0.20" fnv = "1.0" fontsan = { git = "https://github.com/servo/fontsan" } gfx_traits = { path = "../gfx_traits" } -harfbuzz-sys = "0.3" +harfbuzz-sys = "0.4" ipc-channel = "0.14" lazy_static = "1" libc = "0.2" @@ -37,7 +37,7 @@ style = { path = "../style", features = ["servo"] } time = "0.1.12" ucd = "0.1.1" unicode-bidi = { version = "0.3", features = ["with_serde"] } -unicode-script = { version = "0.3", features = ["harfbuzz"] } +unicode-script = "0.5" webrender_api = { git = "https://github.com/servo/webrender" } xi-unicode = "0.1.0" @@ -48,7 +48,7 @@ core-graphics = "0.19" core-text = "15.0" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] -freetype = "0.4" +freetype = "0.5" servo_allocator = { path = "../allocator" } [target.'cfg(target_os = "linux")'.dependencies] diff --git a/components/layout/Cargo.toml b/components/layout/Cargo.toml index 90aaaa58011..a6bc544f9b3 100644 --- a/components/layout/Cargo.toml +++ b/components/layout/Cargo.toml @@ -48,7 +48,7 @@ smallvec = { version = "0.6", features = ["std", "union"] } style = { path = "../style", features = ["servo", "servo-layout-2013"] } style_traits = { path = "../style_traits" } unicode-bidi = { version = "0.3", features = ["with_serde"] } -unicode-script = { version = "0.3", features = ["harfbuzz"] } +unicode-script = "0.5" webrender_api = { git = "https://github.com/servo/webrender" } xi-unicode = "0.1.0" diff --git a/components/layout_2020/Cargo.toml b/components/layout_2020/Cargo.toml index 6ca3d709627..75a948fa56d 100644 --- a/components/layout_2020/Cargo.toml +++ b/components/layout_2020/Cargo.toml @@ -42,7 +42,7 @@ servo_arc = { path = "../servo_arc" } servo_url = { path = "../url" } style = { path = "../style", features = ["servo", "servo-layout-2020"] } style_traits = { path = "../style_traits" } -unicode-script = { version = "0.3", features = ["harfbuzz"] } +unicode-script = "0.5" webrender_api = { git = "https://github.com/servo/webrender" } [dev-dependencies] diff --git a/servo-tidy.toml b/servo-tidy.toml index f427c89df7b..f26234f551d 100644 --- a/servo-tidy.toml +++ b/servo-tidy.toml @@ -64,7 +64,6 @@ packages = [ "core-foundation", "core-foundation-sys", "core-graphics", - "core-text", "lyon_geom", ] # Files that are ignored for all tidy and lint checks. From 5c0d7998bd28ceb383f553cd7af5a60f472a47ba Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Tue, 28 Jul 2020 15:38:52 -0400 Subject: [PATCH 4/6] Update font-kit and freetype and unicode-script. --- Cargo.lock | 69 ++++++---- Cargo.toml | 3 + components/canvas/Cargo.toml | 2 +- components/gfx/Cargo.toml | 4 +- components/gfx/text/shaping/harfbuzz.rs | 167 +++++++++++++++++++++++- components/layout/text.rs | 4 +- 6 files changed, 221 insertions(+), 28 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0b97773a84b..2b5c1889214 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -987,6 +987,19 @@ dependencies = [ "libc", ] +[[package]] +name = "core-graphics" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6082396a349fa49674ba1bda4077332a18bf150e8fa75745ece07085e29a113" +dependencies = [ + "bitflags", + "core-foundation 0.9.0", + "core-graphics-types", + "foreign-types", + "libc", +] + [[package]] name = "core-graphics-types" version = "0.1.0" @@ -1011,6 +1024,18 @@ dependencies = [ "libc", ] +[[package]] +name = "core-text" +version = "19.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04dfae50af11e72657fe7174cddb1ecddc5398037f7f6f39533ad69207c9a4e2" +dependencies = [ + "core-foundation 0.9.0", + "core-graphics 0.22.0", + "foreign-types", + "libc", +] + [[package]] name = "crc32fast" version = "1.2.0" @@ -1558,19 +1583,19 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "font-kit" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ed9b6d89600e22d9bfcfdd8c27e981540664a1a85a3f3971793c75502f49d9" +checksum = "1f9042cb45150fb2b2a012fc03d0f1d2071f18e90397b9d2a5ec8ade8464bf20" dependencies = [ "bitflags", "byteorder", - "core-foundation 0.7.0", - "core-graphics 0.19.0", - "core-text", + "core-foundation 0.9.0", + "core-graphics 0.22.0", + "core-text 19.0.0", "dirs", "dwrote", "float-ord", - "freetype 0.5.1", + "freetype 0.7.0", "lazy_static", "libc", "log", @@ -1618,9 +1643,9 @@ dependencies = [ [[package]] name = "freetype" -version = "0.5.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b73222ab32d9ad65fe0e1c3258da8d614fd47cf19fce92b09eb520060c5c5ad5" +checksum = "bee38378a9e3db1cc693b4f88d166ae375338a0ff75cb8263e1c601d51f35dc6" dependencies = [ "freetype-sys", "libc", @@ -1628,9 +1653,9 @@ dependencies = [ [[package]] name = "freetype-sys" -version = "0.11.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d48ac0ce366dd47a115ec8e598d7c51b4a974fc52ded5e53a56b31f55f34f3ea" +checksum = "a37d4011c0cc628dfa766fcc195454f4b068d7afdc2adfd28861191d866e731a" dependencies = [ "cmake", "libc", @@ -1847,12 +1872,12 @@ dependencies = [ "byteorder", "core-foundation 0.7.0", "core-graphics 0.19.0", - "core-text", + "core-text 15.0.0", "dwrote", "euclid", "fnv", "fontsan", - "freetype 0.5.1", + "freetype 0.7.0", "gfx_traits", "harfbuzz-sys", "ipc-channel", @@ -2467,15 +2492,15 @@ checksum = "63d68db75012a85555434ee079e7e6337931f87a087ab2988becbadf64673a7f" [[package]] name = "harfbuzz-sys" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c50680ef38c3c83947499b5df4f340db5b436807dfa2b21330d86254e2e4dd6" +checksum = "bf8c27ca13930dc4ffe474880040fe9e0f03c2121600dc9c95423624cab3e467" dependencies = [ "cc", - "core-graphics 0.19.0", - "core-text", + "core-graphics 0.22.0", + "core-text 19.0.0", "foreign-types", - "freetype 0.5.1", + "freetype 0.7.0", "pkg-config", ] @@ -4334,7 +4359,7 @@ dependencies = [ "bitflags", "crc32fast", "deflate", - "miniz_oxide", + "miniz_oxide 0.3.7", ] [[package]] @@ -4544,7 +4569,7 @@ checksum = "a871f1e45a3a3f0c73fb60343c811238bb5143a81642e27c2ac7aac27ff01a63" [[package]] name = "raqote" version = "0.8.1-alpha.0" -source = "git+https://github.com/jrmuizel/raqote#5444a1040bd4fd72e860ff75244fbe8fa7814470" +source = "git+https://github.com/jdm/raqote?branch=fkup#ff5d2d1aa7813dbcacb0d028cf7d17c82a35d9d4" dependencies = [ "euclid", "font-kit", @@ -5116,9 +5141,9 @@ dependencies = [ [[package]] name = "servo-fontconfig-sys" -version = "5.0.1" +version = "5.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c5e8d42c2957f6f433d90ab61277ed0226b3f49fffb19aa5493213c42e5d6df" +checksum = "e36b879db9892dfa40f95da1c38a835d41634b825fbd8c4c418093d53c24b388" dependencies = [ "expat-sys", "freetype-sys", @@ -6803,7 +6828,7 @@ dependencies = [ "cfg-if", "core-foundation 0.7.0", "core-graphics 0.19.0", - "core-text", + "core-text 15.0.0", "cstr", "dwrote", "euclid", diff --git a/Cargo.toml b/Cargo.toml index 4dbe63e439c..58346500b9a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,9 @@ mio = { git = "https://github.com/servo/mio.git", branch = "servo-mio-0.6.22" } # https://github.com/rust-lang/backtrace-rs/pull/363/ backtrace = { git = "https://github.com/servo/backtrace-rs", branch = "uwp-fix" } +[patch."https://github.com/jrmuizel/raqote"] +raqote = { git = "https://github.com/jdm/raqote", branch = "fkup" } + # https://github.com/servo/servo/issues/27039#issuecomment-654400150 [patch."https://github.com/servo/webrender"] webrender = { git = "https://github.com/jdm/webrender", branch = "crash-backtrace" } diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml index fa93fbcbae4..71f870a634e 100644 --- a/components/canvas/Cargo.toml +++ b/components/canvas/Cargo.toml @@ -22,7 +22,7 @@ canvas_traits = { path = "../canvas_traits" } crossbeam-channel = "0.4" cssparser = "0.27" euclid = "0.20" -font-kit = "0.9" +font-kit = "0.10" fnv = "1.0" gfx = { path = "../gfx" } gleam = "0.11" diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index e79575d5d07..947918e6da8 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -20,7 +20,7 @@ euclid = "0.20" fnv = "1.0" fontsan = { git = "https://github.com/servo/fontsan" } gfx_traits = { path = "../gfx_traits" } -harfbuzz-sys = "0.4" +harfbuzz-sys = "0.5" ipc-channel = "0.14" lazy_static = "1" libc = "0.2" @@ -48,7 +48,7 @@ core-graphics = "0.19" core-text = "15.0" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] -freetype = "0.5" +freetype = "0.7" servo_allocator = { path = "../allocator" } [target.'cfg(target_os = "linux")'.dependencies] diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 47cf337011b..ef49bb32e68 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -191,6 +191,171 @@ impl Shaper { } } +pub fn unicode_to_hb_script(script: unicode_script::Script) -> harfbuzz_sys::hb_script_t { + use harfbuzz_sys::*; + use unicode_script::Script::*; + match script { + Adlam => HB_SCRIPT_ADLAM, + Ahom => HB_SCRIPT_AHOM, + Anatolian_Hieroglyphs => HB_SCRIPT_ANATOLIAN_HIEROGLYPHS, + Arabic => HB_SCRIPT_ARABIC, + Armenian => HB_SCRIPT_ARMENIAN, + Avestan => HB_SCRIPT_AVESTAN, + Balinese => HB_SCRIPT_BALINESE, + Bamum => HB_SCRIPT_BAMUM, + Bassa_Vah => HB_SCRIPT_BASSA_VAH, + Batak => HB_SCRIPT_BATAK, + Bengali => HB_SCRIPT_BENGALI, + Bhaiksuki => HB_SCRIPT_BHAIKSUKI, + Bopomofo => HB_SCRIPT_BOPOMOFO, + Brahmi => HB_SCRIPT_BRAHMI, + Braille => HB_SCRIPT_BRAILLE, + Buginese => HB_SCRIPT_BUGINESE, + Buhid => HB_SCRIPT_BUHID, + Canadian_Aboriginal => HB_SCRIPT_CANADIAN_SYLLABICS, + Carian => HB_SCRIPT_CARIAN, + Caucasian_Albanian => HB_SCRIPT_CAUCASIAN_ALBANIAN, + Chakma => HB_SCRIPT_CHAKMA, + Cham => HB_SCRIPT_CHAM, + Cherokee => HB_SCRIPT_CHEROKEE, + Chorasmian => HB_SCRIPT_CHORASMIAN, + Common => HB_SCRIPT_COMMON, + Coptic => HB_SCRIPT_COPTIC, + Cuneiform => HB_SCRIPT_CUNEIFORM, + Cypriot => HB_SCRIPT_CYPRIOT, + Cyrillic => HB_SCRIPT_CYRILLIC, + Deseret => HB_SCRIPT_DESERET, + Devanagari => HB_SCRIPT_DEVANAGARI, + Dives_Akuru => HB_SCRIPT_DIVES_AKURU, + Dogra => HB_SCRIPT_DOGRA, + Duployan => HB_SCRIPT_DUPLOYAN, + Egyptian_Hieroglyphs => HB_SCRIPT_EGYPTIAN_HIEROGLYPHS, + Elbasan => HB_SCRIPT_ELBASAN, + Elymaic => HB_SCRIPT_ELYMAIC, + Ethiopic => HB_SCRIPT_ETHIOPIC, + Georgian => HB_SCRIPT_GEORGIAN, + Glagolitic => HB_SCRIPT_GLAGOLITIC, + Gothic => HB_SCRIPT_GOTHIC, + Grantha => HB_SCRIPT_GRANTHA, + Greek => HB_SCRIPT_GREEK, + Gujarati => HB_SCRIPT_GUJARATI, + Gunjala_Gondi => HB_SCRIPT_GUNJALA_GONDI, + Gurmukhi => HB_SCRIPT_GURMUKHI, + Han => HB_SCRIPT_HAN, + Hangul => HB_SCRIPT_HANGUL, + Hanifi_Rohingya => HB_SCRIPT_HANIFI_ROHINGYA, + Hanunoo => HB_SCRIPT_HANUNOO, + Hatran => HB_SCRIPT_HATRAN, + Hebrew => HB_SCRIPT_HEBREW, + Hiragana => HB_SCRIPT_HIRAGANA, + Imperial_Aramaic => HB_SCRIPT_IMPERIAL_ARAMAIC, + Inherited => HB_SCRIPT_INHERITED, + Inscriptional_Pahlavi => HB_SCRIPT_INSCRIPTIONAL_PAHLAVI, + Inscriptional_Parthian => HB_SCRIPT_INSCRIPTIONAL_PARTHIAN, + Javanese => HB_SCRIPT_JAVANESE, + Kaithi => HB_SCRIPT_KAITHI, + Kannada => HB_SCRIPT_KANNADA, + Katakana => HB_SCRIPT_KATAKANA, + Kayah_Li => HB_SCRIPT_KAYAH_LI, + Kharoshthi => HB_SCRIPT_KHAROSHTHI, + Khitan_Small_Script => HB_SCRIPT_KHITAN_SMALL_SCRIPT, + Khmer => HB_SCRIPT_KHMER, + Khojki => HB_SCRIPT_KHOJKI, + Khudawadi => HB_SCRIPT_KHUDAWADI, + Lao => HB_SCRIPT_LAO, + Latin => HB_SCRIPT_LATIN, + Lepcha => HB_SCRIPT_LEPCHA, + Limbu => HB_SCRIPT_LIMBU, + Linear_A => HB_SCRIPT_LINEAR_A, + Linear_B => HB_SCRIPT_LINEAR_B, + Lisu => HB_SCRIPT_LISU, + Lycian => HB_SCRIPT_LYCIAN, + Lydian => HB_SCRIPT_LYDIAN, + Mahajani => HB_SCRIPT_MAHAJANI, + Makasar => HB_SCRIPT_MAKASAR, + Malayalam => HB_SCRIPT_MALAYALAM, + Mandaic => HB_SCRIPT_MANDAIC, + Manichaean => HB_SCRIPT_MANICHAEAN, + Marchen => HB_SCRIPT_MARCHEN, + Masaram_Gondi => HB_SCRIPT_MASARAM_GONDI, + Medefaidrin => HB_SCRIPT_MEDEFAIDRIN, + Meetei_Mayek => HB_SCRIPT_MEETEI_MAYEK, + Mende_Kikakui => HB_SCRIPT_MENDE_KIKAKUI, + Meroitic_Cursive => HB_SCRIPT_MEROITIC_CURSIVE, + Meroitic_Hieroglyphs => HB_SCRIPT_MEROITIC_HIEROGLYPHS, + Miao => HB_SCRIPT_MIAO, + Modi => HB_SCRIPT_MODI, + Mongolian => HB_SCRIPT_MONGOLIAN, + Mro => HB_SCRIPT_MRO, + Multani => HB_SCRIPT_MULTANI, + Myanmar => HB_SCRIPT_MYANMAR, + Nabataean => HB_SCRIPT_NABATAEAN, + Nandinagari => HB_SCRIPT_NANDINAGARI, + New_Tai_Lue => HB_SCRIPT_NEW_TAI_LUE, + Newa => HB_SCRIPT_NEWA, + Nko => HB_SCRIPT_NKO, + Nushu => HB_SCRIPT_NUSHU, + Nyiakeng_Puachue_Hmong => HB_SCRIPT_NYIAKENG_PUACHUE_HMONG, + Ogham => HB_SCRIPT_OGHAM, + Ol_Chiki => HB_SCRIPT_OL_CHIKI, + Old_Hungarian => HB_SCRIPT_OLD_HUNGARIAN, + Old_Italic => HB_SCRIPT_OLD_ITALIC, + Old_North_Arabian => HB_SCRIPT_OLD_NORTH_ARABIAN, + Old_Permic => HB_SCRIPT_OLD_PERMIC, + Old_Persian => HB_SCRIPT_OLD_PERSIAN, + Old_Sogdian => HB_SCRIPT_OLD_SOGDIAN, + Old_South_Arabian => HB_SCRIPT_OLD_SOUTH_ARABIAN, + Old_Turkic => HB_SCRIPT_OLD_TURKIC, + Oriya => HB_SCRIPT_ORIYA, + Osage => HB_SCRIPT_OSAGE, + Osmanya => HB_SCRIPT_OSMANYA, + Pahawh_Hmong => HB_SCRIPT_PAHAWH_HMONG, + Palmyrene => HB_SCRIPT_PALMYRENE, + Pau_Cin_Hau => HB_SCRIPT_PAU_CIN_HAU, + Phags_Pa => HB_SCRIPT_PHAGS_PA, + Phoenician => HB_SCRIPT_PHOENICIAN, + Psalter_Pahlavi => HB_SCRIPT_PSALTER_PAHLAVI, + Rejang => HB_SCRIPT_REJANG, + Runic => HB_SCRIPT_RUNIC, + Samaritan => HB_SCRIPT_SAMARITAN, + Saurashtra => HB_SCRIPT_SAURASHTRA, + Sharada => HB_SCRIPT_SHARADA, + Shavian => HB_SCRIPT_SHAVIAN, + Siddham => HB_SCRIPT_SIDDHAM, + SignWriting => HB_SCRIPT_SIGNWRITING, + Sinhala => HB_SCRIPT_SINHALA, + Sogdian => HB_SCRIPT_SOGDIAN, + Sora_Sompeng => HB_SCRIPT_SORA_SOMPENG, + Soyombo => HB_SCRIPT_SOYOMBO, + Sundanese => HB_SCRIPT_SUNDANESE, + Syloti_Nagri => HB_SCRIPT_SYLOTI_NAGRI, + Syriac => HB_SCRIPT_SYRIAC, + Tagalog => HB_SCRIPT_TAGALOG, + Tagbanwa => HB_SCRIPT_TAGBANWA, + Tai_Le => HB_SCRIPT_TAI_LE, + Tai_Tham => HB_SCRIPT_TAI_THAM, + Tai_Viet => HB_SCRIPT_TAI_VIET, + Takri => HB_SCRIPT_TAKRI, + Tamil => HB_SCRIPT_TAMIL, + Tangut => HB_SCRIPT_TANGUT, + Telugu => HB_SCRIPT_TELUGU, + Thaana => HB_SCRIPT_THAANA, + Thai => HB_SCRIPT_THAI, + Tibetan => HB_SCRIPT_TIBETAN, + Tifinagh => HB_SCRIPT_TIFINAGH, + Tirhuta => HB_SCRIPT_TIRHUTA, + Ugaritic => HB_SCRIPT_UGARITIC, + Unknown => HB_SCRIPT_UNKNOWN, + Vai => HB_SCRIPT_VAI, + Warang_Citi => HB_SCRIPT_WARANG_CITI, + Wancho => HB_SCRIPT_WANCHO, + Yezidi => HB_SCRIPT_YEZIDI, + Yi => HB_SCRIPT_YI, + Zanabazar_Square => HB_SCRIPT_ZANABAZAR_SQUARE, + _ => HB_SCRIPT_UNKNOWN, + } +} + impl ShaperMethods for Shaper { /// Calculate the layout metrics associated with the given text when painted in a specific /// font. @@ -206,7 +371,7 @@ impl ShaperMethods for Shaper { }, ); - hb_buffer_set_script(hb_buffer, options.script.to_hb_script()); + hb_buffer_set_script(hb_buffer, unicode_to_hb_script(options.script)); hb_buffer_add_utf8( hb_buffer, diff --git a/components/layout/text.rs b/components/layout/text.rs index 1d9fae80297..979443feae4 100644 --- a/components/layout/text.rs +++ b/components/layout/text.rs @@ -29,7 +29,7 @@ use style::properties::ComputedValues; use style::values::generics::text::LineHeight; use style::values::specified::text::{TextTransform, TextTransformCase}; use unicode_bidi as bidi; -use unicode_script::{get_script, Script}; +use unicode_script::Script; use xi_unicode::LineBreakLeafIter; /// Returns the concatenated text of a list of unscanned text fragments. @@ -259,7 +259,7 @@ impl TextRunScanner { // // TODO: Special handling of paired punctuation characters. // http://www.unicode.org/reports/tr24/#Common - let script = get_script(character); + let script = Script::from(character); let compatible_script = is_compatible(script, run_info.script); if compatible_script && !is_specific(run_info.script) && is_specific(script) { From 64df2c2d608e2c885e8e75ca43078a97de6dfd10 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 29 Jul 2020 11:45:56 -0400 Subject: [PATCH 5/6] Fix tidy check when no duplicate versions present. --- python/tidy/servo_tidy/tidy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 163fd99e867..7501e07d802 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -393,7 +393,8 @@ def check_lock(file_name, contents): message += "\n\t\033[93mThe following packages depend on version {} from '{}':\033[0m" \ .format(version, short_source) for pname, package_version, dependency in packages_dependencies: - if version in dependency[1] and (not dependency[2] or short_source in dependency[2]): + if (not dependency[1] or version in dependency[1]) and \ + (not dependency[2] or short_source in dependency[2]): message += "\n\t\t" + pname + " " + package_version yield (1, message) From 2ca1b06e77f28cebeb886f50a6c21c438d4b2f46 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 29 Jul 2020 11:59:59 -0400 Subject: [PATCH 6/6] Update webrender. --- Cargo.lock | 87 ++++++------------- Cargo.toml | 5 -- components/canvas/Cargo.toml | 2 +- components/compositing/Cargo.toml | 2 +- components/gfx/Cargo.toml | 6 +- components/servo/Cargo.toml | 2 +- servo-tidy.toml | 1 - .../background-image-tiled.https.html.ini | 3 +- 8 files changed, 35 insertions(+), 73 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2b5c1889214..fc0066a66ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -538,7 +538,7 @@ dependencies = [ "fnv", "font-kit", "gfx", - "gleam 0.11.0", + "gleam 0.12.1", "half", "ipc-channel", "log", @@ -813,7 +813,7 @@ dependencies = [ "embedder_traits", "euclid", "gfx_traits", - "gleam 0.11.0", + "gleam 0.12.1", "image", "ipc-channel", "keyboard-types", @@ -1012,18 +1012,6 @@ dependencies = [ "libc", ] -[[package]] -name = "core-text" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "131b3fd1f8bd5db9f2b398fa4fdb6008c64afc04d447c306ac2c7e98fba2a61d" -dependencies = [ - "core-foundation 0.7.0", - "core-graphics 0.19.0", - "foreign-types", - "libc", -] - [[package]] name = "core-text" version = "19.0.0" @@ -1591,11 +1579,11 @@ dependencies = [ "byteorder", "core-foundation 0.9.0", "core-graphics 0.22.0", - "core-text 19.0.0", + "core-text", "dirs", "dwrote", "float-ord", - "freetype 0.7.0", + "freetype", "lazy_static", "libc", "log", @@ -1631,16 +1619,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" -[[package]] -name = "freetype" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11926b2b410b469d0e9399eca4cbbe237a9ef02176c485803b29216307e8e028" -dependencies = [ - "libc", - "servo-freetype-sys", -] - [[package]] name = "freetype" version = "0.7.0" @@ -1870,14 +1848,14 @@ dependencies = [ "app_units", "bitflags", "byteorder", - "core-foundation 0.7.0", - "core-graphics 0.19.0", - "core-text 15.0.0", + "core-foundation 0.9.0", + "core-graphics 0.22.0", + "core-text", "dwrote", "euclid", "fnv", "fontsan", - "freetype 0.7.0", + "freetype", "gfx_traits", "harfbuzz-sys", "ipc-channel", @@ -2101,9 +2079,9 @@ dependencies = [ [[package]] name = "gleam" -version = "0.11.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9a13b5bb12ab457c15400b43cbba5971df5c1898b6a9c30cc8c52cb01baa112" +checksum = "3fdef5b9df6d3a261b80a5ac55e13bf93945725df2463c1b0a2e5a527dce0d37" dependencies = [ "gl_generator 0.14.0", ] @@ -2498,9 +2476,9 @@ checksum = "bf8c27ca13930dc4ffe474880040fe9e0f03c2121600dc9c95423624cab3e467" dependencies = [ "cc", "core-graphics 0.22.0", - "core-text 19.0.0", + "core-text", "foreign-types", - "freetype 0.7.0", + "freetype", "pkg-config", ] @@ -3212,7 +3190,7 @@ dependencies = [ "gaol", "gfx", "gfx_traits", - "gleam 0.11.0", + "gleam 0.12.1", "gstreamer", "ipc-channel", "keyboard-types", @@ -4196,7 +4174,7 @@ dependencies = [ [[package]] name = "peek-poke" version = "0.2.0" -source = "git+https://github.com/jdm/webrender?branch=crash-backtrace#34d968adeda2e06b057a13d14a88df5766b38eda" +source = "git+https://github.com/servo/webrender#0bf15cbdbda530f733511f169194439e197e0f40" dependencies = [ "euclid", "peek-poke-derive", @@ -4205,7 +4183,7 @@ dependencies = [ [[package]] name = "peek-poke-derive" version = "0.2.1" -source = "git+https://github.com/jdm/webrender?branch=crash-backtrace#34d968adeda2e06b057a13d14a88df5766b38eda" +source = "git+https://github.com/servo/webrender#0bf15cbdbda530f733511f169194439e197e0f40" dependencies = [ "proc-macro2 1.0.17", "quote 1.0.2", @@ -5150,16 +5128,6 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "servo-freetype-sys" -version = "4.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9232032c2e85118c0282c6562c84cab12316e655491ba0a5d1905b2320060d1b" -dependencies = [ - "cmake", - "pkg-config", -] - [[package]] name = "servo-gst-plugin" version = "0.0.1" @@ -6817,24 +6785,23 @@ dependencies = [ [[package]] name = "webrender" version = "0.61.0" -source = "git+https://github.com/jdm/webrender?branch=crash-backtrace#34d968adeda2e06b057a13d14a88df5766b38eda" +source = "git+https://github.com/servo/webrender#0bf15cbdbda530f733511f169194439e197e0f40" dependencies = [ - "backtrace", "base64 0.10.1", "bincode", "bitflags", "build-parallel", "byteorder", "cfg-if", - "core-foundation 0.7.0", - "core-graphics 0.19.0", - "core-text 15.0.0", + "core-foundation 0.9.0", + "core-graphics 0.22.0", + "core-text", "cstr", "dwrote", "euclid", - "freetype 0.4.1", + "freetype", "fxhash", - "gleam 0.11.0", + "gleam 0.12.1", "glslopt", "image", "lazy_static", @@ -6847,11 +6814,11 @@ dependencies = [ "ron", "serde", "serde_json", - "sig", "smallvec 1.4.1", "svg_fmt", "time", "tracy-rs", + "uuid", "webrender_api", "webrender_build", "wr_malloc_size_of", @@ -6861,13 +6828,13 @@ dependencies = [ [[package]] name = "webrender_api" version = "0.61.0" -source = "git+https://github.com/jdm/webrender?branch=crash-backtrace#34d968adeda2e06b057a13d14a88df5766b38eda" +source = "git+https://github.com/servo/webrender#0bf15cbdbda530f733511f169194439e197e0f40" dependencies = [ "app_units", "bitflags", "byteorder", - "core-foundation 0.7.0", - "core-graphics 0.19.0", + "core-foundation 0.9.0", + "core-graphics 0.22.0", "derive_more", "euclid", "malloc_size_of_derive", @@ -6882,7 +6849,7 @@ dependencies = [ [[package]] name = "webrender_build" version = "0.0.1" -source = "git+https://github.com/jdm/webrender?branch=crash-backtrace#34d968adeda2e06b057a13d14a88df5766b38eda" +source = "git+https://github.com/servo/webrender#0bf15cbdbda530f733511f169194439e197e0f40" dependencies = [ "bitflags", "lazy_static", @@ -7061,7 +7028,7 @@ dependencies = [ [[package]] name = "wr_malloc_size_of" version = "0.0.1" -source = "git+https://github.com/jdm/webrender?branch=crash-backtrace#34d968adeda2e06b057a13d14a88df5766b38eda" +source = "git+https://github.com/servo/webrender#0bf15cbdbda530f733511f169194439e197e0f40" dependencies = [ "app_units", "euclid", diff --git a/Cargo.toml b/Cargo.toml index 58346500b9a..79b5a962adf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,8 +34,3 @@ backtrace = { git = "https://github.com/servo/backtrace-rs", branch = "uwp-fix" [patch."https://github.com/jrmuizel/raqote"] raqote = { git = "https://github.com/jdm/raqote", branch = "fkup" } - -# https://github.com/servo/servo/issues/27039#issuecomment-654400150 -[patch."https://github.com/servo/webrender"] -webrender = { git = "https://github.com/jdm/webrender", branch = "crash-backtrace" } -webrender_api = { git = "https://github.com/jdm/webrender", branch = "crash-backtrace" } diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml index 71f870a634e..e2789742ac7 100644 --- a/components/canvas/Cargo.toml +++ b/components/canvas/Cargo.toml @@ -25,7 +25,7 @@ euclid = "0.20" font-kit = "0.10" fnv = "1.0" gfx = { path = "../gfx" } -gleam = "0.11" +gleam = "0.12" half = "1" ipc-channel = "0.14" log = "0.4" diff --git a/components/compositing/Cargo.toml b/components/compositing/Cargo.toml index 0d4fc881921..048344af294 100644 --- a/components/compositing/Cargo.toml +++ b/components/compositing/Cargo.toml @@ -21,7 +21,7 @@ crossbeam-channel = "0.4" embedder_traits = { path = "../embedder_traits" } euclid = "0.20" gfx_traits = { path = "../gfx_traits" } -gleam = { version = "0.11", optional = true } +gleam = { version = "0.12", optional = true } image = "0.23" ipc-channel = "0.14" keyboard-types = "0.5" diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index 947918e6da8..0d96a7ed783 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -43,9 +43,9 @@ xi-unicode = "0.1.0" [target.'cfg(target_os = "macos")'.dependencies] byteorder = "1.0" -core-foundation = "0.7" -core-graphics = "0.19" -core-text = "15.0" +core-foundation = "0.9" +core-graphics = "0.22" +core-text = "19.0" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] freetype = "0.7" diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml index 3b653fcac84..3960ec97c47 100644 --- a/components/servo/Cargo.toml +++ b/components/servo/Cargo.toml @@ -54,7 +54,7 @@ env_logger = "0.7" euclid = "0.20" gfx = { path = "../gfx" } gfx_traits = { path = "../gfx_traits" } -gleam = "0.11" +gleam = "0.12" gstreamer = { version = "0.15", features = ["v1_16"], optional = true } ipc-channel = "0.14" keyboard-types = "0.5" diff --git a/servo-tidy.toml b/servo-tidy.toml index f26234f551d..435bf8f52f7 100644 --- a/servo-tidy.toml +++ b/servo-tidy.toml @@ -32,7 +32,6 @@ packages = [ "arrayvec", "base64", "cocoa", - "freetype", "gleam", "libloading", "metal", diff --git a/tests/wpt/metadata/css/css-paint-api/background-image-tiled.https.html.ini b/tests/wpt/metadata/css/css-paint-api/background-image-tiled.https.html.ini index 10e6dc50956..d74202a2080 100644 --- a/tests/wpt/metadata/css/css-paint-api/background-image-tiled.https.html.ini +++ b/tests/wpt/metadata/css/css-paint-api/background-image-tiled.https.html.ini @@ -1,3 +1,4 @@ [background-image-tiled.https.html] type: reftest - expected: FAIL + expected: CRASH + bug: https://github.com/servo/servo/issues/27467