JSValue jsSVGAnimatedPreserveAspectRatioAnimVal(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGAnimatedPreserveAspectRatio* castedThis = static_cast<JSSVGAnimatedPreserveAspectRatio*>(asObject(slotBase)); UNUSED_PARAM(exec); SVGAnimatedPreserveAspectRatio* imp = static_cast<SVGAnimatedPreserveAspectRatio*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(static_cast<SVGPropertyTearOff<SVGPreserveAspectRatio>*>(imp->animVal()))); return result; }
gfx::Matrix SVGContentUtils::GetViewBoxTransform(float aViewportWidth, float aViewportHeight, float aViewboxX, float aViewboxY, float aViewboxWidth, float aViewboxHeight, const SVGAnimatedPreserveAspectRatio &aPreserveAspectRatio) { return GetViewBoxTransform(aViewportWidth, aViewportHeight, aViewboxX, aViewboxY, aViewboxWidth, aViewboxHeight, aPreserveAspectRatio.GetAnimValue()); }
gfxMatrix nsSVGUtils::GetViewBoxTransform(nsSVGElement* aElement, float aViewportWidth, float aViewportHeight, float aViewboxX, float aViewboxY, float aViewboxWidth, float aViewboxHeight, const SVGAnimatedPreserveAspectRatio &aPreserveAspectRatio) { return GetViewBoxTransform(aElement, aViewportWidth, aViewportHeight, aViewboxX, aViewboxY, aViewboxWidth, aViewboxHeight, aPreserveAspectRatio.GetAnimValue()); }