summaryrefslogtreecommitdiffstats
path: root/dom/svg/SVGGradientElement.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-08-17 20:27:14 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-12 08:39:15 +0100
commitb736f53a13af48de08026b7c7e64275122af66e2 (patch)
tree54c20be9b96d7085973469c12332f43839d82f88 /dom/svg/SVGGradientElement.cpp
parent4577efd50f8361ffa787d7fcba5f5894438f826c (diff)
downloadUXP-b736f53a13af48de08026b7c7e64275122af66e2.tar
UXP-b736f53a13af48de08026b7c7e64275122af66e2.tar.gz
UXP-b736f53a13af48de08026b7c7e64275122af66e2.tar.lz
UXP-b736f53a13af48de08026b7c7e64275122af66e2.tar.xz
UXP-b736f53a13af48de08026b7c7e64275122af66e2.zip
SVG - support radialGradient fr attribute
Diffstat (limited to 'dom/svg/SVGGradientElement.cpp')
-rw-r--r--dom/svg/SVGGradientElement.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/dom/svg/SVGGradientElement.cpp b/dom/svg/SVGGradientElement.cpp
index 1bcac67e6..93767c934 100644
--- a/dom/svg/SVGGradientElement.cpp
+++ b/dom/svg/SVGGradientElement.cpp
@@ -198,13 +198,14 @@ SVGRadialGradientElement::WrapNode(JSContext* aCx, JS::Handle<JSObject*> aGivenP
return SVGRadialGradientElementBinding::Wrap(aCx, this, aGivenProto);
}
-nsSVGElement::LengthInfo SVGRadialGradientElement::sLengthInfo[5] =
+nsSVGElement::LengthInfo SVGRadialGradientElement::sLengthInfo[6] =
{
{ &nsGkAtoms::cx, 50, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::X },
{ &nsGkAtoms::cy, 50, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::Y },
{ &nsGkAtoms::r, 50, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::XY },
{ &nsGkAtoms::fx, 50, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::X },
{ &nsGkAtoms::fy, 50, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::Y },
+ { &nsGkAtoms::fr, 0, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::XY },
};
//----------------------------------------------------------------------
@@ -252,6 +253,12 @@ SVGRadialGradientElement::Fy()
return mLengthAttributes[ATTR_FY].ToDOMAnimatedLength(this);
}
+already_AddRefed<SVGAnimatedLength>
+SVGRadialGradientElement::Fr()
+{
+ return mLengthAttributes[ATTR_FR].ToDOMAnimatedLength(this);
+}
+
//----------------------------------------------------------------------
// nsSVGElement methods