mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
parent
5b8fbb023d
commit
a2f81d69c1
20 changed files with 92 additions and 63 deletions
|
@ -2446,7 +2446,7 @@ impl Window {
|
|||
|
||||
/// Evaluate media query lists and report changes
|
||||
/// <https://drafts.csswg.org/cssom-view/#evaluate-media-queries-and-report-changes>
|
||||
pub fn evaluate_media_queries_and_report_changes(&self) {
|
||||
pub fn evaluate_media_queries_and_report_changes(&self, can_gc: CanGc) {
|
||||
rooted_vec!(let mut mql_list);
|
||||
self.media_query_lists.for_each(|mql| {
|
||||
if let MediaQueryListMatchState::Changed = mql.evaluate_changes() {
|
||||
|
@ -2463,6 +2463,7 @@ impl Window {
|
|||
false,
|
||||
mql.Media(),
|
||||
mql.Matches(),
|
||||
can_gc,
|
||||
);
|
||||
event.upcast::<Event>().fire(mql.upcast::<EventTarget>());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue