[LFC][IFC] Construct dedicated runs when the inline element requires it (part 2)
[WebKit-https.git] / Source / WebCore / layout / inlineformatting / InlineFormattingState.cpp
index 92d71a4..aa43970 100644 (file)
@@ -50,6 +50,15 @@ std::unique_ptr<FormattingContext> InlineFormattingState::formattingContext(cons
     return std::make_unique<InlineFormattingContext>(formattingContextRoot, *this);
 }
 
+std::optional<InlineFormattingState::DetachingRules> InlineFormattingState::detachingRules(const Box& layoutBox) const
+{
+    auto detachingRules = m_detachingRules.get(&layoutBox);
+    if (!detachingRules)
+        return { };
+
+    return detachingRules;
+}
+
 }
 }
 #endif