kdelibs/khtml/html

Dirk Mueller mueller at kde.org
Mon Aug 18 03:41:45 CEST 2003


On Sam, 16 Aug 2003, Peter Kelly wrote:

> KHTML treats the disabled property as meaning "this stylesheet _can_ be 
> used" rather than "this stylesheet _is_ used". Thus, when you set disabled
> to false on a sheet it becomes available for use but is not actually used 
> until the user selects the sheet from the menu.

Ok, if thats indeed the case then the implementation has to be fixed. I was 
under the assumption from reading the Safari tree that the disabled state is 
an additional "never use this" option. 

This will probably simplify the code. 

> > > -            if (isLoading() && m_isDisabled && (!m_alternate || m_oldisDisabled))
> > > +            if (isLoading() && m_isDisabled)
> > >                  getDocument()->styleSheetLoaded();
> > 

Still doesn't explain this commit though. 


-- 
Dirk


More information about the Khtml-devel mailing list