diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-09-08 15:49:59 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:51 +0100 |
commit | 9d1482bc78d72ba330c2130170b49b4e18702623 (patch) | |
tree | e7f87a3266419e7bb238095e3fa146953dcb9e28 /source/html/handler.c | |
parent | 4b8638cfa35ecacf7418ec8933f971577652bb79 (diff) | |
download | mupdf-9d1482bc78d72ba330c2130170b49b4e18702623.tar.xz |
html: CSS lexer and parser.
Diffstat (limited to 'source/html/handler.c')
-rw-r--r-- | source/html/handler.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/html/handler.c b/source/html/handler.c index 39d5e9c9..77b362d3 100644 --- a/source/html/handler.c +++ b/source/html/handler.c @@ -1,12 +1,5 @@ #include "mupdf/html.h" -struct html_document_s -{ - fz_document super; - fz_context *ctx; - fz_xml *root; -}; - struct html_page_s { }; @@ -28,7 +21,7 @@ html_page * html_load_page(html_document *doc, int number) { printf("html: load page %d\n", number); - return NULL; + return "nothing"; } void @@ -74,6 +67,8 @@ html_open_document_with_stream(fz_context *ctx, fz_stream *file) doc->super.run_page_contents = (void*)html_run_page; doc->super.free_page = (void*)html_free_page; + html_layout_document(doc, 400, 600); + return doc; } |