From c58cc57253109efe1e7bc3b7b90b177e11f55fbb Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 5 Feb 2017 13:04:34 +0000 Subject: layout: Make the layout object opaque. --- src/layout.c | 16 ++++++++++++++++ src/layout.h | 15 +-------------- 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 #include +#include + #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 - -/** - * 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 -- cgit v1.2.3