mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Make HTMLCanvasElement::get_size return a Size2D<u32>
The changes keep trickling down.
This commit is contained in:
parent
b8dbf2dddd
commit
a3392610c3
15 changed files with 126 additions and 101 deletions
|
@ -16,7 +16,7 @@ use euclid::Size2D;
|
|||
pub struct CanvasPattern {
|
||||
reflector_: Reflector,
|
||||
surface_data: Vec<u8>,
|
||||
surface_size: Size2D<i32>,
|
||||
surface_size: Size2D<u32>,
|
||||
repeat_x: bool,
|
||||
repeat_y: bool,
|
||||
origin_clean: bool,
|
||||
|
@ -25,7 +25,7 @@ pub struct CanvasPattern {
|
|||
impl CanvasPattern {
|
||||
fn new_inherited(
|
||||
surface_data: Vec<u8>,
|
||||
surface_size: Size2D<i32>,
|
||||
surface_size: Size2D<u32>,
|
||||
repeat: RepetitionStyle,
|
||||
origin_clean: bool,
|
||||
) -> CanvasPattern {
|
||||
|
@ -39,7 +39,7 @@ impl CanvasPattern {
|
|||
CanvasPattern {
|
||||
reflector_: Reflector::new(),
|
||||
surface_data: surface_data,
|
||||
surface_size: surface_size,
|
||||
surface_size,
|
||||
repeat_x: x,
|
||||
repeat_y: y,
|
||||
origin_clean: origin_clean,
|
||||
|
@ -48,7 +48,7 @@ impl CanvasPattern {
|
|||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
surface_data: Vec<u8>,
|
||||
surface_size: Size2D<i32>,
|
||||
surface_size: Size2D<u32>,
|
||||
repeat: RepetitionStyle,
|
||||
origin_clean: bool,
|
||||
) -> DomRoot<CanvasPattern> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue