diff options
author | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-12 16:17:12 +0100 |
---|---|---|
committer | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2019-05-12 16:23:27 +0100 |
commit | 4989d72549b53f751d2999a771e0bc6737015810 (patch) | |
tree | 744c15bc5403563cc11be3ad1af94a2447b523f2 /src/select/computed.h | |
parent | d09f33131b8079f3886e0827cf458e1fc2c7f2d6 (diff) | |
download | libcss-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/computed.h')
-rw-r--r-- | src/select/computed.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/select/computed.h b/src/select/computed.h index d59fbe3..c926cec 100644 --- a/src/select/computed.h +++ b/src/select/computed.h @@ -24,10 +24,6 @@ static inline css_computed_style * css__computed_style_ref( if (style == NULL) return NULL; - if (style->i.uncommon != NULL) { - style->i.uncommon->count++; - } - style->count++; return style; } @@ -37,9 +33,6 @@ css_error css__computed_style_create(css_computed_style **result); css_error css__computed_style_initialise(css_computed_style *style, struct css_select_handler *handler, void *pw); - -css_error css__computed_uncommon_destroy(css_computed_uncommon *uncommon); - css_error css__compute_absolute_values(const css_computed_style *parent, css_computed_style *style, css_error (*compute_font_size)(void *pw, |