summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-02 20:10:32 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-02 20:10:32 +0000
commitad343eccb18454bab2f4e9464b88564c9da69649 (patch)
treea4d775a8e99e7d98dcfabdcdde7e6ad0dfd7368b /render
parentf2cda2e1a707033ac582e791c45eeb3d0feaa70d (diff)
downloadnetsurf-ad343eccb18454bab2f4e9464b88564c9da69649.tar.gz
netsurf-ad343eccb18454bab2f4e9464b88564c9da69649.tar.bz2
remove unecessary utils/types.h
This cleans up this header and moves the functionality into more useful places while reducing the include complexity but only pulling in whats required.
Diffstat (limited to 'render')
-rw-r--r--render/box.h17
-rw-r--r--render/form.h2
2 files changed, 10 insertions, 9 deletions
diff --git a/render/box.h b/render/box.h
index 988b2872c..8e5aef8f5 100644
--- a/render/box.h
+++ b/render/box.h
@@ -91,8 +91,6 @@
#include <stdio.h>
#include "css/css.h"
-#include "utils/nsurl.h"
-#include "utils/types.h"
struct content;
struct box;
@@ -101,8 +99,9 @@ struct column;
struct object_params;
struct object_param;
struct html_content;
-
+struct nsurl;
struct dom_node;
+struct rect;
#define UNKNOWN_WIDTH INT_MAX
#define UNKNOWN_MAX_WIDTH INT_MAX
@@ -216,7 +215,7 @@ struct box {
/** Width of space after current text (depends on font and size). */
int space;
- nsurl *href; /**< Link, or 0. */
+ struct nsurl *href; /**< Link, or 0. */
const char *target; /**< Link target, or 0. */
const char *title; /**< Title, or 0. */
@@ -289,11 +288,11 @@ struct column {
/** Parameters for object element and similar elements. */
struct object_params {
- nsurl *data;
+ struct nsurl *data;
char *type;
char *codetype;
- nsurl *codebase;
- nsurl *classid;
+ struct nsurl *codebase;
+ struct nsurl *classid;
struct object_param *params;
};
@@ -316,7 +315,7 @@ extern const char *TARGET_BLANK;
struct box * box_create(css_select_results *styles, css_computed_style *style,
- bool style_owned, nsurl *href, const char *target,
+ bool style_owned, struct nsurl *href, const char *target,
const char *title, lwc_string *id, void *context);
void box_add_child(struct box *parent, struct box *child);
void box_insert_sibling(struct box *box, struct box *new_box);
@@ -332,7 +331,7 @@ struct box *box_pick_text_box(struct html_content *html,
struct box *box_find_by_id(struct box *box, lwc_string *id);
bool box_visible(struct box *box);
void box_dump(FILE *stream, struct box *box, unsigned int depth, bool style);
-bool box_extract_link(const char *rel, nsurl *base, nsurl **result);
+bool box_extract_link(const char *rel, struct nsurl *base, struct nsurl **result);
bool box_handle_scrollbars(struct content *c, struct box *box,
bool bottom, bool right);
diff --git a/render/form.h b/render/form.h
index 31efb7c43..77356dabd 100644
--- a/render/form.h
+++ b/render/form.h
@@ -36,6 +36,8 @@ struct dom_string;
struct content;
struct nsurl;
struct fetch_multipart_data;
+struct redraw_context;
+
enum browser_mouse_state;
/** Form submit method. */