Home
last modified time | relevance | path

Searched refs:selectors (Results 1 – 23 of 23) sorted by relevance

/php-src/ext/dom/lexbor/lexbor/css/selectors/
H A Dselectors.c88 if (selectors == NULL) { in lxb_css_selectors_init()
92 selectors->list = NULL; in lxb_css_selectors_init()
97 selectors->error = 0; in lxb_css_selectors_init()
107 if (selectors != NULL) { in lxb_css_selectors_clean()
122 if (selectors == NULL) { in lxb_css_selectors_destroy()
130 return selectors; in lxb_css_selectors_destroy()
192 parser->selectors = selectors; in lxb_css_selectors_parse_prepare()
240 selectors = parser->selectors; in lxb_css_selectors_parse_list()
260 if (selectors != parser->selectors) { in lxb_css_selectors_parse_list()
285 if (selectors != parser->selectors) { in lxb_css_selectors_parse_list()
[all …]
H A Dstate.c731 selectors = parser->selectors; in lxb_css_selectors_state_compound_handler()
1060 selectors = parser->selectors; in lxb_css_selectors_state_hash()
1097 selectors = parser->selectors; in lxb_css_selectors_state_class()
1121 selectors = parser->selectors; in lxb_css_selectors_state_element_ns()
1154 selectors = parser->selectors; in lxb_css_selectors_state_element()
1180 selectors = parser->selectors; in lxb_css_selectors_state_attribute()
1401 selectors = parser->selectors; in lxb_css_selectors_state_ns_ident()
1451 selectors = parser->selectors; in lxb_css_selectors_state_pseudo_class()
1517 selectors = parser->selectors; in lxb_css_selectors_state_pseudo_class_function()
1587 selectors = parser->selectors; in lxb_css_selectors_state_pseudo_element()
[all …]
H A Dpseudo_state.c49 parser->selectors->list = NULL; in lxb_css_selectors_state_pseudo_anb_begin()
68 parser->selectors->list = NULL; in lxb_css_selectors_state_pseudo_class_function_current()
87 parser->selectors->list = NULL; in lxb_css_selectors_state_pseudo_class_function_has()
99 parser->selectors->list = NULL; in lxb_css_selectors_state_pseudo_class_function_is()
118 parser->selectors->list = NULL; in lxb_css_selectors_state_pseudo_class_function_not()
194 selectors = parser->selectors; in lxb_css_selectors_state_pseudo_anb()
208 list = selectors->list_last; in lxb_css_selectors_state_pseudo_anb()
228 selectors = parser->selectors; in lxb_css_selectors_state_pseudo_of_begin()
232 selectors->list = NULL; in lxb_css_selectors_state_pseudo_of_begin()
249 list = selectors->list_last; in lxb_css_selectors_state_pseudo_of_begin()
[all …]
H A Dselectors.h43 lxb_css_selectors_init(lxb_css_selectors_t *selectors);
46 lxb_css_selectors_clean(lxb_css_selectors_t *selectors);
91 lxb_css_selectors_append_next(lxb_css_selectors_t *selectors, in lxb_css_selectors_append_next() argument
94 if (selectors->list_last->last != NULL) { in lxb_css_selectors_append_next()
98 selectors->list_last->first = selector; in lxb_css_selectors_append_next()
101 selectors->list_last->last = selector; in lxb_css_selectors_append_next()
105 lxb_css_selectors_list_append_next(lxb_css_selectors_t *selectors, in lxb_css_selectors_list_append_next() argument
108 if (selectors->list_last != NULL) { in lxb_css_selectors_list_append_next()
109 lxb_css_selector_list_append_next(selectors->list_last, list); in lxb_css_selectors_list_append_next()
112 selectors->list = list; in lxb_css_selectors_list_append_next()
[all …]
H A Dselector.c196 lxb_css_selector_list_selectors_remove(lxb_css_selectors_t *selectors, in lxb_css_selector_list_selectors_remove() argument
201 if (selectors->list == list) { in lxb_css_selector_list_selectors_remove()
202 selectors->list = list->next; in lxb_css_selector_list_selectors_remove()
205 if (selectors->list_last == list) { in lxb_css_selector_list_selectors_remove()
206 selectors->list_last = list->prev; in lxb_css_selector_list_selectors_remove()
H A Dselector.h199 lxb_css_selector_list_selectors_remove(lxb_css_selectors_t *selectors,
/php-src/ext/dom/lexbor/lexbor/selectors/
H A Dselectors.c124 if (selectors == NULL) { in lxb_selectors_init()
161 selectors->objs = lexbor_dobject_destroy(selectors->objs, true); in lxb_selectors_destroy()
162 selectors->nested = lexbor_dobject_destroy(selectors->nested, true); in lxb_selectors_destroy()
168 return selectors; in lxb_selectors_destroy()
408 entry = selectors->state(selectors, entry); in lxb_selectors_state_run()
416 selectors->state = selectors->current->return_state; in lxb_selectors_state_run()
692 selectors->current = selectors->current->parent; in lxb_selectors_state_pseudo_class_function()
774 selectors->current = selectors->current->parent; in lxb_selectors_state_pseudo_class_function()
873 selectors->current = selectors->current->parent; in lxb_selectors_state_after_find_has()
942 selectors->current = selectors->current->parent; in lxb_selectors_state_after_find_has()
[all …]
H A Dselectors.h70 (*lxb_selectors_state_cb_f)(lxb_selectors_t *selectors,
130 lxb_selectors_init(lxb_selectors_t *selectors);
142 lxb_selectors_clean(lxb_selectors_t *selectors);
156 lxb_selectors_destroy(lxb_selectors_t *selectors, bool self_destroy);
182 lxb_selectors_find(lxb_selectors_t *selectors, lxb_dom_node_t *root,
213 lxb_selectors_match_node(lxb_selectors_t *selectors, lxb_dom_node_t *node,
239 lxb_selectors_opt_set(lxb_selectors_t *selectors, lxb_selectors_opt_t opt) in lxb_selectors_opt_set() argument
241 selectors->options = opt; in lxb_selectors_opt_set()
255 lxb_selectors_selector(const lxb_selectors_t *selectors) in lxb_selectors_selector() argument
257 return selectors->current->entry->selector->list; in lxb_selectors_selector()
[all …]
/php-src/ext/dom/lexbor/lexbor/selectors-adapted/
H A Dselectors.c245 selectors->objs = lexbor_dobject_destroy(selectors->objs, true); in lxb_selectors_destroy()
246 selectors->nested = lexbor_dobject_destroy(selectors->nested, true); in lxb_selectors_destroy()
471 selectors->first = entry; in lxb_selectors_state_run()
476 entry = selectors->state(selectors, entry); in lxb_selectors_state_run()
484 selectors->state = selectors->current->return_state; in lxb_selectors_state_run()
489 return selectors->status; in lxb_selectors_state_run()
744 selectors->current = selectors->current->parent; in lxb_selectors_state_pseudo_class_function()
826 selectors->current = selectors->current->parent; in lxb_selectors_state_pseudo_class_function()
925 selectors->current = selectors->current->parent; in lxb_selectors_state_after_find_has()
994 selectors->current = selectors->current->parent; in lxb_selectors_state_after_find_has()
[all …]
H A Dselectors.h75 (*lxb_selectors_state_cb_f)(lxb_selectors_t *selectors,
132 lxb_selectors_init(lxb_selectors_t *selectors);
144 lxb_selectors_clean(lxb_selectors_t *selectors);
155 lxb_selectors_destroy(lxb_selectors_t *selectors);
181 lxb_selectors_find(lxb_selectors_t *selectors, const xmlNode *root,
212 lxb_selectors_match_node(lxb_selectors_t *selectors, const xmlNode *node,
229 lxb_selectors_opt_set(lxb_selectors_t *selectors, lxb_selectors_opt_t opt) in lxb_selectors_opt_set() argument
231 selectors->options = opt; in lxb_selectors_opt_set()
245 lxb_selectors_selector(const lxb_selectors_t *selectors) in lxb_selectors_selector() argument
247 return selectors->current->entry->selector->list; in lxb_selectors_selector()
/php-src/ext/dom/parentnode/
H A Dcss_selectors.c76 lxb_selectors_t *selectors, in dom_parse_selector() argument
88 memset(selectors, 0, sizeof(lxb_selectors_t)); in dom_parse_selector()
89 status = lxb_selectors_init(selectors); in dom_parse_selector()
122 lxb_selectors_destroy(selectors); in dom_selector_cleanup()
138 lxb_selectors_t selectors; in dom_query_selector_common() local
144 status = lxb_selectors_find(&selectors, root, list, cb, ctx); in dom_query_selector_common()
148 dom_selector_cleanup(&parser, &selectors, list); in dom_query_selector_common()
163 lxb_selectors_t selectors; in dom_query_matches() local
173 dom_selector_cleanup(&parser, &selectors, list); in dom_query_matches()
187 lxb_selectors_t selectors; in dom_query_closest() local
[all …]
/php-src/ext/dom/
H A Dconfig.m433 $LEXBOR_DIR/css/selectors/pseudo_state.c
34 $LEXBOR_DIR/css/selectors/pseudo.c
35 $LEXBOR_DIR/css/selectors/selector.c
36 $LEXBOR_DIR/css/selectors/selectors.c
37 $LEXBOR_DIR/css/selectors/state.c
187 $LEXBOR_DIR/selectors-adapted/selectors.c
233 $ext_builddir/$LEXBOR_DIR/css/selectors
243 $ext_builddir/$LEXBOR_DIR/selectors-adapted
H A Dconfig.w3232 ADD_SOURCES("ext/dom/lexbor/lexbor/selectors-adapted", "selectors.c", "dom");
34 …ADD_SOURCES("ext/dom/lexbor/lexbor/css/selectors", "state.c selectors.c selector.c pseudo_state.c …
H A Dphp_dom.stub.php1330 public function querySelector(string $selectors): ?Element; argument
1331 public function querySelectorAll(string $selectors): NodeList; argument
1684 public function querySelector(string $selectors): ?Element {} argument
1685 public function querySelectorAll(string $selectors): NodeList {} argument
1686 public function closest(string $selectors): ?Element {} argument
1687 public function matches(string $selectors): bool {} argument
1892 public function querySelector(string $selectors): ?Element {} argument
1894 public function querySelectorAll(string $selectors): NodeList {} argument
2024 public function querySelector(string $selectors): ?Element {} argument
2026 public function querySelectorAll(string $selectors): NodeList {} argument
H A Dphp_dom_arginfo.h542 ZEND_ARG_TYPE_INFO(0, selectors, IS_STRING, 0)
546 ZEND_ARG_TYPE_INFO(0, selectors, IS_STRING, 0)
830 ZEND_ARG_TYPE_INFO(0, selectors, IS_STRING, 0)
/php-src/ext/dom/lexbor/lexbor/css/
H A Dparser.h137 lxb_css_selectors_t *selectors; member
276 return parser->selectors; in lxb_css_parser_selectors()
281 lxb_css_selectors_t *selectors) in lxb_css_parser_selectors_set() argument
283 parser->selectors = selectors; in lxb_css_parser_selectors_set()
H A Dparser.c310 static const char selectors[] = "Selectors"; in lxb_css_parser_unexpected_data() local
313 if (lxb_css_syntax_token_error(parser, token, selectors) == NULL) { in lxb_css_parser_unexpected_data()
324 static const char selectors[] = "Selectors"; in lxb_css_parser_unexpected_data_status() local
327 if (lxb_css_syntax_token_error(parser, token, selectors) == NULL) { in lxb_css_parser_unexpected_data_status()
H A Dstylesheet.h40 lxb_css_selectors_t *selectors);
H A Drule.h87 lexbor_str_t selectors; member
/php-src/ext/dom/lexbor/patches/
H A D0006-Patch-out-unused-CSS-style-code.patch125 return lxb_selectors_find(css->selectors, lxb_dom_interface_node(document),
138 return lxb_selectors_find(css->selectors, lxb_dom_interface_node(document),
163 return lxb_selectors_match_node(css->selectors,
223 -#include "lexbor/selectors/selectors.h"
231 - lxb_selectors_t *selectors;
/php-src/ext/dom/lexbor/lexbor/html/interfaces/
H A Ddocument.c241 css->selectors = lxb_selectors_create();
242 status = lxb_selectors_init(css->selectors);
304 css->selectors = lxb_selectors_destroy(css->selectors, true);
336 lxb_selectors_clean(css->selectors);
610 return lxb_selectors_find(css->selectors, lxb_dom_interface_node(document), in lxb_html_document_style_attach()
623 return lxb_selectors_find(css->selectors, lxb_dom_interface_node(document), in lxb_html_document_style_remove()
688 return lxb_selectors_match_node(css->selectors, in lxb_html_document_style_attach_by_element()
/php-src/ext/dom/tests/modern/css_selectors/
H A Dcombinators.phpt113 Dom\Document::querySelectorAll(): Argument #1 ($selectors) contains an unsupported selector
/php-src/ext/mbstring/tests/data/
H A DEmojiSources.txt34 # in these mappings do not include variation selectors for emoji presentation.

Completed in 73 milliseconds