forked from mirrors/gecko-dev
Bug 495968 - Only update the active switch child in nsSVGSwitchFrame::UpdateCoveredRegion. r=roc
This commit is contained in:
parent
27f23b384f
commit
6dd0adcf89
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue