From 4e574f12527b241ea266a9fad21f6424a9af3a44 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 8 Oct 2011 00:21:59 +0000 Subject: Improve performance of style selection svn path=/trunk/netsurf/; revision=13000 --- render/parser_binding.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'render/parser_binding.h') diff --git a/render/parser_binding.h b/render/parser_binding.h index afab250eb..b60f5d048 100644 --- a/render/parser_binding.h +++ b/render/parser_binding.h @@ -31,7 +31,13 @@ struct form_control; * Private data attached to each DOM node */ typedef struct binding_private { + /* All the following only apply to ELEMENT nodes */ + struct box *box; /**< Root box if ELEMENT node, or NULL */ + lwc_string *localname; /**< Local name of node */ + lwc_string *id; /**< Value of id attribute, or NULL */ + lwc_string **classes; /**< Pre-parsed class names, or NULL */ + uint32_t nclasses; /**< Number of class names */ } binding_private; typedef enum binding_error { -- cgit v1.2.3