Remove WTF namespace and replace with blink namespace

提交: 4396901b | 2025-08-26 15:14:06+00:00

← 返回列表

Remove WTF namespace and replace with blink namespace

Minor
提交哈希: 4396901b34fa021abe1db3fd81e5653d200061eb
提交时间: 2025-08-26 15:14:06+00:00
影响等级: Minor
生成工具: webview2-upstream-sentry
上游审核链接: 查看上游审核 🔗

📋 摘要

This submission mainly replaces the WTF:: namespace in the code with the blink:: namespace, which is part of Chromium’s ongoing namespace refactoring. Specific changes include: 1) In the content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm file, changing the comment from WTF::notFound to blink::kNotFound; 2) In the content/public/renderer/render_thread.cc file, updating the TODO comment from WTF::IsMainThread() to blink::IsMainThread(). All these are changes within code comments and do not involve any actual functional logic modifications.

🎯 影响分析

This change has no actual impact on WebView2Mac. Although one of the modified files (render_widget_host_view_cocoa.mm) is located in the content/app_shim_remote_cocoa/ directory, which is the core remote_cocoa component that WebView2Mac depends on, this change is merely a text update in comments and does not alter any API interfaces, function signatures, data structures, or business logic. Specifically: 1) The change from WTF::notFound to blink::kNotFound is only in the comment description, while the actual code logic uses the UINT32_MAX constant; 2) The modification in render_thread.cc is also just an update to a TODO comment. Therefore, the functionality, performance, and compatibility of WebView2Mac will not be affected.

受影响的类:

无相关类受影响(仅注释变更)