pub trait FragmentBorderBoxIterator {
// Required methods
fn process(&mut self, fragment: &Fragment, level: i32, overflow: &Rect<Au>);
fn should_process(&mut self, fragment: &Fragment) -> bool;
}
Expand description
A top-down fragment border box iteration handler.
Required Methods§
sourcefn process(&mut self, fragment: &Fragment, level: i32, overflow: &Rect<Au>)
fn process(&mut self, fragment: &Fragment, level: i32, overflow: &Rect<Au>)
The operation to perform.
sourcefn should_process(&mut self, fragment: &Fragment) -> bool
fn should_process(&mut self, fragment: &Fragment) -> bool
Returns true if this fragment must be processed in-order. If this returns false, we skip the operation for this fragment, but continue processing siblings.