summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/layout.c16
-rw-r--r--src/layout.h15
2 files changed, 17 insertions, 14 deletions
diff --git a/src/layout.c b/src/layout.c
index 6921a4d..ee3d507 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -11,11 +11,27 @@
#include <assert.h>
#include <stdlib.h>
+#include <libnslayout/nslayout.h>
+
#include "layout.h"
#include "dom/watcher.h"
#include "util/dom-str.h"
+/**
+ * The layout object for a DOM document
+ */
+struct nslayout_layout {
+ dom_document *document;
+ css_select_ctx *css_ctx;
+ css_media_type *media;
+ nslayout_callback cb;
+ void *pw;
+
+ struct nsl_dom_watcher *watcher;
+};
+
+
/* Publically exported function, documented in include/libnslayout/nslayout.h */
nslayout_error nslayout_init(void)
{
diff --git a/src/layout.h b/src/layout.h
index 3bc9a30..d8fa3b2 100644
--- a/src/layout.h
+++ b/src/layout.h
@@ -11,19 +11,6 @@
#ifndef nslayout_layout_h_
#define nslayout_layout_h_
-#include <libnslayout/nslayout.h>
-
-/**
- * The layout object for a DOM document
- */
-struct nslayout_layout {
- dom_document *document;
- css_select_ctx *css_ctx;
- css_media_type *media;
- nslayout_callback cb;
- void *pw;
-
- struct nsl_dom_watcher *watcher;
-};
+struct nslayout_layout;
#endif