summaryrefslogtreecommitdiff
path: root/src/select/select_generator.py
diff options
context:
space:
mode:
authorMichael Drake <Michael Drake tlsa@netsurf-browser.org>2019-05-12 16:17:12 +0100
committerMichael Drake <Michael Drake tlsa@netsurf-browser.org>2019-05-12 16:23:27 +0100
commit4989d72549b53f751d2999a771e0bc6737015810 (patch)
tree744c15bc5403563cc11be3ad1af94a2447b523f2 /src/select/select_generator.py
parentd09f33131b8079f3886e0827cf458e1fc2c7f2d6 (diff)
downloadlibcss-4989d72549b53f751d2999a771e0bc6737015810.tar.gz
libcss-4989d72549b53f751d2999a771e0bc6737015810.tar.bz2
Computed styles: Drop uncommon extension blocks.
They were a space saving feature, but they became largely redundant with computed style sharing. They also made the code complex and buggy in many places. E.g. the cascade, inheritance / composition, and intial values all needed to behave corretly when they, or their parent, had or didn't have an uncommon block. Also, only the uncommon block was really used. Fixes: https://bugs.netsurf-browser.org/mantis/view.php?id=2641
Diffstat (limited to 'src/select/select_generator.py')
-rw-r--r--src/select/select_generator.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/select/select_generator.py b/src/select/select_generator.py
index 4de99cb..7427a88 100644
--- a/src/select/select_generator.py
+++ b/src/select/select_generator.py
@@ -512,9 +512,6 @@ class CSSGroup:
t.append(self.make_value_declaration(for_commented=True))
t.append()
- if self.name is 'style':
- t.append('css_computed_page *page;')
-
t.append('struct css_computed_' + self.name + ' *next;')
t.append('uint32_t count;')
t.append('uint32_t bin;')