about summary refs log tree commit diff stats
path: root/src/layout/engine.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/engine.nim')
-rw-r--r--src/layout/engine.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/engine.nim b/src/layout/engine.nim
index 04d65379..3fe7af96 100644
--- a/src/layout/engine.nim
+++ b/src/layout/engine.nim
@@ -848,5 +848,5 @@ proc generateBoxBuilders(elem: Element, viewport: Viewport): BlockBoxBuilder =
   return generateBlockBox(elem, viewport)
 
 proc renderLayout*(viewport: var Viewport, document: Document) =
-  viewport.root = document.root.generateBoxBuilders(viewport)
+  viewport.root = document.html.generateBoxBuilders(viewport)
   viewport.root.bctx = buildBlock(viewport.root, viewport)