From ecc58786b7cf3c187227896d016bddf1a1cccb94 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 21 Dec 2015 19:20:48 +0100 Subject: [PATCH] Remove workaround for Rect::is_empty Now that euclid is up-to-date this workaround is no longer necessary. --- components/layout/display_list_builder.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index 96632c5d47d..88e08c84137 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -1097,10 +1097,7 @@ impl FragmentDisplayListBuilding for Fragment { } } SpecificFragmentInfo::Iframe(ref fragment_info) => { - // TODO(mrobinson): When https://github.com/servo/euclid/issues/109 is fixed this - // check can just become stacking_relative_content_box.is_empty(). - if stacking_relative_content_box.size.width != Zero::zero() && - stacking_relative_content_box.size.height != Zero::zero() { + if !stacking_relative_content_box.is_empty() { let layer_id = self.layer_id(); display_list.content.push_back(DisplayItem::LayeredItemClass(box LayeredItem { item: DisplayItem::NoopClass(