php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
window.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
9
10
13{
14 lxb_html_window_t *element;
15
16 element = lexbor_mraw_calloc(document->dom_document.mraw,
17 sizeof(lxb_html_window_t));
18 if (element == NULL) {
19 return NULL;
20 }
21
23
26
27 return element;
28}
29
32{
33 return lexbor_mraw_free(
34 lxb_dom_interface_node(window)->owner_document->mraw,
35 window);
36}
#define lxb_dom_interface_node(obj)
Definition interface.h:31
struct lxb_dom_node lxb_dom_node_t
Definition interface.h:38
@ LXB_DOM_NODE_TYPE_ELEMENT
Definition node.h:25
#define NULL
Definition gdcache.h:45
struct lxb_html_window lxb_html_window_t
Definition interface.h:167
struct lxb_html_document lxb_html_document_t
Definition interface.h:95
lxb_inline lxb_dom_document_t * lxb_html_document_original_ref(lxb_html_document_t *document)
Definition document.h:218
void * lexbor_mraw_free(lexbor_mraw_t *mraw, void *data)
Definition mraw.c:392
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
lxb_dom_document_t dom_document
Definition document.h:58
lxb_html_window_t * lxb_html_window_create(lxb_html_document_t *document)
Definition window.c:12
lxb_html_window_t * lxb_html_window_destroy(lxb_html_window_t *window)
Definition window.c:31