Copy image-fetching code from Layout 2013

This commit is contained in:
Simon Sapin 2020-01-10 15:50:38 +01:00
parent cbcf83fc65
commit c8cbc57b76
6 changed files with 178 additions and 6 deletions

View file

@ -14,6 +14,13 @@ use style::values::computed::{BorderStyle, Length, LengthPercentage};
use style::values::specified::ui::CursorKind;
use webrender_api::{self as wr, units};
#[derive(Clone, Copy)]
pub struct WebRenderImageInfo {
pub width: u32,
pub height: u32,
pub key: Option<wr::ImageKey>,
}
// `webrender_api::display_item::ItemTag` is private
type ItemTag = (u64, u16);
type HitInfo = Option<ItemTag>;