summaryrefslogtreecommitdiff
path: root/content/handlers/html/box.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/html/box.h')
-rw-r--r--content/handlers/html/box.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/handlers/html/box.h b/content/handlers/html/box.h
index 0952b841b..6939cfe1a 100644
--- a/content/handlers/html/box.h
+++ b/content/handlers/html/box.h
@@ -377,4 +377,12 @@ static inline bool box_is_first_child(struct box *b)
return (b->parent == NULL || b == b->parent->children);
}
+/**
+ * Retrieve the box for a dom node, if there is one
+ *
+ * \param node The DOM node
+ * \return The box if there is one
+ */
+struct box *box_for_node(struct dom_node *node);
+
#endif