style: Re-evaluate container queries when container gets display:contents

Differential Revision: https://phabricator.services.mozilla.com/D164234
This commit is contained in:
Oriol Brufau 2022-12-14 01:55:11 +00:00 committed by Martin Robinson
parent cd50d30c31
commit c4b8e451ed
4 changed files with 20 additions and 4 deletions

View file

@ -19,6 +19,7 @@ use crate::shared_lock::{Locked, SharedRwLock};
use crate::stylist::CascadeData;
use crate::traversal_flags::TraversalFlags;
use crate::values::AtomIdent;
use crate::values::computed::Display;
use crate::{LocalName, Namespace, WeakAtom};
use atomic_refcell::{AtomicRef, AtomicRefMut};
use selectors::matching::{QuirksMode, VisitedHandlingMode};
@ -946,7 +947,7 @@ pub trait TElement:
/// Returns the size of the element to be used in container size queries.
/// This will usually be the size of the content area of the primary box,
/// but can be None if there is no box or if some axis lacks size containment.
fn query_container_size(&self) -> euclid::default::Size2D<Option<app_units::Au>>;
fn query_container_size(&self, display: &Display) -> euclid::default::Size2D<Option<app_units::Au>>;
}
/// TNode and TElement aren't Send because we want to be careful and explicit