Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding geometric information on DisplayList items while dumping. #5209

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Adding geometry information on DisplayList items while dumping.

  • Loading branch information
Adenilson committed Mar 18, 2015
commit 814283321db6f4c7d95d7fd880159412573759cc
@@ -170,15 +170,13 @@ impl DisplayList {
let doit = |items: &Vec<DisplayItem>| {
for item in items.iter() {
match *item {
// TODO(savago): would be nice to have other information associated with
// each display item (e.g. coordinates?).
DisplayItem::SolidColorClass(ref _solid_color) => println!("{} SolidColor.", indentation),
DisplayItem::TextClass(ref _text) => println!("{} TextClass.", indentation),
DisplayItem::ImageClass(ref _image) => println!("{} ImageClass.", indentation),
DisplayItem::BorderClass(ref _border) => println!("{} BorderClass.", indentation),
DisplayItem::GradientClass(ref _gradient) => println!("{} GradientClass.", indentation),
DisplayItem::LineClass(ref _line) => println!("{} LineClass.", indentation),
DisplayItem::BoxShadowClass(ref _box_shadow) => println!("{} BoxShadowClass.", indentation),
DisplayItem::SolidColorClass(ref solid_color) => println!("{:?} SolidColor. {:?}", indentation, solid_color.base.bounds),
DisplayItem::TextClass(ref text) => println!("{:?} Text. {:?}", indentation, text.base.bounds),
DisplayItem::ImageClass(ref image) => println!("{:?} Image. {:?}", indentation, image.base.bounds),
DisplayItem::BorderClass(ref border) => println!("{:?} Border. {:?}", indentation, border.base.bounds),
DisplayItem::GradientClass(ref gradient) => println!("{:?} Gradient. {:?}", indentation, gradient.base.bounds),
DisplayItem::LineClass(ref line) => println!("{:?} Line. {:?}", indentation, line.base.bounds),
DisplayItem::BoxShadowClass(ref box_shadow) => println!("{:?} Box_shadow. {:?}", indentation, box_shadow.base.bounds),
}
}
println!("\n");
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.