Skip to content

Commit

Permalink
Cherry-pick 261145@main (34d9c5f). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=253296

    Use tighter typing for value returned by JSDOMWindowBase::scriptExecutionContext()
    https://bugs.webkit.org/show_bug.cgi?id=253296

    Reviewed by Sihui Liu.

    * Source/WebCore/bindings/js/JSDOMWindowBase.cpp:
    (WebCore::JSDOMWindowBase::scriptExecutionContext const):
    * Source/WebCore/bindings/js/JSDOMWindowBase.h:

    Canonical link: https://commits.webkit.org/261145@main
  • Loading branch information
cdumez authored and aperezdc committed Apr 5, 2023
1 parent 95ac0bd commit d0ab351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/WebCore/bindings/js/JSDOMWindowBase.cpp
Expand Up @@ -159,7 +159,7 @@ void JSDOMWindowBase::updateDocument()
EXCEPTION_ASSERT_UNUSED(scope, !scope.exception());
}

ScriptExecutionContext* JSDOMWindowBase::scriptExecutionContext() const
Document* JSDOMWindowBase::scriptExecutionContext() const
{
return m_wrapped->document();
}
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/bindings/js/JSDOMWindowBase.h
Expand Up @@ -60,7 +60,7 @@ class WEBCORE_EXPORT JSDOMWindowBase : public JSDOMGlobalObject {
void updateDocument();

DOMWindow& wrapped() const { return *m_wrapped; }
ScriptExecutionContext* scriptExecutionContext() const;
Document* scriptExecutionContext() const;

// Called just before removing this window from the JSWindowProxy.
void willRemoveFromWindowProxy();
Expand Down

0 comments on commit d0ab351

Please sign in to comment.