зеркало из https://github.com/mozilla/gecko-dev.git
Bug 870415 - Simplify invalidation of SVG in DoApplyRenderingChangeToTree. r=dholbert
--HG-- extra : rebase_source : c189f97241b6ef3534c1ddffc2bfc426f892d4a5
This commit is contained in:
Родитель
317500f434
Коммит
9249fa9942
|
@ -7725,22 +7725,13 @@ DoApplyRenderingChangeToTree(nsIFrame* aFrame,
|
|||
|
||||
// if frame has view, will already be invalidated
|
||||
if (aChange & nsChangeHint_RepaintFrame) {
|
||||
if (aFrame->IsFrameOfType(nsIFrame::eSVG) &&
|
||||
needInvalidatingPaint = true;
|
||||
aFrame->InvalidateFrameSubtree();
|
||||
if (aChange & nsChangeHint_UpdateEffects &&
|
||||
aFrame->IsFrameOfType(nsIFrame::eSVG) &&
|
||||
!(aFrame->GetStateBits() & NS_STATE_IS_OUTER_SVG)) {
|
||||
if (aChange & nsChangeHint_UpdateEffects) {
|
||||
needInvalidatingPaint = true;
|
||||
nsSVGEffects::InvalidateRenderingObservers(aFrame);
|
||||
// Need to update our overflow rects:
|
||||
nsSVGUtils::ScheduleReflowSVG(aFrame);
|
||||
} else {
|
||||
needInvalidatingPaint = true;
|
||||
// Just invalidate our area:
|
||||
nsSVGEffects::InvalidateRenderingObservers(aFrame);
|
||||
aFrame->InvalidateFrameSubtree();
|
||||
}
|
||||
} else {
|
||||
needInvalidatingPaint = true;
|
||||
aFrame->InvalidateFrameSubtree();
|
||||
// Need to update our overflow rects:
|
||||
nsSVGUtils::ScheduleReflowSVG(aFrame);
|
||||
}
|
||||
}
|
||||
if (aChange & nsChangeHint_UpdateTextPath) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче