tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 26db74bf911e80ea02ef30365d3438fc98aa090a
parent ccdf83f3504656889a8cc461e72fba62793d822d
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Tue, 21 Oct 2025 14:14:00 +0000

Bug 1995525 - Remove unused ToMediaListKey bounds. r=firefox-style-system-reviewers,dshin

Differential Revision: https://phabricator.services.mozilla.com/D269405

Diffstat:
Mservo/components/style/author_styles.rs | 2--
Mservo/components/style/gecko/data.rs | 8--------
2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/servo/components/style/author_styles.rs b/servo/components/style/author_styles.rs @@ -6,7 +6,6 @@ //! ones used for ShadowRoot. use crate::dom::TElement; -use crate::invalidation::media_queries::ToMediaListKey; use crate::shared_lock::SharedRwLockReadGuard; use crate::stylesheet_set::AuthorStylesheetSet; use crate::stylesheets::StylesheetInDocument; @@ -56,7 +55,6 @@ where pub fn flush<E>(&mut self, stylist: &mut Stylist, guard: &SharedRwLockReadGuard) where E: TElement, - S: ToMediaListKey, { let flusher = self .stylesheets diff --git a/servo/components/style/gecko/data.rs b/servo/components/style/gecko/data.rs @@ -9,7 +9,6 @@ use crate::gecko_bindings::bindings; use crate::gecko_bindings::structs::{ self, ServoStyleSetSizes, StyleSheet as DomStyleSheet, StyleSheetInfo, }; -use crate::invalidation::media_queries::{MediaListKey, ToMediaListKey}; use crate::media_queries::{Device, MediaList}; use crate::properties::ComputedValues; use crate::selector_parser::SnapshotMap; @@ -50,13 +49,6 @@ impl fmt::Debug for GeckoStyleSheet { } } -impl ToMediaListKey for crate::gecko::data::GeckoStyleSheet { - fn to_media_list_key(&self) -> MediaListKey { - use std::mem; - unsafe { MediaListKey::from_raw(mem::transmute(self.0)) } - } -} - impl GeckoStyleSheet { /// Create a `GeckoStyleSheet` from a raw `DomStyleSheet` pointer. #[inline]