php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
body_element.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Alexander Borisov
3
*
4
* Author: Alexander Borisov <borisov@lexbor.com>
5
*/
6
7
#include "
lexbor/html/interfaces/body_element.h
"
8
#include "
lexbor/html/interfaces/document.h
"
9
10
11
lxb_html_body_element_t
*
12
lxb_html_body_element_interface_create
(
lxb_html_document_t
*document)
13
{
14
lxb_html_body_element_t
*element;
15
16
element =
lexbor_mraw_calloc
(document->
dom_document
.
mraw
,
17
sizeof
(
lxb_html_body_element_t
));
18
if
(element ==
NULL
) {
19
return
NULL
;
20
}
21
22
lxb_dom_node_t
*node =
lxb_dom_interface_node
(element);
23
24
node->
owner_document
=
lxb_html_document_original_ref
(document);
25
node->
type
=
LXB_DOM_NODE_TYPE_ELEMENT
;
26
27
return
element;
28
}
29
30
lxb_html_body_element_t
*
31
lxb_html_body_element_interface_destroy
(
lxb_html_body_element_t
*body_element)
32
{
33
(
void
)
lxb_dom_node_interface_destroy
(
lxb_dom_interface_node
(body_element));
34
return
NULL
;
35
}
lxb_html_body_element_interface_destroy
lxb_html_body_element_t * lxb_html_body_element_interface_destroy(lxb_html_body_element_t *body_element)
Definition
body_element.c:31
lxb_html_body_element_interface_create
lxb_html_body_element_t * lxb_html_body_element_interface_create(lxb_html_document_t *document)
Definition
body_element.c:12
body_element.h
lxb_dom_interface_node
#define lxb_dom_interface_node(obj)
Definition
interface.h:31
lxb_dom_node_t
struct lxb_dom_node lxb_dom_node_t
Definition
interface.h:38
LXB_DOM_NODE_TYPE_ELEMENT
@ LXB_DOM_NODE_TYPE_ELEMENT
Definition
node.h:25
NULL
#define NULL
Definition
gdcache.h:45
lxb_html_body_element_t
struct lxb_html_body_element lxb_html_body_element_t
Definition
interface.h:101
lxb_html_document_t
struct lxb_html_document lxb_html_document_t
Definition
interface.h:95
document.h
lxb_html_document_original_ref
lxb_inline lxb_dom_document_t * lxb_html_document_original_ref(lxb_html_document_t *document)
Definition
document.h:218
lxb_dom_node_interface_destroy
lxb_dom_node_t * lxb_dom_node_interface_destroy(lxb_dom_node_t *node)
Definition
node.c:124
lexbor_mraw_calloc
void * lexbor_mraw_calloc(lexbor_mraw_t *mraw, size_t size)
Definition
mraw.c:227
lxb_dom_document::mraw
lexbor_mraw_t * mraw
Definition
document.h:53
lxb_dom_node::owner_document
lxb_dom_document_t * owner_document
Definition
node.h:50
lxb_dom_node::type
lxb_dom_node_type_t type
Definition
node.h:59
lxb_html_document::dom_document
lxb_dom_document_t dom_document
Definition
document.h:58
void
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
ext
dom
lexbor
lexbor
html
interfaces
body_element.c
Generated on Sat Aug 23 2025 01:46:07 for php-internal-docs by
1.13.2