Mercurial > MadButterfly
view include/mb_backend_utils.h @ 1299:6949e2b6cae2
Add unlink clone checker.
- Monitor changes of DOM-tree of the document
- Unlinking a clone is actually removing the clone and copying nodes
from the source.
- Copy value of ID of a node to saved_id to track source of copy
nodes.
- For a new node with 'saved_id' is a copy of another node.
- Copy vulae of 'saved_id' to 'ns0:duplicate-src' to keep the source
- Change value of 'saved_id' to the value of ID of the node for
later copying.
- For a new node without 'saved_id' is not a copy of another node.
- only set 'saved_id' to the value of its ID.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 16 Jan 2011 16:13:37 +0800 |
parents | 1a3cc22ee1bd |
children |
line wrap: on
line source
#ifndef __MB_BACKEND_UTILS_H_ #define __MB_BACKEND_UTILS_H_ #include "mb_backend.h" #include "mb_timer.h" /*! \brief A facotry of timer manager implemented with mb_tman_t. */ extern mb_timer_factory_t tman_timer_factory; extern mb_tman_t *tman_timer_man_get_tman(mb_timer_man_t *tm_man); #endif /* __MB_BACKEND_UTILS_H_ */