@@ -58,6 +58,7 @@ static lxb_html_document_css_custom_entry_t *
58
58
lxb_html_document_css_customs_insert (lxb_html_document_t * document ,
59
59
const lxb_char_t * key , size_t length );
60
60
61
+ #if 0
61
62
static lxb_status_t
62
63
lxb_html_document_style_remove_by_rule_cb (lxb_dom_node_t * node ,
63
64
lxb_css_selector_specificity_t spec ,
@@ -72,7 +73,6 @@ static lxb_status_t
72
73
lxb_html_document_style_cb (lxb_dom_node_t * node ,
73
74
lxb_css_selector_specificity_t spec , void * ctx );
74
75
75
- #if 0
76
76
static lxb_status_t
77
77
lxb_html_document_done (lxb_html_document_t * document );
78
78
#endif
@@ -604,23 +604,30 @@ lxb_status_t
604
604
lxb_html_document_style_attach (lxb_html_document_t * document ,
605
605
lxb_css_rule_style_t * style )
606
606
{
607
+ #if 0
607
608
lxb_html_document_css_t * css = & document -> css ;
608
609
609
610
return lxb_selectors_find (css -> selectors , lxb_dom_interface_node (document ),
610
611
style -> selector , lxb_html_document_style_cb , style );
612
+ #endif
613
+ return LXB_STATUS_OK ;
611
614
}
612
615
613
616
lxb_status_t
614
617
lxb_html_document_style_remove (lxb_html_document_t * document ,
615
618
lxb_css_rule_style_t * style )
616
619
{
620
+ #if 0
617
621
lxb_html_document_css_t * css = & document -> css ;
618
622
619
623
return lxb_selectors_find (css -> selectors , lxb_dom_interface_node (document ),
620
624
style -> selector ,
621
625
lxb_html_document_style_remove_by_rule_cb , style );
626
+ #endif
627
+ return LXB_STATUS_OK ;
622
628
}
623
629
630
+ #if 0
624
631
static lxb_status_t
625
632
lxb_html_document_style_remove_by_rule_cb (lxb_dom_node_t * node ,
626
633
lxb_css_selector_specificity_t spec ,
@@ -658,18 +665,23 @@ lxb_html_document_style_remove_avl_cb(lexbor_avl_t *avl,
658
665
style , context -> list );
659
666
return LXB_STATUS_OK ;
660
667
}
668
+ #endif
661
669
662
670
lxb_status_t
663
671
lxb_html_document_style_attach_by_element (lxb_html_document_t * document ,
664
672
lxb_html_element_t * element ,
665
673
lxb_css_rule_style_t * style )
666
674
{
675
+ #if 0
667
676
lxb_html_document_css_t * css = & document -> css ;
668
677
669
678
return lxb_selectors_find_reverse (css -> selectors , lxb_dom_interface_node (element ),
670
679
style -> selector , lxb_html_document_style_cb , style );
680
+ #endif
681
+ return LXB_STATUS_OK ;
671
682
}
672
683
684
+ #if 0
673
685
static lxb_status_t
674
686
lxb_html_document_style_cb (lxb_dom_node_t * node ,
675
687
lxb_css_selector_specificity_t spec , void * ctx )
@@ -685,6 +697,7 @@ lxb_html_document_style_cb(lxb_dom_node_t *node,
685
697
return lxb_html_element_style_list_append (lxb_html_interface_element (node ),
686
698
style -> declarations , spec );
687
699
}
700
+ #endif
688
701
689
702
lxb_html_document_t *
690
703
lxb_html_document_destroy (lxb_html_document_t * document )
0 commit comments