From 4989d72549b53f751d2999a771e0bc6737015810 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 12 May 2019 16:17:12 +0100 Subject: 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 --- src/select/arena.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/select/arena.h') diff --git a/src/select/arena.h b/src/select/arena.h index af06050..5da5a5d 100644 --- a/src/select/arena.h +++ b/src/select/arena.h @@ -10,7 +10,6 @@ #define css_select_arena_h_ struct css_computed_style; -struct css_computed_uncommon; /* * Add computed style to the style sharing arena, or exchange for existing @@ -32,14 +31,5 @@ enum css_error css__arena_intern_style(struct css_computed_style **style); */ enum css_error css__arena_remove_style(struct css_computed_style *style); -/* - * Remove a computed style's uncommon block from the style sharing arena - * - * \params uncommon The uncommon style to remove from the style sharing arena - * \return CSS_OK on success or appropriate error otherwise. - */ -enum css_error css__arena_remove_uncommon_style( - struct css_computed_uncommon *uncommon); - #endif -- cgit v1.2.3