From 2d7ea5dac53b007be9ff4238b67cd0ed4d2bea20 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 3 Nov 2012 19:12:10 +0000 Subject: Ensure we memoise all the strings used in the core event dispatch --- src/core/document.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/document.h') 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 */ -- cgit v1.2.3