[Webkit-unassigned] [Bug 266851] Simplify RenderLayer::setParent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 29 09:47:36 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=266851

--- Comment #1 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
> RenderLayer::addChild()

From: child.setParent(this); to child.m_parent = this;

> RenderLayer::removeChild()

From: oldChild.setParent(nullptr); to oldChild.m_parent = nullptr;

> RenderLayer::setParent() --> Deleted

> RenderLayer::createReflection()

From: m_reflection->setParent(&renderer()); // We create a 1-way connection.

To: m_reflection->m_parent = &renderer(); // We create a 1-way connection.

> RenderLayer::removeReflection()

From: m_reflection->setParent(nullptr);

To: m_reflection->m_parent = nullptr;

__

> RenderLayer.h

Remove: void setParent(RenderLayer*);

__

This compiles.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231229/c3ecea10/attachment.htm>


More information about the webkit-unassigned mailing list