mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
solid_color -> display_item_solid_color (preparation for display_item_image)
This commit is contained in:
parent
c4111d11b8
commit
a6fe64d761
3 changed files with 5 additions and 5 deletions
|
@ -54,7 +54,7 @@ fn draw_display_list(
|
||||||
for display_list.each {|item|
|
for display_list.each {|item|
|
||||||
#debug["drawing %?", item];
|
#debug["drawing %?", item];
|
||||||
let (r, g, b) = alt check item.item_type {
|
let (r, g, b) = alt check item.item_type {
|
||||||
dl::solid_color(r, g, b) { (r, g, b) }
|
dl::display_item_solid_color(r, g, b) { (r, g, b) }
|
||||||
};
|
};
|
||||||
let bounds = (*item).bounds;
|
let bounds = (*item).bounds;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import gfx::geom::*;
|
import gfx::geom::*;
|
||||||
|
|
||||||
enum item_type {
|
enum item_type {
|
||||||
solid_color(u8, u8, u8),
|
display_item_solid_color(u8, u8, u8),
|
||||||
// FIXME: Shape code does not understand the alignment without this
|
// FIXME: Shape code does not understand the alignment without this
|
||||||
padding(u8, u8, u8, u8)
|
padding(u8, u8, u8, u8)
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,9 +63,9 @@ fn build_display_list(box: @base::box) -> display_list::display_list {
|
||||||
fn box_to_display_item(box: @base::box) -> dl::display_item {
|
fn box_to_display_item(box: @base::box) -> dl::display_item {
|
||||||
let r = rand::rng();
|
let r = rand::rng();
|
||||||
let item = dl::display_item({
|
let item = dl::display_item({
|
||||||
item_type: dl::solid_color(r.next() as u8,
|
item_type: dl::display_item_solid_color(r.next() as u8,
|
||||||
r.next() as u8,
|
r.next() as u8,
|
||||||
r.next() as u8),
|
r.next() as u8),
|
||||||
bounds: box.bounds
|
bounds: box.bounds
|
||||||
});
|
});
|
||||||
#debug("layout: display item: %?", item);
|
#debug("layout: display item: %?", item);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue