Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove syn 0.15 from our crate graph #25863

Merged
merged 1 commit into from Mar 5, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Remove syn 0.15 from our crate graph (fixes #24421)

This required bumps of:

* gleam
* image
* rust-webvr
* webrender
* webxr
  • Loading branch information
nox committed Mar 5, 2020
commit 9996e48500d11617102aa3d389b054acc7759822

Large diffs are not rendered by default.

@@ -25,7 +25,7 @@ cssparser = "0.27"
embedder_traits = {path = "../embedder_traits"}
euclid = "0.20"
fnv = "1.0"
gleam = "0.6.7"
gleam = "0.9"
half = "1"
ipc-channel = "0.14"
log = "0.4"
@@ -942,8 +942,7 @@ impl<'a> CanvasData<'a> {
stride: None,
format: webrender_api::ImageFormat::BGRA8,
offset: 0,
is_opaque: false,
allow_mipmaps: false,
flags: webrender_api::ImageDescriptorFlags::empty(),
};
let data = self.drawtarget.snapshot_data_owned();
let data = webrender_api::ImageData::Raw(Arc::new(data));
@@ -945,13 +945,14 @@ impl WebGLThread {

/// Helper function to create a `webrender_api::ImageDescriptor`.
fn image_descriptor(size: Size2D<i32>, alpha: bool) -> webrender_api::ImageDescriptor {
let mut flags = webrender_api::ImageDescriptorFlags::empty();
flags.set(webrender_api::ImageDescriptorFlags::IS_OPAQUE, !alpha);
webrender_api::ImageDescriptor {
size: webrender_api::units::DeviceIntSize::new(size.width, size.height),
stride: None,
format: webrender_api::ImageFormat::BGRA8,
offset: 0,
is_opaque: !alpha,
allow_mipmaps: false,
flags,
}
}

@@ -20,8 +20,8 @@ crossbeam-channel = "0.4"
embedder_traits = {path = "../embedder_traits"}
euclid = "0.20"
gfx_traits = {path = "../gfx_traits"}
gleam = {version = "0.6", optional = true}
image = "0.22"
gleam = {version = "0.9", optional = true}
image = "0.23"
ipc-channel = "0.14"
libc = "0.2"
keyboard-types = "0.4.3"
@@ -31,7 +31,7 @@ net_traits = {path = "../net_traits"}
num-traits = "0.2"
pixels = {path = "../pixels", optional = true}
profile_traits = {path = "../profile_traits"}
rust-webvr = {version = "0.17", features = ["mock", "openvr", "vrexternal"]}
rust-webvr = {version = "0.18", features = ["mock", "openvr", "vrexternal"]}
script_traits = {path = "../script_traits"}
servo_geometry = {path = "../geometry"}
servo-media = {git = "https://github.com/servo/media"}
@@ -1396,7 +1396,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
FramebufferUintLength::new(height),
);
let dynamic_image = DynamicImage::ImageRgb8(img);
if let Err(e) = dynamic_image.write_to(&mut file, ImageFormat::PNG)
if let Err(e) = dynamic_image.write_to(&mut file, ImageFormat::Png)
{
error!("Failed to save {} ({}).", path, e);
}
@@ -18,7 +18,7 @@ lazy_static = "1"
log = "0.4"
msg = {path = "../msg"}
num-traits = "0.2"
num-derive = "0.2"
num-derive = "0.3"
serde = "1.0"
servo_url = {path = "../url"}
webrender_api = {git = "https://github.com/servo/webrender"}
@@ -454,6 +454,7 @@ pub fn empty_common_item_properties() -> CommonItemProperties {
spatial_id: SpatialId::root_scroll_node(wr::PipelineId::dummy()),
hit_info: None,
flags: PrimitiveFlags::empty(),
item_key: None,
}
}

@@ -338,5 +338,6 @@ fn build_common_item_properties(
// TODO(gw): Make use of the WR backface visibility functionality.
flags: PrimitiveFlags::default(),
hit_info: tag,
item_key: None,
}
}
@@ -1420,7 +1420,7 @@ impl LayoutThread {
fragment_tree.print();
}
if self.dump_display_list {
display_list.wr.print_display_list();
display_list.wr.dump_serialized_display_list();
}

