style: rewrap some comments to 80 columns for consistency with the rest of the code.

This commit is contained in:
Emilio Cobos Álvarez 2017-05-29 21:39:41 +02:00
parent 544e0f4cd6
commit fb6339bbf9
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -154,13 +154,14 @@ impl<'a> SharedStyleContext<'a> {
} }
} }
/// Information about the current element being processed. We group this together /// Information about the current element being processed. We group this
/// into a single struct within ThreadLocalStyleContext so that we can instantiate /// together into a single struct within ThreadLocalStyleContext so that we can
/// and destroy it easily at the beginning and end of element processing. /// instantiate and destroy it easily at the beginning and end of element
/// processing.
pub struct CurrentElementInfo { pub struct CurrentElementInfo {
/// The element being processed. Currently we use an OpaqueNode since we only /// The element being processed. Currently we use an OpaqueNode since we
/// use this for identity checks, but we could use SendElement if there were /// only use this for identity checks, but we could use SendElement if there
/// a good reason to. /// were a good reason to.
element: OpaqueNode, element: OpaqueNode,
/// Whether the element is being styled for the first time. /// Whether the element is being styled for the first time.
is_initial_style: bool, is_initial_style: bool,
@ -172,8 +173,9 @@ pub struct CurrentElementInfo {
pub possibly_expired_animations: Vec<PropertyAnimation>, pub possibly_expired_animations: Vec<PropertyAnimation>,
} }
/// Statistics gathered during the traversal. We gather statistics on each thread /// Statistics gathered during the traversal. We gather statistics on each
/// and then combine them after the threads join via the Add implementation below. /// thread and then combine them after the threads join via the Add
/// implementation below.
#[derive(Default)] #[derive(Default)]
pub struct TraversalStatistics { pub struct TraversalStatistics {
/// The total number of elements traversed. /// The total number of elements traversed.