diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-02-05 13:04:34 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-02-05 13:04:34 +0000 |
commit | c58cc57253109efe1e7bc3b7b90b177e11f55fbb (patch) | |
tree | 333de982b8cd24751e9a18bcf148b793cf93a3a1 /src | |
parent | 1f2942faaf00b22b58747d51c7b186a65f041606 (diff) | |
download | libnslayout-c58cc57253109efe1e7bc3b7b90b177e11f55fbb.tar.gz libnslayout-c58cc57253109efe1e7bc3b7b90b177e11f55fbb.tar.bz2 |
layout: Make the layout object opaque.
Diffstat (limited to 'src')
-rw-r--r-- | src/layout.c | 16 | ||||
-rw-r--r-- | 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 <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 |