Ejemplo n.º 1
0
void singleStep(void) {
	int ind;
	for (ind = 0; ind < N; ind++) {
		fillStencilValues(ind);
		U_n[ind] = interpolatedValue(stencil_values);
	}
	// FIXME For simplisity - copy U_c = U_n.
	for (ind = 0; ind < N; ind++)
		U_c[ind] = U_n[ind];
}
Ejemplo n.º 2
0
void SVGInterpolation::apply(SVGElement& targetElement) const
{
    SVGElement::InstanceUpdateBlocker blocker(&targetElement);
    RefPtrWillBeRawPtr<SVGPropertyBase> value = interpolatedValue(targetElement);
    SVGElementInstances instances = SVGAnimateElement::findElementInstances(&targetElement);

    for (SVGElement* element : instances) {
        RefPtrWillBeRawPtr<SVGAnimatedPropertyBase> animatedProperty =
            element->propertyFromAttribute(attributeName());
        if (animatedProperty) {
            animatedProperty->setAnimatedValue(value);
            element->invalidateSVGAttributes();
            element->svgAttributeChanged(attributeName());
        }
    }
}