Lines Matching defs:node
71 // Drop an empty text node.
78 std::unique_ptr<Node> node) {
79 node->line_number = XML_GetCurrentLineNumber(parser);
80 node->column_number = XML_GetCurrentColumnNumber(parser);
82 Node* this_node = node.get();
84 stack->node_stack.top()->AppendChild(std::move(node));
86 stack->root = std::move(node);
169 // See if we can just append the text to a previous text node.
283 std::unique_ptr<Namespace> node = util::make_unique<Namespace>();
287 node->namespace_prefix = util::Utf16ToUtf8(StringPiece16(str16, len));
292 node->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len));
294 new_node = std::move(node);
299 std::unique_ptr<Element> node = util::make_unique<Element>();
303 node->namespace_uri = util::Utf16ToUtf8(StringPiece16(str16, len));
308 node->name = util::Utf16ToUtf8(StringPiece16(str16, len));
311 CopyAttributes(node.get(), &tree, &string_pool);
313 new_node = std::move(node);
318 std::unique_ptr<Text> node = util::make_unique<Text>();
322 node->text = util::Utf16ToUtf8(StringPiece16(str16, len));
324 new_node = std::move(node);
344 CHECK(node_stack.empty()) << "node stack should be empty";
347 CHECK(!node_stack.empty()) << "node stack should not be empty";
377 Element* FindRootElement(Node* node) {
378 if (!node) {
383 while ((el = NodeCast<Element>(node)) == nullptr) {
384 if (node->children.empty()) {
389 node = node->children.front().get();