From fb6339bbf9d9930e9db830feb50afac0b34070e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 29 May 2017 21:39:41 +0200 Subject: [PATCH] style: rewrap some comments to 80 columns for consistency with the rest of the code. --- components/style/context.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/components/style/context.rs b/components/style/context.rs index 179e8250068..98122aa197d 100644 --- a/components/style/context.rs +++ b/components/style/context.rs @@ -154,13 +154,14 @@ impl<'a> SharedStyleContext<'a> { } } -/// Information about the current element being processed. We group this together -/// into a single struct within ThreadLocalStyleContext so that we can instantiate -/// and destroy it easily at the beginning and end of element processing. +/// Information about the current element being processed. We group this +/// together into a single struct within ThreadLocalStyleContext so that we can +/// instantiate and destroy it easily at the beginning and end of element +/// processing. pub struct CurrentElementInfo { - /// The element being processed. Currently we use an OpaqueNode since we only - /// use this for identity checks, but we could use SendElement if there were - /// a good reason to. + /// The element being processed. Currently we use an OpaqueNode since we + /// only use this for identity checks, but we could use SendElement if there + /// were a good reason to. element: OpaqueNode, /// Whether the element is being styled for the first time. is_initial_style: bool, @@ -172,8 +173,9 @@ pub struct CurrentElementInfo { pub possibly_expired_animations: Vec, } -/// Statistics gathered during the traversal. We gather statistics on each thread -/// and then combine them after the threads join via the Add implementation below. +/// Statistics gathered during the traversal. We gather statistics on each +/// thread and then combine them after the threads join via the Add +/// implementation below. #[derive(Default)] pub struct TraversalStatistics { /// The total number of elements traversed.