From ce07edcb56d0c0876bbb4a0ce0f1830345862e19 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 12 Sep 2012 16:15:17 -0700 Subject: [PATCH] Fix breakage in display_list_builder tests --- src/servo/layout/display_list_builder.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/servo/layout/display_list_builder.rs b/src/servo/layout/display_list_builder.rs index 1cd7450f51b..73b0c80181d 100644 --- a/src/servo/layout/display_list_builder.rs +++ b/src/servo/layout/display_list_builder.rs @@ -131,8 +131,8 @@ fn should_convert_text_boxes_to_solid_color_background_items() { box_to_display_items(list, b, Point2D(px_to_au(0), px_to_au(0))); do list.borrow |l| { - match l[0].item { - dl::SolidColor(*) => { } + match l[0].data { + dl::SolidColorData(*) => { } _ => { fail } } } @@ -155,8 +155,8 @@ fn should_convert_text_boxes_to_text_items() { box_to_display_items(list, b, Point2D(px_to_au(0), px_to_au(0))); do list.borrow |l| { - match l[1].item { - dl::Text(_) => { } + match l[1].data { + dl::TextData(_) => { } _ => { fail } } }