From ebe04a4122104ade3429fe6dbccdd82bcce7069a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 1 Dec 2026 20:04:10 +0700 Subject: [PATCH] Keep may_spread_as_an_outline's doc comment on it --- crates/doc/src/node.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/doc/src/node.rs b/crates/doc/src/node.rs index 18332cb4d..cec38c5cb 100644 --- a/crates/doc/src/node.rs +++ b/crates/doc/src/node.rs @@ -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())) }