summaryrefslogtreecommitdiff
path: root/src/core/attr.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-02-15 18:40:41 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2012-02-15 18:40:41 +0000
commitefba2c176d1c683a0c4e802b8f925b468158e237 (patch)
treefb711979b924ca3ce8845a9feb088746f1211282 /src/core/attr.c
parentd06a756b9da4e6475e5ed5999df5ef0489a89d54 (diff)
downloadlibdom-efba2c176d1c683a0c4e802b8f925b468158e237.tar.gz
libdom-efba2c176d1c683a0c4e802b8f925b468158e237.tar.bz2
Reduce padding in dom_attr struct.
svn path=/trunk/libdom/; revision=13445
Diffstat (limited to 'src/core/attr.c')
-rw-r--r--src/core/attr.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/attr.c b/src/core/attr.c
index 6032eb9..9da6ae3 100644
--- a/src/core/attr.c
+++ b/src/core/attr.c
@@ -31,13 +31,8 @@ struct dom_element;
struct dom_attr {
struct dom_node_internal base; /**< Base node */
- bool specified; /**< Whether the attribute is specified
- * or default */
-
struct dom_type_info *schema_type_info; /**< Type information */
- bool is_id; /**< Whether this attribute is a ID attribute */
-
dom_attr_type type; /**< The type of this attribute */
union {
@@ -46,6 +41,10 @@ struct dom_attr {
bool bvalue;
} value; /**< The special type value of this attribute */
+ bool specified; /**< Whether the attribute is specified or default */
+
+ bool is_id; /**< Whether this attribute is a ID attribute */
+
bool read_only; /**< Whether this attribute is readonly */
};