зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 828eba714030 (bug 1339537
)
This commit is contained in:
Родитель
1e11f28a37
Коммит
5ad6b0372f
|
@ -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 };
|
||||
|
|
Загрузка…
Ссылка в новой задаче