From 9d1482bc78d72ba330c2130170b49b4e18702623 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 8 Sep 2014 15:49:59 +0200 Subject: html: CSS lexer and parser. --- source/html/handler.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'source/html/handler.c') 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; } -- cgit v1.2.3