patch for 'cssFloat'

David Faure faure at kde.org
Sat Oct 4 02:47:59 CEST 2003


On Wednesday 01 October 2003 22:34, David Hyatt wrote:
> +  if (p == "cssText")
> +    return true;

This is unnecessary, since 

>     return ObjectImp::hasProperty(exec, p);

will find it in the hashtable.

Proof:
konqueror: [virtual bool KJS::DOMCSSStyleDeclaration::hasProperty(KJS::ExecState*, const KJS::Identifier&) const] cssText
konqueror: returning true

Of course since cssText is unimplemented in khtml, it doesn't do much good anyway,
but hasProperty() is definitely correct.

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Khtml-devel mailing list