debug!("Layout done!");
@@ -21,6 +21,7 @@ use std::mem;
use std::sync::{Arc, Mutex};
use std::thread;
use webrender_api::units::DeviceIntSize;
use webrender_api::ImageDescriptorFlags;

///
/// TODO(gw): Remaining work on image cache:
@@ -75,13 +76,14 @@ fn set_webrender_image_key(webrender_api: &WebrenderIpcSender, image: &mut Image
panic!("Not support by webrender yet");
},
};
let mut flags = ImageDescriptorFlags::ALLOW_MIPMAPS;
flags.set(ImageDescriptorFlags::IS_OPAQUE, is_opaque);
let descriptor = webrender_api::ImageDescriptor {
size: DeviceIntSize::new(image.width as i32, image.height as i32),
stride: None,
format: webrender_api::ImageFormat::BGRA8,
offset: 0,
is_opaque,
allow_mipmaps: true,
flags,
};
let data = webrender_api::ImageData::new(bytes);
let image_key = webrender_api.generate_image_key();
@@ -20,7 +20,7 @@ headers = "0.2"
http = "0.1"
hyper = "0.12"
hyper_serde = "0.11"
piston_image = {package = "image", version = "0.22"}
piston_image = {package = "image", version = "0.23"}
ipc-channel = "0.14"
lazy_static = "1"
log = "0.4"
@@ -77,15 +77,15 @@ pub fn load_from_memory(buffer: &[u8], cors_status: CorsStatus) -> Option<Image>
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
pub fn detect_image_format(buffer: &[u8]) -> Result<ImageFormat, &str> {
if is_gif(buffer) {
Ok(ImageFormat::GIF)
Ok(ImageFormat::Gif)
} else if is_jpeg(buffer) {
Ok(ImageFormat::JPEG)
Ok(ImageFormat::Jpeg)
} else if is_png(buffer) {
Ok(ImageFormat::PNG)
Ok(ImageFormat::Png)
} else if is_bmp(buffer) {
Ok(ImageFormat::BMP)
Ok(ImageFormat::Bmp)
} else if is_ico(buffer) {
Ok(ImageFormat::ICO)
Ok(ImageFormat::Ico)
} else {
Err("Image Format Not Supported")
}
@@ -61,7 +61,7 @@ html5ever = "0.25"
http = "0.1"
hyper = "0.12"
hyper_serde = "0.11"
image = "0.22"
image = "0.23"
indexmap = "1.0.2"
ipc-channel = "0.14"
itertools = "0.8"
@@ -392,7 +392,7 @@ impl HTMLCanvasElementMethods for HTMLCanvasElement {
// FIXME(nox): https://github.com/PistonDevelopers/image-png/issues/86
// FIXME(nox): https://github.com/PistonDevelopers/image-png/issues/87
PNGEncoder::new(&mut png)
.encode(&file, self.Width(), self.Height(), ColorType::RGBA(8))
.encode(&file, self.Width(), self.Height(), ColorType::Rgba8)
.unwrap();
let mut url = "data:image/png;base64,".to_owned();
// FIXME(nox): Should this use base64::URL_SAFE?
@@ -96,7 +96,8 @@ use std::rc::Rc;
use std::sync::{Arc, Mutex};
use time::{self, Duration, Timespec};
use webrender_api::{ExternalImageData, ExternalImageId, ExternalImageType, TextureTarget};
use webrender_api::{ImageData, ImageDescriptor, ImageFormat, ImageKey, Transaction};
use webrender_api::{ImageData, ImageDescriptor, ImageDescriptorFlags, ImageFormat};
use webrender_api::{ImageKey, Transaction};

#[derive(PartialEq)]
enum FrameStatus {
@@ -186,8 +187,7 @@ impl VideoFrameRenderer for MediaFrameRenderer {
frame.get_width(),
frame.get_height(),
ImageFormat::BGRA8,
false,
false,
ImageDescriptorFlags::empty(),
);

match self.current_frame {
@@ -55,7 +55,7 @@ embedder_traits = {path = "../embedder_traits"}
env_logger = "0.6"
euclid = "0.20"
gfx = {path = "../gfx"}
gleam = "0.6"
gleam = "0.9"
ipc-channel = "0.14"
keyboard-types = "0.4"
layout_thread_2013 = {path = "../layout_thread", optional = true}
@@ -53,7 +53,7 @@ malloc_size_of_derive = "0.1"
num_cpus = {version = "1.1.0"}
num-integer = "0.1"
num-traits = "0.2"
num-derive = "0.2"
num-derive = "0.3"
owning_ref = "0.4"
parking_lot = "0.9"
precomputed-hash = "0.1.1"
@@ -17,7 +17,7 @@ cookie = "0.11"
crossbeam-channel = "0.4"
euclid = "0.20"
hyper = "0.12"
image = "0.22"
image = "0.23"
ipc-channel = "0.14"
keyboard-types = "0.4.3"
log = "0.4"
@@ -1583,7 +1583,7 @@ impl Handler {
let rgb = RgbImage::from_raw(img.width, img.height, img.bytes.to_vec()).unwrap();
let mut png_data = Vec::new();
DynamicImage::ImageRgb8(rgb)
.write_to(&mut png_data, ImageFormat::PNG)
.write_to(&mut png_data, ImageFormat::Png)
.unwrap();

Ok(base64::encode(&png_data))
@@ -22,7 +22,7 @@ euclid = "0.20"
ipc-channel = "0.14"
log = "0.4"
msg = {path = "../msg"}
rust-webvr = {version = "0.17", features = ["mock", "openvr", "vrexternal"]}
rust-webvr = {version = "0.18", features = ["mock", "openvr", "vrexternal"]}
rust-webvr-api = "0.17"
servo_config = {path = "../config"}
sparkle = "0.1"
@@ -52,22 +52,22 @@ backtrace = "0.3"
clipboard = "0.5"
euclid = "0.20"
getopts = "0.2.11"
gleam = "0.6"
gleam = "0.9"
glutin = "0.21.0"
keyboard-types = "0.4.3"
lazy_static = "1"
libservo = {path = "../../components/servo"}
libc = "0.2"
log = "0.4"
rust-webvr = { version = "0.17", features = ["glwindow"] }
rust-webvr = { version = "0.18", features = ["glwindow"] }
servo-media = {git = "https://github.com/servo/media"}
shellwords = "1.0.0"
tinyfiledialogs = "3.0"
webxr-api = { git = "https://github.com/servo/webxr", features = ["ipc"] }
webxr = { git = "https://github.com/servo/webxr", features = ["ipc", "glwindow", "headless"] }

[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
image = "0.22"
image = "0.23"

[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies]
osmesa-sys = "0.1.2"
@@ -17,7 +17,7 @@ path = "lib.rs"
[dependencies]
crossbeam-channel = "0.4"
euclid = "0.20"
gleam = "0.6"
gleam = "0.9"
glib = "0.9"
gstreamer = "0.15"
gstreamer-base = "0.15"
@@ -20,7 +20,7 @@ layout-2020 = ["simpleservo/layout-2020"]
[dependencies]
libservo = { path = "../../components/servo", features = ["no_static_freetype"] }
simpleservo = { path = "../libsimpleservo/api", features = ["no_static_freetype"] }
rust-webvr = { version = "0.17", features = ["magicleap"] }
rust-webvr = { version = "0.18", features = ["magicleap"] }
webxr-api = { git = "https://github.com/servo/webxr", features = ["ipc"] }
webxr = { git = "https://github.com/servo/webxr", features = ["ipc", "magicleap"] }
libc = "0.2"
@@ -39,16 +39,12 @@ packages = [
# https://github.com/servo/servo/pull/23288#issuecomment-494687746
"gl_generator",

# Just needs a WR update.
"derive_more",

# Lots of crates to update.
"smallvec",

# https://github.com/servo/servo/issues/24421
"proc-macro2",
"quote",
"syn",
"unicode-xid",

# These can be removed once servo is updated to surfman 0.2

This file was deleted.

@@ -1,3 +1,3 @@
[fieldset-transform-translatez.html]
[table-anonymous-objects-009.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-010.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-011.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-012.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-017.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-018.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-019.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-020.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-115.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-116.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-121.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-122.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-173.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-174.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-175.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-176.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-197.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-198.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-199.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-200.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-201.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-202.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-203.xht]
expected:
if os == "linux": FAIL
@@ -0,0 +1,3 @@
[table-anonymous-objects-204.xht]
expected:
if os == "linux": FAIL
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.