/* browser_html: a small tolerant HTML tree + CSS cascade for the browser. * * Freestanding and independent of ngui: it parses a byte buffer into a static * node/string arena and resolves the subset of CSS the browser understands. * One document is live at a time (the browser is single-threaded). */ #ifndef BROWSER_HTML_H #define BROWSER_HTML_H #include "cursor_abi.h" #define BR_CURSOR_AUTO 0 #define BR_MAX_NODES 16384 /* CSS transitions the engine animates (br_style.tr_mask). */ #define BR_TR_OPACITY 1 #define BR_TR_TRANSFORM 2 #define BR_EASE_LINEAR 0 #define BR_EASE_EASE 1 #define BR_EASE_IN 2 #define BR_EASE_OUT 3 #define BR_EASE_IN_OUT 4 #define BR_TEXT_SIZE 524288 #define BR_ATTR_SIZE 4194304 #define BR_CSS_SIZE 262144 /* inline