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())) }