Skip to content

Commit

Permalink
Unreviewed build fix.
Browse files Browse the repository at this point in the history
* Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp:
  • Loading branch information
Mohsin Qureshi committed Mar 12, 2024
1 parent 02a5c28 commit 198b144
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,19 +394,6 @@ RenderObject& BoxTree::rendererForLayoutBox(const Layout::Box& box)
return *m_boxToRendererMap.get(&box);
}

bool BoxTree::contains(const RenderElement& rendererToFind) const
{
if (!rendererToFind.layoutBox())
return false;
if (m_boxToRendererMap.contains(*rendererToFind.layoutBox()))
return true;
for (auto& renderer : m_renderers) {
if (renderer.get() == &rendererToFind)
return true;
}
return false;
}

const RenderObject& BoxTree::rendererForLayoutBox(const Layout::Box& box) const
{
return const_cast<BoxTree&>(*this).rendererForLayoutBox(box);
Expand Down

0 comments on commit 198b144

Please sign in to comment.