diff options
Diffstat (limited to 'components/layout/display_list_builder.rs')
-rw-r--r-- | components/layout/display_list_builder.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index c071bb5777e..beea14abca0 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -468,9 +468,7 @@ impl FragmentDisplayListBuilding for Fragment { position_to_offset(gradient.stops[i - 1].position.unwrap(), length) }; let (end_index, end_offset) = - match gradient.stops - .as_slice() - .slice_from(i) + match gradient.stops[i..] .iter() .enumerate() .find(|&(_, ref stop)| stop.position.is_some()) { |