[LayoutReloaded] Remove left/right width/height setters from Layout.Box
[WebKit-https.git] / Tools / LayoutReloaded / Layout.js
index 0bec697fe78d8a6332d3ed7f2124a5e8d370497e..64c37a894d44d77e44744a5023bb7fccae19233c 100644 (file)
@@ -26,8 +26,9 @@
 function layout(window, viewportSize) {
     let treeBuilder = new TreeBuilder();
     let initialContainingBlock = treeBuilder.createTree(window.document, window.renderTreeStructure);
-    initialContainingBlock.setDisplayBox(new Display.Box());
-    initialContainingBlock.setSize(viewportSize);
+    let displayBox = new Display.Box();
+    displayBox.setSize(viewportSize);
+    initialContainingBlock.setDisplayBox(displayBox);
 
     let layoutContext = new LayoutContext(initialContainingBlock);
     layoutContext.layoutFormattingContext(initialContainingBlock.establishedFormattingContext());