summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp b/src/3rdparty/webkit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
index 13116a5..3eeb625 100644
--- a/src/3rdparty/webkit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
+++ b/src/3rdparty/webkit/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
@@ -79,6 +79,15 @@ void SVGFilterPrimitiveStandardAttributes::setStandardAttributes(SVGResourceFilt
float _x, _y, _width, _height;
+ if (this->hasAttribute(SVGNames::xAttr))
+ filterEffect->setHasX(true);
+ if (this->hasAttribute(SVGNames::yAttr))
+ filterEffect->setHasY(true);
+ if (this->hasAttribute(SVGNames::widthAttr))
+ filterEffect->setHasWidth(true);
+ if (this->hasAttribute(SVGNames::heightAttr))
+ filterEffect->setHasHeight(true);
+
if (resourceFilter->effectBoundingBoxMode()) {
_x = x().valueAsPercentage();
_y = y().valueAsPercentage();