mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
script: remove redundant ScriptWindowProxies method (#43276)
ScriptWindowProxies's find_window_proxy and get methods are exactly the same; remove the latter. Testing: Existing WPT tests should cover the script_thread.rs change Fixes: https://github.com/servo/servo/issues/43251 Signed-off-by: Simon Martin <simon@nasilyan.com>
This commit is contained in:
@@ -3003,7 +3003,9 @@ impl ScriptThread {
|
||||
Some(window) => {
|
||||
let mut last = None;
|
||||
for browsing_context_id in source_with_ancestry.into_iter().rev() {
|
||||
if let Some(window_proxy) = self.window_proxies.get(browsing_context_id) {
|
||||
if let Some(window_proxy) =
|
||||
self.window_proxies.find_window_proxy(browsing_context_id)
|
||||
{
|
||||
last = Some(window_proxy);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user