[Webkit-unassigned] [Bug 64479] RenderObject::containingBlock is a const method but it returns a non-const object
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 7 09:28:36 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=64479
--- Comment #3 from zalan <zalan at apple.com> ---
(In reply to Darin Adler from comment #2)
> I am not sure this should be changed. The exact meaning of const for
> pointers into a tree and tree traversal is unclear to me and I definitely
> don’t want to create two of each tree traversal function. Many, many other
> functions like Node::parent and Node::document also work this way. I don’t
> agree with the premise of this bug report.
I agree. I don't think we should change this. (Though in LFC we managed to achieve const correctness but we did it by turning the layout tree (render tree) immutable as a whole)
--
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/20230507/46a85f3d/attachment.htm>
More information about the webkit-unassigned
mailing list