mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
auto merge of #5209 : Adenilson/servo/displayListGeom01, r=jdm
This commit is contained in:
commit
a521755607
1 changed files with 7 additions and 9 deletions
|
@ -170,15 +170,13 @@ impl DisplayList {
|
||||||
let doit = |items: &Vec<DisplayItem>| {
|
let doit = |items: &Vec<DisplayItem>| {
|
||||||
for item in items.iter() {
|
for item in items.iter() {
|
||||||
match *item {
|
match *item {
|
||||||
// TODO(savago): would be nice to have other information associated with
|
DisplayItem::SolidColorClass(ref solid_color) => println!("{:?} SolidColor. {:?}", indentation, solid_color.base.bounds),
|
||||||
// each display item (e.g. coordinates?).
|
DisplayItem::TextClass(ref text) => println!("{:?} Text. {:?}", indentation, text.base.bounds),
|
||||||
DisplayItem::SolidColorClass(ref _solid_color) => println!("{} SolidColor.", indentation),
|
DisplayItem::ImageClass(ref image) => println!("{:?} Image. {:?}", indentation, image.base.bounds),
|
||||||
DisplayItem::TextClass(ref _text) => println!("{} TextClass.", indentation),
|
DisplayItem::BorderClass(ref border) => println!("{:?} Border. {:?}", indentation, border.base.bounds),
|
||||||
DisplayItem::ImageClass(ref _image) => println!("{} ImageClass.", indentation),
|
DisplayItem::GradientClass(ref gradient) => println!("{:?} Gradient. {:?}", indentation, gradient.base.bounds),
|
||||||
DisplayItem::BorderClass(ref _border) => println!("{} BorderClass.", indentation),
|
DisplayItem::LineClass(ref line) => println!("{:?} Line. {:?}", indentation, line.base.bounds),
|
||||||
DisplayItem::GradientClass(ref _gradient) => println!("{} GradientClass.", indentation),
|
DisplayItem::BoxShadowClass(ref box_shadow) => println!("{:?} Box_shadow. {:?}", indentation, box_shadow.base.bounds),
|
||||||
DisplayItem::LineClass(ref _line) => println!("{} LineClass.", indentation),
|
|
||||||
DisplayItem::BoxShadowClass(ref _box_shadow) => println!("{} BoxShadowClass.", indentation),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println!("\n");
|
println!("\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue