Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[FrameView::layout cleanup] Make m_subtreeLayoutRoot weak.
https://bugs.webkit.org/show_bug.cgi?id=178621 <rdar://problem/35110321> Reviewed by Simon Fraser. This patch turn m_subtreeLayoutRoot into a weak pointer to handle both the optional and the mutation cases. Covered by existing cases. * page/FrameView.cpp: (WebCore::FrameView::reset): (WebCore::FrameView::willDestroyRenderTree): (WebCore::FrameView::didDestroyRenderTree): (WebCore::FrameView::calculateScrollbarModesForLayout): (WebCore::FrameView::handleLayoutWithFrameFlatteningIfNeeded): (WebCore::FrameView::canPerformLayout const): (WebCore::FrameView::layout): WeakPtr<RenderElement> protects us from recursive layouts triggering UAF on layoutRoot. (WebCore::FrameView::convertSubtreeLayoutToFullLayout): (WebCore::FrameView::scheduleRelayout): (WebCore::FrameView::scheduleRelayoutOfSubtree): (WebCore::FrameView::needsLayout const): (WebCore::FrameView::autoSizeIfEnabled): * page/FrameView.h: Canonical link: https://commits.webkit.org/194849@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
70 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters