4 Apr
2009
4 Apr
'09
7:21 p.m.
Johannes wrote:
for quite some while I've been trying to add support for the @import directive in CSS. The problem is that it creates a cyclic dependency between CssParser and DilloHtml: CssParser now calls a_Html_load_stylesheet().
This is extremely ugly and needs to be decoupled somehow.
Anyway, attached is what I currently have - cleanup ideas welcome.
Note, that we also need to use the URL of the current stylesheet to resolve relative URLs in @import. This is not implemented yet.
Good! - Is strcat safe here? - strcasecmp -> dStrcasecmp - needs a check for prefs.load_stylesheets - Can we get into loops if an imported stylesheet imports itself (directly or indirectly)