[LFC] The *FormattingState class should provide the *FormattingContext.
[WebKit-https.git] / Source / WebCore / layout / blockformatting / BlockFormattingState.cpp
index 0d2491e..3a544c4 100644 (file)
@@ -46,6 +46,12 @@ BlockFormattingState::~BlockFormattingState()
 {
 }
 
+std::unique_ptr<FormattingContext> BlockFormattingState::formattingContext(const Box& formattingContextRoot) const
+{
+    ASSERT(formattingContextRoot.establishesBlockFormattingContext());
+    return std::make_unique<BlockFormattingContext>(formattingContextRoot);
+}
+
 }
 }
 #endif