mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Fix existing syntactics nits.
This commit is contained in:
parent
7f935f010b
commit
8bb853f643
93 changed files with 393 additions and 397 deletions
|
@ -471,11 +471,11 @@ impl StackingContext {
|
|||
mut point: Point2D<Au>,
|
||||
result: &mut Vec<DisplayItemMetadata>,
|
||||
topmost_only: bool) {
|
||||
fn hit_test_in_list<'a,I>(point: Point2D<Au>,
|
||||
result: &mut Vec<DisplayItemMetadata>,
|
||||
topmost_only: bool,
|
||||
iterator: I)
|
||||
where I: Iterator<Item=&'a DisplayItem> {
|
||||
fn hit_test_in_list<'a, I>(point: Point2D<Au>,
|
||||
result: &mut Vec<DisplayItemMetadata>,
|
||||
topmost_only: bool,
|
||||
iterator: I)
|
||||
where I: Iterator<Item=&'a DisplayItem> {
|
||||
for item in iterator {
|
||||
// TODO(pcwalton): Use a precise algorithm here. This will allow us to properly hit
|
||||
// test elements with `border-radius`, for example.
|
||||
|
@ -1016,7 +1016,7 @@ pub enum BoxShadowClipMode {
|
|||
|
||||
pub enum DisplayItemIterator<'a> {
|
||||
Empty,
|
||||
Parent(linked_list::Iter<'a,DisplayItem>),
|
||||
Parent(linked_list::Iter<'a, DisplayItem>),
|
||||
}
|
||||
|
||||
impl<'a> Iterator for DisplayItemIterator<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue