зеркало из https://github.com/mozilla/gecko-dev.git
Bug 269891 - crash in stroke-dasharray sharing. r+sr=bzbarsky
This commit is contained in:
Родитель
03c8265318
Коммит
a4fd23d276
|
@ -1229,7 +1229,9 @@ nsRuleNode::GetSVGData(nsStyleContext* aContext)
|
|||
nsRuleData ruleData(eStyleStruct_SVG, mPresContext, aContext);
|
||||
ruleData.mSVGData = &svgData;
|
||||
|
||||
return WalkRuleTree(eStyleStruct_SVG, aContext, &ruleData, &svgData);
|
||||
const nsStyleStruct *res = WalkRuleTree(eStyleStruct_SVG, aContext, &ruleData, &svgData);
|
||||
svgData.mStrokeDasharray = nsnull; // We are sharing with some style rule. It really owns the data.
|
||||
return res;
|
||||
}
|
||||
|
||||
const nsStyleStruct*
|
||||
|
|
|
@ -1213,7 +1213,7 @@ nsCSSSVG::nsCSSSVG(const nsCSSSVG& aCopy)
|
|||
mStopColor(aCopy.mStopColor),
|
||||
mStopOpacity(aCopy.mStopOpacity),
|
||||
mStroke(aCopy.mStroke),
|
||||
mStrokeDasharray(aCopy.mStrokeDasharray),
|
||||
mStrokeDasharray(nsnull),
|
||||
mStrokeDashoffset(aCopy.mStrokeDashoffset),
|
||||
mStrokeLinecap(aCopy.mStrokeLinecap),
|
||||
mStrokeLinejoin(aCopy.mStrokeLinejoin),
|
||||
|
|
|
@ -1213,7 +1213,7 @@ nsCSSSVG::nsCSSSVG(const nsCSSSVG& aCopy)
|
|||
mStopColor(aCopy.mStopColor),
|
||||
mStopOpacity(aCopy.mStopOpacity),
|
||||
mStroke(aCopy.mStroke),
|
||||
mStrokeDasharray(aCopy.mStrokeDasharray),
|
||||
mStrokeDasharray(nsnull),
|
||||
mStrokeDashoffset(aCopy.mStrokeDashoffset),
|
||||
mStrokeLinecap(aCopy.mStrokeLinecap),
|
||||
mStrokeLinejoin(aCopy.mStrokeLinejoin),
|
||||
|
|
|
@ -1229,7 +1229,9 @@ nsRuleNode::GetSVGData(nsStyleContext* aContext)
|
|||
nsRuleData ruleData(eStyleStruct_SVG, mPresContext, aContext);
|
||||
ruleData.mSVGData = &svgData;
|
||||
|
||||
return WalkRuleTree(eStyleStruct_SVG, aContext, &ruleData, &svgData);
|
||||
const nsStyleStruct *res = WalkRuleTree(eStyleStruct_SVG, aContext, &ruleData, &svgData);
|
||||
svgData.mStrokeDasharray = nsnull; // We are sharing with some style rule. It really owns the data.
|
||||
return res;
|
||||
}
|
||||
|
||||
const nsStyleStruct*
|
||||
|
|
Загрузка…
Ссылка в новой задаче