mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 495968 - Only update the active switch child in nsSVGSwitchFrame::UpdateCoveredRegion. r=roc
This commit is contained in:
parent
a9db416182
commit
f553d22ebd
@ -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 New Issue
Block a user