PATCH: CSSStyleDeclarationImpl::getPropertyValue

David Faure david at mandrakesoft.com
Sat Nov 2 18:38:07 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As shown in Vadim's testcase for #12804, KHTML's current getPropertyValue
doesn't support shorthand properties. The attached patch implements support
for 4-values properties (like "margin") and shorthand properties (like "background").
However the latter is incomplete, the default values for the non-specified are missing
(e.g.  "background: red" must become "background: red none repeat scroll 0%").

1) ok to apply?
2) suggestions on how to implement the missing default values? I mean, any better
way than passing an array of hardcoded default values to getShorthandValue() ?

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9xBuQ72KcVAmwbhARAvSwAJ4v9ht0RvodKB70dpNPDH/CNDYc/gCfTG6O
ixJNqdYSn960TWcyY1ub8I0=
=jtr9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: css_getpropertyvalue.diff
Type: text/x-diff
Size: 10945 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20021102/fe302f3e/attachment.diff>


More information about the kfm-devel mailing list