mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Copy image-fetching code from Layout 2013
This commit is contained in:
parent
cbcf83fc65
commit
c8cbc57b76
6 changed files with 178 additions and 6 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue