Keep may_spread_as_an_outline's doc comment on it

This commit is contained in:
bflatastic
2026-12-01 20:04:10 +07:00
parent 1daffc8bd3
commit ebe04a4122
+3 -3
View File
@@ -1031,9 +1031,6 @@ impl Node {
stroke + glyphs
}
/// Whether a drop shadow's spread can grow this node's outline (see [`Node::outline_spreads`]):
/// not a group's or stroked text's, which the renderer spreads as pixels, in page units. Others
/// can still turn out to be drawn that way (children, images with alpha): counted both ways.
/// Whether this node's drop shadows grow (or shrink) by their spread. A frame that doesn't clip
/// its content casts them as it is, whatever their spread, as the reference tool draws them
/// (measured, #2777); clipping its content again brings the spread back.
@@ -1064,6 +1061,9 @@ impl Node {
Some(n)
}
/// Whether a drop shadow's spread can grow this node's outline (see [`Node::outline_spreads`]):
/// not a group's or stroked text's, which the renderer spreads as pixels, in page units. Others
/// can still turn out to be drawn that way (children, images with alpha): counted both ways.
fn may_spread_as_an_outline(&self) -> bool {
!(matches!(self.kind, NodeKind::Group) || (matches!(self.kind, NodeKind::Text(_)) && self.has_visible_stroke()))
}