[patch] Cannot display embedded svg images if 'type' is specified

Adrian Page Adrian.Page at tesco.net
Sat Nov 15 15:22:57 GMT 2003


Embedded SVG images can't be displayed (by KSVG) if the 'type' attribute is 
specified. This is because of the check for 'imagelike' objects in 
HTMLObjectBaseElementImpl::attach(), which creates a RenderImage if 
serviceType starts with "image/", while KSVG needs a RenderPartObject. The 
attached patch fixes this by making image/svg+xml an exception to the rule.

The following page shows the problem:

http://www.kevlindev.com/tutorials/basics/shapes/svg/index.htm

Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: embed-svg.diff
Type: text/x-diff
Size: 808 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20031115/9b616ecb/attachment.diff>


More information about the kfm-devel mailing list