diff pyink/domview_ui.py @ 1253:07e0cb1e051d

Add class consistency_checker for domview_ui. - consistency_checker is to check consistency of the DOM-tree associated with a domview_ui. - It is so closed to domview_ui, so it may access private variables. - But, it uses public interface of domview_ui if possible. - consistency_checker is not integrated to domview_ui for separating functions of consistency checking from the domview_ui. It collects relative logic into a place and setups a boundary from others.
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 11 Jan 2011 11:43:32 +0800
parents 71222a6b4c06
children 2609b219703d
line wrap: on
line diff
--- a/pyink/domview_ui.py	Tue Jan 11 10:36:39 2011 +0800
+++ b/pyink/domview_ui.py	Tue Jan 11 11:43:32 2011 +0800
@@ -2,7 +2,7 @@
 from tween import TweenObject
 from frameline import frameline, frameruler
 from domview import domview
-
+import consistency
 
 ## \brief Maintain a stack of frameline UI component.
 #
@@ -361,6 +361,7 @@
 	self._dom = domview()
         self._doc = None
         self._root = None
+        self._consistency_checker = consistency.consistency_checker(self)
         self._lock = False
 	pass
 
@@ -409,6 +410,7 @@
 
         self._doc = doc
         self._root = root
+        self._consistency_checker.handle_doc_root(doc, root)
 	pass
 
     ## \brief Mark given frame as a key frame.