Skip to content

Commit 9aa5dca

Browse files
committed
Remove CSS selector bindings from the Lexbor document
1 parent a20c0e9 commit 9aa5dca

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

ext/dom/lexbor/lexbor/html/interfaces/document.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ static lxb_html_document_css_custom_entry_t *
5858
lxb_html_document_css_customs_insert(lxb_html_document_t *document,
5959
const lxb_char_t *key, size_t length);
6060

61+
#if 0
6162
static lxb_status_t
6263
lxb_html_document_style_remove_by_rule_cb(lxb_dom_node_t *node,
6364
lxb_css_selector_specificity_t spec,
@@ -72,7 +73,6 @@ static lxb_status_t
7273
lxb_html_document_style_cb(lxb_dom_node_t *node,
7374
lxb_css_selector_specificity_t spec, void *ctx);
7475

75-
#if 0
7676
static lxb_status_t
7777
lxb_html_document_done(lxb_html_document_t *document);
7878
#endif
@@ -604,23 +604,30 @@ lxb_status_t
604604
lxb_html_document_style_attach(lxb_html_document_t *document,
605605
lxb_css_rule_style_t *style)
606606
{
607+
#if 0
607608
lxb_html_document_css_t *css = &document->css;
608609

609610
return lxb_selectors_find(css->selectors, lxb_dom_interface_node(document),
610611
style->selector, lxb_html_document_style_cb, style);
612+
#endif
613+
return LXB_STATUS_OK;
611614
}
612615

613616
lxb_status_t
614617
lxb_html_document_style_remove(lxb_html_document_t *document,
615618
lxb_css_rule_style_t *style)
616619
{
620+
#if 0
617621
lxb_html_document_css_t *css = &document->css;
618622

619623
return lxb_selectors_find(css->selectors, lxb_dom_interface_node(document),
620624
style->selector,
621625
lxb_html_document_style_remove_by_rule_cb, style);
626+
#endif
627+
return LXB_STATUS_OK;
622628
}
623629

630+
#if 0
624631
static lxb_status_t
625632
lxb_html_document_style_remove_by_rule_cb(lxb_dom_node_t *node,
626633
lxb_css_selector_specificity_t spec,
@@ -658,18 +665,23 @@ lxb_html_document_style_remove_avl_cb(lexbor_avl_t *avl,
658665
style, context->list);
659666
return LXB_STATUS_OK;
660667
}
668+
#endif
661669

662670
lxb_status_t
663671
lxb_html_document_style_attach_by_element(lxb_html_document_t *document,
664672
lxb_html_element_t *element,
665673
lxb_css_rule_style_t *style)
666674
{
675+
#if 0
667676
lxb_html_document_css_t *css = &document->css;
668677

669678
return lxb_selectors_find_reverse(css->selectors, lxb_dom_interface_node(element),
670679
style->selector, lxb_html_document_style_cb, style);
680+
#endif
681+
return LXB_STATUS_OK;
671682
}
672683

684+
#if 0
673685
static lxb_status_t
674686
lxb_html_document_style_cb(lxb_dom_node_t *node,
675687
lxb_css_selector_specificity_t spec, void *ctx)
@@ -685,6 +697,7 @@ lxb_html_document_style_cb(lxb_dom_node_t *node,
685697
return lxb_html_element_style_list_append(lxb_html_interface_element(node),
686698
style->declarations, spec);
687699
}
700+
#endif
688701

689702
lxb_html_document_t *
690703
lxb_html_document_destroy(lxb_html_document_t *document)

0 commit comments

Comments
 (0)