[patch] #63348 Konqueror looses style sheets on kde.org and gentoo.org

Dirk Mueller mueller at kde.org
Fri Nov 14 17:40:51 GMT 2003


On Friday 14 November 2003 18:03, Germain Garand wrote:

> mmh, Zeus, I think I just understood something... I assumed "Basic Page
> Style" meant "No style", because that was the result, but reading the code,
> I wonder if it wasn't intended as "Default Page Style"? 8)

No, Basic Page Style means "all styles except those which are marked as 
alternate or are disabled". The default page style is not the Basic Page 
style, but the first named nondisabled style (and if its not alternate 
iirc?). 

> Thus setting the sheet to "Basic Page Style" if the previous one doesn't
> exist anymore.

True. 

> However, that alone doesn't solve the issue, because when m_sheetUsed is
> bogus, you still have to wait until everything is loaded before the Default
> sheet gets applied... so you get a big FOUC.

Yes, but otherwise you get the FOUC when you navigate inside the same webpage 
but with a nondefault alternate stylesheet set, which is maybe more annoying 
than the FOUC you get when switching to another site. 

Actually, you only have to wait till you parsed the <body> element to decide 
if an alternate stylesheet still exists (right?). That should reduce the FOUC 
to a minimum, since we don't render anyway before. 

Hmm... we don't have a signal for that yet though. we somehow have to test for 
the "havebody" flag in HTMLParser..  

Difficult. maybe its enough when recalcStyleSelector resets it when it 
encounters <body> and didn't find the currently selected alternate stylesheet 
yet. Opinions?


-- 
> Looking for a KDE-related EMail-Alias ? Get one at kdemail.net for FREE! <




More information about the kfm-devel mailing list