Changeset 20986 for lang/cplusplus/llv8call/trunk/ext/libxml/document.cc
- Timestamp:
- 10/08/08 23:10:24 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/libxml/document.cc
r20949 r20986 35 35 doc->encoding = (const xmlChar*)xmlStrdup((const xmlChar*)*encoding); 36 36 } 37 Handle<Object> t = document_class()->NewInstance(); 38 t->SetInternalField(0, External::New(doc)); 39 t->SetInternalField(1, External::New(xmlNewDocFragment(doc))); 40 return t; 37 return createDocument(doc); 41 38 END 42 39 … … 80 77 xmlNodePtr node_raw = xmlDocGetRootElement(doc); 81 78 assert(node_raw); 82 return create Elem(doc, node_raw );79 return createObject( "Element", doc, node_raw ); 83 80 END 84 81 … … 109 106 assert(node_raw); 110 107 xmlAddChild(fragment, node_raw); 111 return create Elem(doc, node_raw );108 return createObject( "Element", doc, node_raw ); 112 109 END 113 110 … … 121 118 assert(node_raw); 122 119 xmlAddChild(fragment, node_raw); 123 return create CDATA(doc, node_raw );120 return createObject( "CDATASection", doc, node_raw ); 124 121 END 125 122 … … 132 129 133 130 xmlAttrPtr attr = xmlNewDocProp(doc, (const xmlChar*)*name, args.Length() == 2 ? (const xmlChar*)*value : NULL); 134 return create Attr(doc,attr);131 return createObject("Attr", doc, (xmlNodePtr)attr); 135 132 END 136 133 … … 145 142 textnode->doc = doc; 146 143 xmlAddChild(fragment, textnode); 147 return createNode( doc, textnode );144 return CREATE_NODE( doc, textnode ); 148 145 END 149 146 … … 158 155 textnode->doc = doc; 159 156 xmlAddChild(fragment, textnode); 160 return createNode( doc, textnode );157 return CREATE_NODE( doc, textnode ); 161 158 END 162 159
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)