зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1111222 - Use HasNonScalingStroke() more. r=dholbert
This commit is contained in:
Родитель
b8d80b14af
Коммит
ab70fe95ea
|
@ -3536,8 +3536,7 @@ SVGTextFrame::NotifySVGChanged(uint32_t aFlags)
|
|||
needNewBounds = true;
|
||||
needGlyphMetricsUpdate = true;
|
||||
}
|
||||
if (StyleSVGReset()->mVectorEffect ==
|
||||
NS_STYLE_VECTOR_EFFECT_NON_SCALING_STROKE) {
|
||||
if (StyleSVGReset()->HasNonScalingStroke()) {
|
||||
// Stroke currently contributes to our mRect, and our stroke depends on
|
||||
// the transform to our outer-<svg> if |vector-effect:non-scaling-stroke|.
|
||||
needNewBounds = true;
|
||||
|
|
|
@ -440,9 +440,7 @@ nsSVGPathGeometryFrame::NotifySVGChanged(uint32_t aFlags)
|
|||
}
|
||||
}
|
||||
|
||||
if ((aFlags & TRANSFORM_CHANGED) &&
|
||||
StyleSVGReset()->mVectorEffect ==
|
||||
NS_STYLE_VECTOR_EFFECT_NON_SCALING_STROKE) {
|
||||
if ((aFlags & TRANSFORM_CHANGED) && StyleSVGReset()->HasNonScalingStroke()) {
|
||||
// Stroke currently contributes to our mRect, and our stroke depends on
|
||||
// the transform to our outer-<svg> if |vector-effect:non-scaling-stroke|.
|
||||
nsSVGUtils::ScheduleReflowSVG(this);
|
||||
|
|
|
@ -1109,8 +1109,7 @@ nsSVGUtils::GetNonScalingStrokeTransform(nsIFrame *aFrame,
|
|||
aFrame = aFrame->GetParent();
|
||||
}
|
||||
|
||||
if (aFrame->StyleSVGReset()->mVectorEffect !=
|
||||
NS_STYLE_VECTOR_EFFECT_NON_SCALING_STROKE) {
|
||||
if (!aFrame->StyleSVGReset()->HasNonScalingStroke()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче