style: Indent properly a couple more functions.

This commit is contained in:
Emilio Cobos Álvarez 2018-02-24 23:23:16 +01:00
parent a6c6ef91e0
commit 13f61a6e5f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 46 additions and 31 deletions

View file

@ -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.