mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Prefer doc comments to #[doc] annotations.
This commit is contained in:
parent
ac6e04ebfb
commit
c786fd2e55
1 changed files with 26 additions and 20 deletions
|
@ -13,41 +13,47 @@ use properties::ComputedValues;
|
|||
use std::fmt;
|
||||
|
||||
bitflags! {
|
||||
#[doc = "Individual layout actions that may be necessary after restyling."]
|
||||
/// Individual layout actions that may be necessary after restyling.
|
||||
pub struct ServoRestyleDamage: u8 {
|
||||
#[doc = "Repaint the node itself."]
|
||||
#[doc = "Currently unused; need to decide how this propagates."]
|
||||
/// Repaint the node itself.
|
||||
///
|
||||
/// Currently unused; need to decide how this propagates.
|
||||
const REPAINT = 0x01;
|
||||
|
||||
#[doc = "The stacking-context-relative position of this node or its descendants has \
|
||||
changed."]
|
||||
#[doc = "Propagates both up and down the flow tree."]
|
||||
/// The stacking-context-relative position of this node or its
|
||||
/// descendants has changed.
|
||||
///
|
||||
/// Propagates both up and down the flow tree.
|
||||
const REPOSITION = 0x02;
|
||||
|
||||
#[doc = "Recompute the overflow regions (bounding box of object and all descendants)."]
|
||||
#[doc = "Propagates down the flow tree because the computation is bottom-up."]
|
||||
/// Recompute the overflow regions (bounding box of object and all descendants).
|
||||
///
|
||||
/// Propagates down the flow tree because the computation is bottom-up.
|
||||
const STORE_OVERFLOW = 0x04;
|
||||
|
||||
#[doc = "Recompute intrinsic inline_sizes (minimum and preferred)."]
|
||||
#[doc = "Propagates down the flow tree because the computation is"]
|
||||
#[doc = "bottom-up."]
|
||||
/// Recompute intrinsic inline_sizes (minimum and preferred).
|
||||
///
|
||||
/// Propagates down the flow tree because the computation is.
|
||||
/// bottom-up.
|
||||
const BUBBLE_ISIZES = 0x08;
|
||||
|
||||
#[doc = "Recompute actual inline-sizes and block-sizes, only taking out-of-flow children \
|
||||
into account. \
|
||||
Propagates up the flow tree because the computation is top-down."]
|
||||
/// Recompute actual inline-sizes and block-sizes, only taking
|
||||
/// out-of-flow children into account.
|
||||
///
|
||||
/// Propagates up the flow tree because the computation is top-down.
|
||||
const REFLOW_OUT_OF_FLOW = 0x10;
|
||||
|
||||
#[doc = "Recompute actual inline_sizes and block_sizes."]
|
||||
#[doc = "Propagates up the flow tree because the computation is"]
|
||||
#[doc = "top-down."]
|
||||
/// Recompute actual inline_sizes and block_sizes.
|
||||
///
|
||||
/// Propagates up the flow tree because the computation is top-down.
|
||||
const REFLOW = 0x20;
|
||||
|
||||
#[doc = "Re-resolve generated content. \
|
||||
Propagates up the flow tree because the computation is inorder."]
|
||||
/// Re-resolve generated content.
|
||||
///
|
||||
/// Propagates up the flow tree because the computation is inorder.
|
||||
const RESOLVE_GENERATED_CONTENT = 0x40;
|
||||
|
||||
#[doc = "The entire flow needs to be reconstructed."]
|
||||
/// The entire flow needs to be reconstructed.
|
||||
const RECONSTRUCT_FLOW = 0x80;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue