mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Current-pixel-density tests passing
This commit is contained in:
parent
9a83ab6297
commit
25027e476c
9 changed files with 74 additions and 43 deletions
|
@ -249,6 +249,9 @@ pub trait ThreadSafeLayoutNode: Clone + Copy + Debug + GetLayoutData + NodeInfo
|
|||
/// If this is an image element, returns its URL. If this is not an image element, fails.
|
||||
fn image_url(&self) -> Option<ServoUrl>;
|
||||
|
||||
/// If this is an image element, returns its current-pixel-density. If this is not an image element, fails.
|
||||
fn image_density(&self) -> Option<f64>;
|
||||
|
||||
fn canvas_data(&self) -> Option<HTMLCanvasData>;
|
||||
|
||||
fn svg_data(&self) -> Option<SVGSVGData>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue