зеркало из https://github.com/mozilla/pjs.git
Bug 334950 - bogus assertion when no viewbox specified for marker. r=tor,sr=roc
This commit is contained in:
Родитель
599fed1d7e
Коммит
05e25abc44
|
@ -335,6 +335,20 @@ nsSVGMarkerElement::DidChangeLength(PRUint8 aAttrEnum, PRBool aDoSetAttr)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsSVGMarkerElement::SetParentCoordCtxProvider(nsSVGCoordCtxProvider *aContext)
|
||||
{
|
||||
mCoordCtx = aContext;
|
||||
mViewBoxToViewportTransform = nsnull;
|
||||
|
||||
if (mCoordCtx && !HasAttr(kNameSpaceID_None, nsGkAtoms::viewBox)) {
|
||||
nsCOMPtr<nsIDOMSVGRect> vb;
|
||||
mViewBox->GetAnimVal(getter_AddRefs(vb));
|
||||
vb->SetWidth(mLengthAttributes[MARKERWIDTH].GetAnimValue(mCoordCtx));
|
||||
vb->SetHeight(mLengthAttributes[MARKERHEIGHT].GetAnimValue(mCoordCtx));
|
||||
}
|
||||
}
|
||||
|
||||
nsSVGElement::LengthAttributesInfo
|
||||
nsSVGMarkerElement::GetLengthInfo()
|
||||
{
|
||||
|
|
|
@ -90,8 +90,7 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
void SetParentCoordCtxProvider(nsSVGCoordCtxProvider *aContext)
|
||||
{ mCoordCtx = aContext; mViewBoxToViewportTransform = nsnull; }
|
||||
void SetParentCoordCtxProvider(nsSVGCoordCtxProvider *aContext);
|
||||
|
||||
virtual LengthAttributesInfo GetLengthInfo();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче