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

Koos Vriezen koos.vriezen at xs4all.nl
Sun Nov 16 11:58:09 GMT 2003


On Sat, 15 Nov 2003, Adrian Page wrote:

> 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.

Wouln't it be better to either remove the "image/" special case (and let
khtmlimage show it for gif/png/jpeg), or have at least a
'static bool RenderImage::supportMimeType(QString)'? This goes for
"image/x-eps" as well.

Koos

>
> The following page shows the problem:
>
> http://www.kevlindev.com/tutorials/basics/shapes/svg/index.htm
>
> Adrian
>





More information about the kfm-devel mailing list