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
RenderObject::destroy() should only be invoked after renderer has bee…
…n removed from the tree https://bugs.webkit.org/show_bug.cgi?id=178075 Reviewed by Zalan Bujtas. Source/WebCore: This patch fixes the remaining cases where the renderer is still in the tree while destroy() is called and adds the assert. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::removeLeftoverAnonymousBlock): (WebCore::RenderBlock::takeChild): * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::willBeDestroyed): * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): Null the parent pointers for m_scrollCorner/m_resizer. (WebCore::RenderLayer::calculateClipRects const): * rendering/RenderLayer.h: * rendering/RenderObject.cpp: (WebCore::RenderObject::willBeDestroyed): (WebCore::RenderObject::removeFromParentAndDestroyCleaningUpAnonymousWrappers): (WebCore::RenderObject::destroy): Use RELEASE_ASSERT as these are cheap and important checks. Also turn isBeingDestroyed test into RELEASE_ASSERT. Remove AX call that no longer does anything. (WebCore::RenderObject::destroyAndCleanupAnonymousWrappers): Deleted. * rendering/RenderObject.h: * rendering/RenderRubyBase.cpp: (WebCore::RenderRubyBase::moveBlockChildren): * rendering/RenderTableRow.cpp: (WebCore::RenderTableRow::collapseAndDestroyAnonymousSiblingRows): (WebCore::RenderTableRow::destroyAndCollapseAnonymousSiblingRows): Deleted. Renamed and made this no longer destroy itself. The caller now takes care of that. Removed an unnecessary lambda. * rendering/RenderTableRow.h: * style/RenderTreeUpdater.cpp: (WebCore::RenderTreeUpdater::tearDownRenderers): (WebCore::RenderTreeUpdater::tearDownRenderer): * style/RenderTreeUpdaterListItem.cpp: (WebCore::RenderTreeUpdater::ListItem::updateMarker): LayoutTests: * accessibility/mac/textbox-role-reports-notifications.html: This passed because spurious AXValueChanged notifications. Force layout to prevent coalescing between mutations. Canonical link: https://commits.webkit.org/194374@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
14 changed files
with
140 additions
and
70 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
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
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
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
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
Oops, something went wrong.