php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
document_fragment.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2021 Alexander Borisov
3 *
4 * Author: Alexander Borisov <borisov@lexbor.com>
5 */
6
9
10
13{
15
16 element = lexbor_mraw_calloc(document->mraw,
18 if (element == NULL) {
19 return NULL;
20 }
21
23
24 node->owner_document = lxb_dom_document_owner(document);
26
27 return element;
28}
29
lxb_dom_document_fragment_t * lxb_dom_document_fragment_interface_destroy(lxb_dom_document_fragment_t *document_fragment)
lxb_dom_document_fragment_t * lxb_dom_document_fragment_interface_create(lxb_dom_document_t *document)
struct lxb_dom_document_fragment lxb_dom_document_fragment_t
Definition interface.h:43
struct lxb_dom_document lxb_dom_document_t
Definition interface.h:41
#define lxb_dom_interface_node(obj)
Definition interface.h:31
struct lxb_dom_node lxb_dom_node_t
Definition interface.h:38
lxb_inline lxb_dom_document_t * lxb_dom_document_owner(lxb_dom_document_t *document)
Definition document.h:198
@ LXB_DOM_NODE_TYPE_DOCUMENT_FRAGMENT
Definition node.h:35
#define NULL
Definition gdcache.h:45
lxb_dom_node_t * lxb_dom_node_interface_destroy(lxb_dom_node_t *node)
Definition node.c:124
void * lexbor_mraw_calloc(lexbor_mraw_t *mraw, size_t size)
Definition mraw.c:227
lexbor_mraw_t * mraw
Definition document.h:53
lxb_dom_document_t * owner_document
Definition node.h:50
lxb_dom_node_type_t type
Definition node.h:59
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)