summaryrefslogtreecommitdiff
path: root/src/core/document.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-03 19:12:10 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-11-03 19:12:10 +0000
commit45048d167c9f1e9ca31317ce19a3e9ca23968d07 (patch)
tree43327263ed97ffd148c8cb74c13ef661102ad877 /src/core/document.h
parent9874c9759fc95f12f3b0246a4f4ef7bce6e5fcf9 (diff)
downloadlibdom-45048d167c9f1e9ca31317ce19a3e9ca23968d07.tar.gz
libdom-45048d167c9f1e9ca31317ce19a3e9ca23968d07.tar.bz2
Ensure we memoise all the strings used in the core event dispatch
Diffstat (limited to 'src/core/document.h')
-rw-r--r--src/core/document.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/document.h b/src/core/document.h
index 6cf1f91..89635ff 100644
--- a/src/core/document.h
+++ b/src/core/document.h
@@ -59,6 +59,15 @@ struct dom_document {
dom_document_quirks_mode quirks;
/**< Document is in quirks mode */
dom_string *_memo_empty; /**< The string ''. */
+
+ /* Memoised event strings */
+ dom_string *_memo_domnodeinserted; /**< DOMNodeInserted */
+ dom_string *_memo_domnoderemoved; /**< DOMNodeRemoved */
+ dom_string *_memo_domnodeinsertedintodocument; /**< DOMNodeInsertedIntoDocument */
+ dom_string *_memo_domnoderemovedfromdocument; /**< DOMNodeRemovedFromDocument */
+ dom_string *_memo_domattrmodified; /**< DOMAttrModified */
+ dom_string *_memo_domcharacterdatamodified; /**< DOMCharacterDataModified */
+ dom_string *_memo_domsubtreemodified; /**< DOMSubtreeModified */
};
/* Create a DOM document */