Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1865012 Part 2 - Add nsFrameList::RemoveLastChild, and destroy fr…
…ame list in reverse order. r=dholbert With only the Part 1, `layout/generic/crashtests/1683126.html` will timeout. It can be reproduced locally via ``` ./mach crashtest layout/generic/crashtests/1683126.html ``` It is because if we destroy a frame list from the first child to the last child, each time we destroy the first child [1], the second child become the new first child, and we have to update the first-in-flow and first-continuation cache for later continuations, which is a linear time operation. [1] See nsSplittableFrame::RemoveFromFlow() with the argument being the first child in a frame list. Differential Revision: https://phabricator.services.mozilla.com/D197967
- Loading branch information