New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline FrameDestructionObserver::frame() #662
Inline FrameDestructionObserver::frame() #662
Conversation
|
||
#pragma once | ||
|
||
#include "Frame.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need Frame.h
here??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will double check but I believe that's necessary and that's the reason why the inline function is inside FrameDestructionObserverInlines.h and not FrameDestructionObserver.h.
The issue is that m_frame
is a WeakPtr<Frame>
and you cannot call WeakPtr<Frame>::get()
unless Frame
is defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, didn't realize it's a WeakPtr
. That makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have also just double-checked locally that it doesn't build with a simple Frame forward-declaration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me
Committed r294399 (250693@main): https://commits.webkit.org/250693@main Reviewed commits have been landed. Closing PR #662 and removing active labels. |
169f75d