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
InlineBox should not hold a reference to RenderObject
https://bugs.webkit.org/show_bug.cgi?id=224506 Reviewed by Antti Koivisto. The InlineBox/RenderObject relationship is somewhat error-prone (see RenderBox::setInlineBoxWrapper vs. InlineElementBox::extractLine) and it's rather easy to delete one without letting the other know. * rendering/InlineBox.cpp: (WebCore::InlineBox::showNodeTreeForThis const): (WebCore::InlineBox::showLineTreeForThis const): (WebCore::InlineBox::caretMinOffset const): (WebCore::InlineBox::caretMaxOffset const): (WebCore::InlineBox::adjustPosition): (WebCore::InlineBox::selectionState): (WebCore::InlineBox::canAccommodateEllipsis const): (WebCore::InlineBox::locationIncludingFlipping const): (WebCore::InlineBox::flipForWritingMode const): * rendering/InlineBox.h: (WebCore::InlineBox::renderer const): (WebCore::InlineBox::boxModelObject const): (WebCore::InlineBox::InlineBox): Canonical link: https://commits.webkit.org/236505@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
46 additions
and
20 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