Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid traversing the FrameTree up in FrameTree::top()
https://bugs.webkit.org/show_bug.cgi?id=185394 Reviewed by Chris Dumez. Credits & Patch Authored by Chris Dumez. Avoid traversing the FrameTree up in FrameTree::top() and rely on Frame::mainFrame() instead to get the answer right away. There is a potential behavior change if calling FrameTree::top() on a detached frame (it will keep return the main frame now instead of returning the frame itself). However, it should not matter in practice as we should not be dealing with the FrameTree of a detached frame. * Source/WebCore/page/FrameTree.cpp: (FrameTree::top): Canonical link: https://commits.webkit.org/273230@main
- Loading branch information