Backed out changeset 828eba714030 (bug 1339537)

This commit is contained in:
Sebastian Hengst 2017-03-24 21:23:56 +01:00
Родитель 1e11f28a37
Коммит 5ad6b0372f
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -502,7 +502,7 @@ nsSVGFELightingElement::ComputeLightAttributes(nsSVGFilterInstance* aInstance)
}
FilterPrimitiveDescription
nsSVGFELightingElement::AddLightingAttributes(const FilterPrimitiveDescription& aDescription,
nsSVGFELightingElement::AddLightingAttributes(FilterPrimitiveDescription aDescription,
nsSVGFilterInstance* aInstance)
{
nsIFrame* frame = GetPrimaryFrame();
@ -523,7 +523,7 @@ nsSVGFELightingElement::AddLightingAttributes(const FilterPrimitiveDescription&
return FilterPrimitiveDescription(PrimitiveType::Empty);
}
FilterPrimitiveDescription descr = aDescription;
FilterPrimitiveDescription& descr = aDescription;
descr.Attributes().Set(eLightingLight, ComputeLightAttributes(aInstance));
descr.Attributes().Set(eLightingSurfaceScale, surfaceScale);
descr.Attributes().Set(eLightingKernelUnitLength, kernelUnitLength);

Просмотреть файл

@ -202,7 +202,7 @@ protected:
AttributeMap ComputeLightAttributes(nsSVGFilterInstance* aInstance);
FilterPrimitiveDescription
AddLightingAttributes(const FilterPrimitiveDescription& aDescription,
AddLightingAttributes(FilterPrimitiveDescription aDescription,
nsSVGFilterInstance* aInstance);
enum { SURFACE_SCALE, DIFFUSE_CONSTANT, SPECULAR_CONSTANT, SPECULAR_EXPONENT };