Skip to content

Commit

Permalink
Improve working and correctness of doc-comment (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weibye authored Nov 24, 2022
1 parent b2046b1 commit 82b3fc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ pub trait LayoutTree {
/// Modify the node's output layout
fn layout_mut(&mut self, node: Node) -> &mut Layout;

/// Mark a node as finished
/// Mark a node as dirty to tell Taffy that something has changed and it needs to be recomputed.
///
/// Commonly done if the style of the node has changed.
fn mark_dirty(&mut self, node: Node) -> TaffyResult<()>;

/// Measure a node. Taffy uses this to force reflows of things like text and overflowing content.
Expand Down

0 comments on commit 82b3fc7

Please sign in to comment.