mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 734218 - nsChangeHint_RepaintFrame should only invalidate the bounds of SVG frames, not update them. r=dholbert.
This commit is contained in:
parent
8e07913feb
commit
00c7e687b5
@ -7580,7 +7580,14 @@ DoApplyRenderingChangeToTree(nsIFrame* aFrame,
|
||||
// if frame has view, will already be invalidated
|
||||
if (aChange & nsChangeHint_RepaintFrame) {
|
||||
if (aFrame->IsFrameOfType(nsIFrame::eSVG)) {
|
||||
nsSVGUtils::UpdateGraphic(aFrame);
|
||||
if (aChange & nsChangeHint_UpdateEffects) {
|
||||
// Invalidate the frame's old bounds, update its bounds, invalidate its new
|
||||
// bounds, and then inform anyone observing _us_ that we've changed:
|
||||
nsSVGUtils::UpdateGraphic(aFrame);
|
||||
} else {
|
||||
// Just invalidate our area:
|
||||
nsSVGUtils::InvalidateCoveredRegion(aFrame);
|
||||
}
|
||||
} else {
|
||||
aFrame->InvalidateOverflowRect();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user