Bug 495968 - Only update the active switch child in nsSVGSwitchFrame::UpdateCoveredRegion. r=roc

This commit is contained in:
Robert Longson 2010-01-08 11:35:18 +00:00
parent a9db416182
commit f553d22ebd

View File

@ -167,7 +167,14 @@ nsSVGSwitchFrame::UpdateCoveredRegion()
{
static_cast<nsSVGSwitchElement*>(mContent)->UpdateActiveChild();
return nsSVGSwitchFrameBase::UpdateCoveredRegion();
nsIFrame *kid = GetActiveChildFrame();
if (kid) {
nsISVGChildFrame* child = do_QueryFrame(kid);
if (child) {
child->UpdateCoveredRegion();
}
}
return NS_OK;
}
NS_IMETHODIMP