Skip to content

Commit

Permalink
Revert "Cherry-pick 66b364d. rdar://122130509"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Robson committed Mar 3, 2024
1 parent f1382ba commit ebbce3c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Source/WebCore/rendering/RenderInline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,14 +508,7 @@ IntRect RenderInline::linesBoundingBox() const
{
if (auto* layout = LayoutIntegration::LineLayout::containing(*this)) {
if (!layout->contains(*this))
return { };

if (!layoutBox()) {
// Repaint may be issued on subtrees during content mutation with newly inserted renderers
// (or we just forgot to initiate layout before querying geometry on stale content after moving inline boxes between blocks).
ASSERT(needsLayout());
return { };
}
return enclosingIntRect(layout->enclosingBorderBoxRectFor(*this));
}

Expand All @@ -525,7 +518,6 @@ IntRect RenderInline::linesBoundingBox() const
// unable to reproduce this at all (and consequently unable to figure ot why this is happening). The assert will hopefully catch the problem in debug
// builds and help us someday figure out why. We also put in a redundant check of lastLineBox() to avoid the crash for now.
ASSERT(!firstLineBox() == !lastLineBox()); // Either both are null or both exist.
IntRect result;
if (firstLineBox() && lastLineBox()) {
// Return the width of the minimal left side and the maximal right side.
float logicalLeftSide = 0;
Expand Down

0 comments on commit ebbce3c

Please sign in to comment.