Title: [268801] trunk/Source/WebCore
- Revision
- 268801
- Author
- [email protected]
- Date
- 2020-10-21 09:40:44 -0700 (Wed, 21 Oct 2020)
Log Message
Simplify ScriptExecutionContext::vm()
https://bugs.webkit.org/show_bug.cgi?id=218028
Reviewed by Darin Adler.
* dom/ScriptExecutionContext.cpp:
(WebCore::ScriptExecutionContext::vm):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (268800 => 268801)
--- trunk/Source/WebCore/ChangeLog 2020-10-21 16:39:37 UTC (rev 268800)
+++ trunk/Source/WebCore/ChangeLog 2020-10-21 16:40:44 UTC (rev 268801)
@@ -1,3 +1,13 @@
+2020-10-21 Chris Dumez <[email protected]>
+
+ Simplify ScriptExecutionContext::vm()
+ https://bugs.webkit.org/show_bug.cgi?id=218028
+
+ Reviewed by Darin Adler.
+
+ * dom/ScriptExecutionContext.cpp:
+ (WebCore::ScriptExecutionContext::vm):
+
2020-10-20 Darin Adler <[email protected]>
REGRESSION(r266295): Range allows start and end containers to belong to different trees
Modified: trunk/Source/WebCore/dom/ScriptExecutionContext.cpp (268800 => 268801)
--- trunk/Source/WebCore/dom/ScriptExecutionContext.cpp 2020-10-21 16:39:37 UTC (rev 268800)
+++ trunk/Source/WebCore/dom/ScriptExecutionContext.cpp 2020-10-21 16:40:44 UTC (rev 268801)
@@ -481,10 +481,8 @@
{
if (is<Document>(*this))
return commonVM();
- if (is<WorkerGlobalScope>(*this))
- return downcast<WorkerGlobalScope>(*this).script()->vm();
- if (is<WorkletGlobalScope>(*this))
- return downcast<WorkletGlobalScope>(*this).script()->vm();
+ if (is<WorkerOrWorkletGlobalScope>(*this))
+ return downcast<WorkerOrWorkletGlobalScope>(*this).script()->vm();
RELEASE_ASSERT_NOT_REACHED();
return commonVM();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes