servo-media 1e28d1d997: don't unwrap ServoMedia::get() (#35049)

Signed-off-by: mcc <andi.m.mcclure@gmail.com>
This commit is contained in:
mcclure 2025-01-18 01:30:46 -05:00 committed by GitHub
parent 7b15d9c44f
commit d5993a0cea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 23 additions and 24 deletions

View file

@ -676,7 +676,7 @@ impl Document {
// Set the document's activity level, reflow if necessary, and suspend or resume timers.
self.activity.set(activity);
let media = ServoMedia::get().unwrap();
let media = ServoMedia::get();
let pipeline_id = self.window().pipeline_id();
let client_context_id =
ClientContextId::build(pipeline_id.namespace_id.0, pipeline_id.index.0.get());