public void walkDomFragment(Node node, AbstractBehavior parentBehavior = null)
        {
            investigateNode(node, parentBehavior);

            //free this for GC when we are done, it has references to a lot of DOM elements
            this.extensionsToBeApplied = null;
        }
        public void walkDomChildren(Node parentNode, AbstractBehavior parentBehavior = null)
        {
            //The fact that we have two entry point into here walkChildren and walkDomFragment continues to screw us
            walkChildren(parentNode, parentBehavior);

            //free this for GC when we are done, it has references to a lot of DOM elements
            this.extensionsToBeApplied = null;
        }
示例#3
0
        public void walkChildren(Node parentNode, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior = null)
        {
            var node = parentNode.firstChild;

            while (node != null) {
                investigateNode(node, classBuilder, parentBehavior);
                node = node.nextSibling;
            }
        }
        public void investigateTextNode(Node textNode)
        {
            //We have a list of matches within the text node which tell us what we need to get
            //further we have the original node, which we need to preserve as there may be only parts getting translated
            //even though this is bad form <div>[labels.monkey] is a type of [labels.animal]</div> we still need to support it
            var result = getElementLocalizationComponents(textNode);

            if (result != null) {
                for ( int i=0; i<result.length;i++) {
                    requestTranslation( result[ i ], textNode );
                }

                scheduleTranslation();
            }
        }
示例#5
0
	public  int compareDocumentPosition(Node other) { return default(int); }
示例#6
0
 public RandoriApplication(Node rootNode)
 {
     this.rootNode = rootNode;
 }
示例#7
0
	public  bool isEqualNode(Node other) { return default(bool); }
示例#8
0
	public  XPathResult evaluate(string expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult) { return default(XPathResult); }
示例#9
0
	public short acceptNode(Node nodeArg) { return default(short); }
示例#10
0
	public  Node replaceChild(Node newChild, Node oldChild) { return default(Node); }
示例#11
0
	public  Node appendChild(Node newChild) { return default(Node); }
示例#12
0
	public  void importStylesheet(Node stylesheet) {}
示例#13
0
	public  DocumentFragment transformToFragment(Node source, Document docVal) { return default(DocumentFragment); }
示例#14
0
	public bool writeToURI(Node nodeArg, string uri) { return default(bool); }
示例#15
0
	public JsString writeToString(Node nodeArg) { return default(JsString); }
示例#16
0
	public bool write(Node nodeArg, LSOutput destination) { return default(bool); }
示例#17
0
	public  void observe(Node target, object options) {}
示例#18
0
	public Node parseWithContext(LSInput input, Node contextArg, short action) { return default(Node); }
示例#19
0
	public  bool contains(Node other) { return default(bool); }
示例#20
0
	public  Document transformToDocument(Node source) { return default(Document); }
示例#21
0
	public  Node insertBefore(Node newChild, Node refChild) { return default(Node); }
示例#22
0
        private void investigateNode(Node node, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior)
        {
            if (node.nodeType == Node.ELEMENT_NODE) {

                //Just an optimization, need to create constants for all of these things
                if (node.nodeName == "SCRIPT" || node.nodeName == "META") {
                    return;
                }

                if ( node.nodeName == "LINK" ) {
                    investigateLinkElement(node.As<HtmlLinkElement>());
                } else {
                    investigateDomElement(node.As<HtmlElement>(), classBuilder, parentBehavior);
                }

            } else if (node.nodeType == Node.TEXT_NODE) {
                //This is a text node, check to see if it needs internationalization
                localizationProvider.investigateTextNode(node);
            } else {
                walkChildren(node, classBuilder, parentBehavior);
            }
        }
示例#23
0
	public  Node removeChild(Node oldChild) { return default(Node); }
示例#24
0
	public object evaluate(string expression, Node contextNode, XPathNSResolver resolver, short type, object result) { return default(object); }
示例#25
0
	public  XPathNSResolver createNSResolver(Node nodeResolver) { return default(XPathNSResolver); }
示例#26
0
 public void walkDomFragment(Node node, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior = null)
 {
     investigateNode(node, classBuilder, parentBehavior);
 }
示例#27
0
		public static Range Get(Node node) { throw new NotImplementedException(); }
示例#28
0
	public  bool isSameNode(Node other) { return default(bool); }
示例#29
0
	public  XPathResult evaluate(Node contextNode, int type, XPathResult inResult) { return default(XPathResult); }
示例#30
0
 public void dirxml(Node node) { }