mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix existing syntactics nits.
This commit is contained in:
parent
7f935f010b
commit
8bb853f643
93 changed files with 393 additions and 397 deletions
|
@ -45,10 +45,10 @@ impl DisplayListOptimizer {
|
|||
}
|
||||
|
||||
/// Adds display items that intersect the visible rect to `result_list`.
|
||||
fn add_in_bounds_display_items<'a,I>(&self,
|
||||
result_list: &mut LinkedList<DisplayItem>,
|
||||
display_items: I)
|
||||
where I: Iterator<Item=&'a DisplayItem> {
|
||||
fn add_in_bounds_display_items<'a, I>(&self,
|
||||
result_list: &mut LinkedList<DisplayItem>,
|
||||
display_items: I)
|
||||
where I: Iterator<Item=&'a DisplayItem> {
|
||||
for display_item in display_items {
|
||||
if self.visible_rect.intersects(&display_item.base().bounds) &&
|
||||
display_item.base().clip.might_intersect_rect(&self.visible_rect) {
|
||||
|
@ -58,10 +58,10 @@ impl DisplayListOptimizer {
|
|||
}
|
||||
|
||||
/// Adds child stacking contexts whose boundaries intersect the visible rect to `result_list`.
|
||||
fn add_in_bounds_stacking_contexts<'a,I>(&self,
|
||||
result_list: &mut LinkedList<Arc<StackingContext>>,
|
||||
stacking_contexts: I)
|
||||
where I: Iterator<Item=&'a Arc<StackingContext>> {
|
||||
fn add_in_bounds_stacking_contexts<'a, I>(&self,
|
||||
result_list: &mut LinkedList<Arc<StackingContext>>,
|
||||
stacking_contexts: I)
|
||||
where I: Iterator<Item=&'a Arc<StackingContext>> {
|
||||
for stacking_context in stacking_contexts {
|
||||
if stacking_context.layer.is_none() {
|
||||
// Transform this stacking context to get it into the same space as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue