[LayoutReloaded] Decouple formatting state and context lifetime.
[WebKit-https.git] / Tools / LayoutReloaded / FormattingContext / FormattingContext.js
index 732c288..420e339 100644 (file)
@@ -26,7 +26,7 @@
 class FormattingContext {
     constructor(formattingState) {
         this.m_formattingState = formattingState;
-        this.m_floatingContext = new FloatingContext(formattingState.floatingState());
+        this.m_floatingContext = new FloatingContext(formattingState.floatingState(), this);
         this.m_layoutStack = new Array();
     }