Skip to content

Commit

Permalink
Don't panic on directly laid out/rendered text nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jul 21, 2024
1 parent e2437a8 commit da68709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/blitz/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ where
NodeData::Text(TextNodeData { .. }) => {
// Text nodes should never be rendered directly
// (they should always be rendered as part of an inline layout)
unreachable!()
// unreachable!()
}
NodeData::Document => {}
// NodeData::Doctype => {}
Expand Down
4 changes: 2 additions & 2 deletions packages/dom/src/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ impl LayoutPartialTree for Document {
usize::from(node_id)
);
dbg!(data);
// taffy::LayoutOutput::HIDDEN
unreachable!();
taffy::LayoutOutput::HIDDEN
// unreachable!();

// compute_leaf_layout(inputs, &node.style, |known_dimensions, available_space| {
// let context = TextContext {
Expand Down

0 comments on commit da68709

Please sign in to comment.