Update webrender.

This commit is contained in:
Josh Matthews 2019-01-03 13:48:00 -05:00
parent fb95f9df9c
commit 9f855ae847
15 changed files with 370 additions and 214 deletions

View file

@ -122,16 +122,16 @@ impl PipelineId {
}
}
pub fn root_scroll_node(&self) -> webrender_api::ClipId {
webrender_api::ClipId::root_scroll_node(self.to_webrender())
pub fn root_scroll_node(&self) -> webrender_api::SpatialId {
webrender_api::SpatialId::root_scroll_node(self.to_webrender())
}
pub fn root_scroll_id(&self) -> webrender_api::ExternalScrollId {
webrender_api::ExternalScrollId(0, self.to_webrender())
}
pub fn root_clip_and_scroll_info(&self) -> webrender_api::ClipAndScrollInfo {
webrender_api::ClipAndScrollInfo::simple(self.root_scroll_node())
pub fn root_clip_node(&self) -> webrender_api::ClipId {
webrender_api::ClipId::root(self.to_webrender())
}
}