svgio: feImage and feFlood don't support the in attribute

Added by mistake in b22039cff8
"related: tdf#159947: only parse in/result if the element supports them"

See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/in

Change-Id: Ie8b5591349eff710d1edc7f413790ac9d31df99d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166389
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2024-04-21 19:04:08 +02:00
parent b93a481d8a
commit ae5e743f90
4 changed files with 0 additions and 24 deletions

View File

@ -27,7 +27,6 @@ namespace svgio::svgreader
class SvgFeFloodNode final : public SvgFilterNode
{
private:
OUString maIn;
OUString maResult;
SvgNumber maX;
SvgNumber maY;

View File

@ -27,7 +27,6 @@ namespace svgio::svgreader
class SvgFeImageNode final : public SvgFilterNode
{
private:
OUString maIn;
OUString maResult;
OUString maUrl; // external link
OUString maData; // base64 data

View File

@ -49,11 +49,6 @@ void SvgFeFloodNode::parseAttribute(SVGToken aSVGToken, const OUString& aContent
readLocalCssStyle(aContent);
break;
}
case SVGToken::In:
{
maIn = aContent.trim();
break;
}
case SVGToken::Result:
{
maResult = aContent.trim();
@ -145,12 +140,6 @@ void SvgFeFloodNode::apply(drawinglayer::primitive2d::Primitive2DContainer& rTar
if (fWidth <= 0.0 || fHeight <= 0.0)
return;
if (const drawinglayer::primitive2d::Primitive2DContainer* rSource
= pParent->findGraphicSource(maIn))
{
rTarget = *rSource;
}
const double fX(maX.solve(*this, NumberType::xcoordinate));
const double fY(maY.solve(*this, NumberType::ycoordinate));
const basegfx::B2DRange aRange(fX, fY, fX + fWidth, fY + fHeight);

View File

@ -46,11 +46,6 @@ void SvgFeImageNode::parseAttribute(SVGToken aSVGToken, const OUString& aContent
readLocalCssStyle(aContent);
break;
}
case SVGToken::In:
{
maIn = aContent.trim();
break;
}
case SVGToken::Result:
{
maResult = aContent.trim();
@ -79,12 +74,6 @@ void SvgFeImageNode::parseAttribute(SVGToken aSVGToken, const OUString& aContent
void SvgFeImageNode::apply(drawinglayer::primitive2d::Primitive2DContainer& rTarget,
const SvgFilterNode* pParent) const
{
if (const drawinglayer::primitive2d::Primitive2DContainer* rSource
= pParent->findGraphicSource(maIn))
{
rTarget = *rSource;
}
BitmapEx aBitmapEx;
if (!maData.isEmpty())