tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definitions

Enable display_inside for block detection

55a0d45c4a755fc9770b9dd18e6ab40f6f92c201 · by Nico Burns · (2 years ago) · parent 4c8ffecc5 · browse the tree at this commit

Semantic delta · 1

taffy_stylo/src/t2s.rs

1 files · +1 −1

diff --git a/taffy_stylo/src/t2s.rs b/taffy_stylo/src/t2s.rs
index d8e486fdf..46ae162fd 100644
--- a/taffy_stylo/src/t2s.rs
+++ b/taffy_stylo/src/t2s.rs
@@ -43,7 +43,7 @@ pub(crate) fn max_size_dimension(val: &stylo::MaxSize) -> taffy::Dimension {
 #[inline]
 pub(crate) fn is_block(input: stylo::Display) -> bool {
     matches!(input.outside(), stylo::DisplayOutside::Block)
-    // && matches!(input.inside(), stylo::DisplayInside::Flow | stylo::DisplayInside::FlowRoot)
+        && matches!(input.inside(), stylo::DisplayInside::Flow | stylo::DisplayInside::FlowRoot)
 }
 
 #[inline]