Skip to content

Commit

Permalink
Remove workaround for Rect::is_empty
Browse files Browse the repository at this point in the history
Now that euclid is up-to-date this workaround is no longer necessary.
  • Loading branch information
mrobinson committed Dec 22, 2015
1 parent a8783ad commit ecc5878
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/layout/display_list_builder.rs
Expand Up @@ -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(
Expand Down

0 comments on commit ecc5878

Please sign in to comment.