mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1220020. When we turn something into an animated geometry root, clear the cache of animated geometry roots so it's not stale. r=tnikkel
This commit is contained in:
parent
da523f7bb7
commit
9f4c17d08a
@ -1123,6 +1123,12 @@ nsDisplayListBuilder::FindAnimatedGeometryRootFor(nsIFrame* aFrame, const nsIFra
|
||||
void
|
||||
nsDisplayListBuilder::RecomputeCurrentAnimatedGeometryRoot()
|
||||
{
|
||||
// technically we only need to clear any part of the cache that relies on
|
||||
// the AGR of mCurrentFrame (i.e. all entries in mAnimatedGeometryRootCache
|
||||
// where the key frame is a descendant of mCurrentFrame) but doing that is
|
||||
// complicated so we just clear the whole thing.
|
||||
mAnimatedGeometryRootCache.Clear();
|
||||
|
||||
mCurrentAnimatedGeometryRoot = ComputeAnimatedGeometryRootFor(this, const_cast<nsIFrame *>(mCurrentFrame));
|
||||
AnimatedGeometryRootLookup lookup(mCurrentFrame, nullptr);
|
||||
mAnimatedGeometryRootCache.Put(lookup, mCurrentAnimatedGeometryRoot);
|
||||
|
Loading…
Reference in New Issue
Block a user