mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
style: Indent properly a couple more functions.
This commit is contained in:
parent
a6c6ef91e0
commit
13f61a6e5f
5 changed files with 46 additions and 31 deletions
|
@ -47,14 +47,19 @@ impl<'a> RecalcStyleAndConstructFlows<'a> {
|
|||
|
||||
#[allow(unsafe_code)]
|
||||
impl<'a, E> DomTraversal<E> for RecalcStyleAndConstructFlows<'a>
|
||||
where E: TElement,
|
||||
E::ConcreteNode: LayoutNode,
|
||||
E::FontMetricsProvider: Send,
|
||||
where
|
||||
E: TElement,
|
||||
E::ConcreteNode: LayoutNode,
|
||||
E::FontMetricsProvider: Send,
|
||||
{
|
||||
fn process_preorder<F>(&self, traversal_data: &PerLevelTraversalData,
|
||||
context: &mut StyleContext<E>, node: E::ConcreteNode,
|
||||
note_child: F)
|
||||
where F: FnMut(E::ConcreteNode)
|
||||
fn process_preorder<F>(
|
||||
&self,
|
||||
traversal_data: &PerLevelTraversalData,
|
||||
context: &mut StyleContext<E>, node: E::ConcreteNode,
|
||||
note_child: F,
|
||||
)
|
||||
where
|
||||
F: FnMut(E::ConcreteNode)
|
||||
{
|
||||
// FIXME(pcwalton): Stop allocating here. Ideally this should just be
|
||||
// done by the HTML parser.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue