Skip to content

Commit 04299cc

Browse files
committed
Remove selectors.h
1 parent 6b30624 commit 04299cc

File tree

5 files changed

+2
-96
lines changed

5 files changed

+2
-96
lines changed

ext/dom/html5_parser.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "namespace_compat.h"
2525
#include <lexbor/html/parser.h>
2626
#include <lexbor/html/interfaces/element.h>
27+
#include <lexbor/dom/dom.h>
2728
#include <libxml/tree.h>
2829
#include <libxml/parserInternals.h>
2930
#include <libxml/HTMLtree.h>

ext/dom/lexbor/lexbor/css/rule.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,7 @@ lxb_css_rule_ref_dec_destroy(lxb_css_rule_t *rule)
344344
}
345345

346346
if (rule->ref_count == 0) {
347-
#if 0
348347
(void) lxb_css_rule_destroy(rule, true);
349-
#endif
350348
}
351349
}
352350

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ extern "C" {
2020
#include "lexbor/dom/interfaces/attr.h"
2121
#include "lexbor/dom/interfaces/document.h"
2222
#include "lexbor/css/css.h"
23-
#include "lexbor/selectors/selectors.h"
2423

2524

2625
typedef lxb_status_t
@@ -45,7 +44,6 @@ typedef struct {
4544
lxb_css_memory_t *memory;
4645
lxb_css_selectors_t *css_selectors;
4746
lxb_css_parser_t *parser;
48-
lxb_selectors_t *selectors;
4947

5048
lexbor_avl_t *styles;
5149
lexbor_array_t *stylesheets;

ext/dom/lexbor/lexbor/selectors/selectors.h

Lines changed: 0 additions & 76 deletions
This file was deleted.

ext/dom/lexbor/patches/0001-Patch-out-CSS-parser.patch

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,11 @@ Date: Wed, 23 Aug 2023 21:48:12 +0200
44
Subject: [PATCH] Patch out CSS parser
55

66
---
7-
source/lexbor/css/rule.h | 2 ++
87
source/lexbor/html/interfaces/document.c | 16 ++++++++++
98
source/lexbor/html/interfaces/element.c | 29 +++++++++++++++++++
109
source/lexbor/html/interfaces/style_element.c | 6 ++++
11-
4 files changed, 53 insertions(+)
10+
3 files changed, 51 insertions(+)
1211

13-
diff --git a/source/lexbor/css/rule.h b/source/lexbor/css/rule.h
14-
index 7cc4f0b..f68491e 100644
15-
--- a/source/lexbor/css/rule.h
16-
+++ b/source/lexbor/css/rule.h
17-
@@ -344,7 +344,9 @@ lxb_css_rule_ref_dec_destroy(lxb_css_rule_t *rule)
18-
}
19-
20-
if (rule->ref_count == 0) {
21-
+#if 0
22-
(void) lxb_css_rule_destroy(rule, true);
23-
+#endif
24-
}
25-
}
26-
2712
diff --git a/source/lexbor/html/interfaces/document.c b/source/lexbor/html/interfaces/document.c
2813
index 73184f0..b4de5b8 100755
2914
--- a/source/lexbor/html/interfaces/document.c

0 commit comments

Comments
 (0)