diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-07-13 06:25:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 06:25:14 +0200 |
commit | 70e0e5ccb7ed0fb3a9a886fa7a0362308ee3e32f (patch) | |
tree | 9a850e7652fdc296c025a8f6f0788ae781eea82a /layout/svg/SVGFEImageFrame.cpp | |
parent | 4103fc0a8a054ba6126d2bbcc797219f8b2ebf2e (diff) | |
parent | 3945eb4c1d15a3232bb340b7348006a220398ebd (diff) | |
download | UXP-70e0e5ccb7ed0fb3a9a886fa7a0362308ee3e32f.tar UXP-70e0e5ccb7ed0fb3a9a886fa7a0362308ee3e32f.tar.gz UXP-70e0e5ccb7ed0fb3a9a886fa7a0362308ee3e32f.tar.lz UXP-70e0e5ccb7ed0fb3a9a886fa7a0362308ee3e32f.tar.xz UXP-70e0e5ccb7ed0fb3a9a886fa7a0362308ee3e32f.zip |
Merge pull request #632 from janekptacijarabaci/images_tab-closing_never-ending_1
Fix closing a tab when there are many images on the page
Diffstat (limited to 'layout/svg/SVGFEImageFrame.cpp')
-rw-r--r-- | layout/svg/SVGFEImageFrame.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/svg/SVGFEImageFrame.cpp b/layout/svg/SVGFEImageFrame.cpp index 185096a93..b1f98c421 100644 --- a/layout/svg/SVGFEImageFrame.cpp +++ b/layout/svg/SVGFEImageFrame.cpp @@ -107,6 +107,12 @@ SVGFEImageFrame::Init(nsIContent* aContent, nsFrame::Init(aContent, aParent, aPrevInFlow); // We assume that feImage's are always visible. + // This call must happen before the FrameCreated. This is because the + // primary frame pointer on our content node isn't set until after this + // function ends, so there is no way for the resulting OnVisibilityChange + // notification to get a frame. FrameCreated has a workaround for this in + // that it passes our frame around so it can be accessed. OnVisibilityChange + // doesn't have that workaround. IncApproximateVisibleCount(); nsCOMPtr<nsIImageLoadingContent> imageLoader = |