compositor: Remove IOCompositor::pipeline_to_webview_map (#38827)

This data structure is now unused after changes to the way that hit
testing works.

Testing: This is just removing dead code so no tests are necessary.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-08-21 08:16:41 -07:00 committed by GitHub
parent 48c2152f61
commit d4757c9e9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 26 deletions

View file

@ -101,15 +101,6 @@ pub(crate) struct WebViewRenderer {
viewport_description: Option<ViewportDescription>,
}
impl Drop for WebViewRenderer {
fn drop(&mut self) {
self.global
.borrow_mut()
.pipeline_to_webview_map
.retain(|_, webview_id| self.id != *webview_id);
}
}
impl WebViewRenderer {
pub(crate) fn new(
global: Rc<RefCell<ServoRenderer>>,
@ -154,13 +145,9 @@ impl WebViewRenderer {
&mut self,
pipeline_id: PipelineId,
) -> &mut PipelineDetails {
self.pipelines.entry(pipeline_id).or_insert_with(|| {
self.global
.borrow_mut()
.pipeline_to_webview_map
.insert(pipeline_id, self.id);
PipelineDetails::new()
})
self.pipelines
.entry(pipeline_id)
.or_insert_with(PipelineDetails::new)
}
pub(crate) fn pipeline_exited(&mut self, pipeline_id: PipelineId, source: PipelineExitSource) {
@ -179,10 +166,6 @@ impl WebViewRenderer {
}
pipeline.remove_entry();
self.global
.borrow_mut()
.pipeline_to_webview_map
.remove(&pipeline_id);
}
pub(crate) fn set_frame_tree(&mut self, frame_tree: &SendableFrameTree) {