⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 268801 in webkit


Ignore:
Timestamp:
Oct 21, 2020, 9:40:44 AM (6 years ago)
Author:
Chris Dumez
Message:

Simplify ScriptExecutionContext::vm()
https://bugs.webkit.org/show_bug.cgi?id=218028

Reviewed by Darin Adler.

  • dom/ScriptExecutionContext.cpp:

(WebCore::ScriptExecutionContext::vm):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r268800 r268801  
     12020-10-21  Chris Dumez  <cdumez@apple.com>
     2
     3        Simplify ScriptExecutionContext::vm()
     4        https://bugs.webkit.org/show_bug.cgi?id=218028
     5
     6        Reviewed by Darin Adler.
     7
     8        * dom/ScriptExecutionContext.cpp:
     9        (WebCore::ScriptExecutionContext::vm):
     10
    1112020-10-20  Darin Adler  <darin@apple.com>
    212
  • trunk/Source/WebCore/dom/ScriptExecutionContext.cpp

    r268775 r268801  
    482482    if (is<Document>(*this))
    483483        return commonVM();
    484     if (is<WorkerGlobalScope>(*this))
    485         return downcast<WorkerGlobalScope>(*this).script()->vm();
    486     if (is<WorkletGlobalScope>(*this))
    487         return downcast<WorkletGlobalScope>(*this).script()->vm();
     484    if (is<WorkerOrWorkletGlobalScope>(*this))
     485        return downcast<WorkerOrWorkletGlobalScope>(*this).script()->vm();
    488486
    489487    RELEASE_ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.