diff --git a/taffy_stylo/src/lib.rs b/taffy_stylo/src/lib.rs
index 8fff48a99..1b9d13a84 100644
--- a/taffy_stylo/src/lib.rs
+++ b/taffy_stylo/src/lib.rs
@@ -37,6 +37,12 @@ mod stylo {
pub struct TaffyStyloStyle(pub Arc<stylo::ComputedValues>);
+impl From<Arc<stylo::ComputedValues>> for TaffyStyloStyle {
+ fn from(value: Arc<stylo::ComputedValues>) -> Self {
+ Self(Arc::clone(&value))
+ }
+}
+
impl taffy::CoreStyle for TaffyStyloStyle {
#[inline]
fn box_generation_mode(&self) -> taffy::BoxGenerationMode {