mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update core-foundation-sys to 0.3
This commit is contained in:
parent
a1d19ca5f8
commit
db3e5be878
7 changed files with 103 additions and 218 deletions
|
@ -48,9 +48,9 @@ features = ["serde_derive", "ipc"]
|
|||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
byteorder = "1.0"
|
||||
core-foundation = "0.2"
|
||||
core-graphics = "0.5"
|
||||
core-text = "2.0"
|
||||
core-foundation = "0.3"
|
||||
core-graphics = "0.6"
|
||||
core-text = "3.0"
|
||||
|
||||
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
|
||||
freetype = "0.2"
|
||||
|
|
|
@ -16,7 +16,7 @@ use msg::constellation_msg::PipelineId;
|
|||
use style::computed_values::{image_rendering, mix_blend_mode};
|
||||
use style::computed_values::filter::{self, Filter};
|
||||
use style::values::computed::BorderStyle;
|
||||
use webrender_traits::{self, DisplayListBuilder, LayoutTransform};
|
||||
use webrender_traits::{self, DisplayListBuilder, ExtendMode, LayoutTransform};
|
||||
|
||||
pub trait WebRenderDisplayListConverter {
|
||||
fn convert_to_webrender(&self, pipeline_id: PipelineId) -> DisplayListBuilder;
|
||||
|
@ -309,7 +309,8 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
clip,
|
||||
start_point,
|
||||
end_point,
|
||||
item.stops.clone());
|
||||
item.stops.clone(),
|
||||
ExtendMode::Clamp);
|
||||
}
|
||||
DisplayItem::Line(..) => {
|
||||
println!("TODO DisplayItem::Line");
|
||||
|
|
|
@ -987,7 +987,8 @@ impl LayoutThread {
|
|||
Some(get_root_flow_background_color(layout_root)),
|
||||
webrender_traits::Epoch(epoch_number),
|
||||
viewport_size,
|
||||
builder);
|
||||
builder,
|
||||
true);
|
||||
self.webrender_api.generate_frame();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
|||
clear_framebuffer: true,
|
||||
clear_color: webrender_traits::ColorF::new(1.0, 1.0, 1.0, 1.0),
|
||||
render_target_debug: false,
|
||||
})
|
||||
}).unwrap()
|
||||
};
|
||||
|
||||
// Important that this call is done in a single-threaded fashion, we
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue