mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Move some of the media query code to a more generic queries module
No behavior change, just moving and renaming files. The code in the "queries" module will be shared between @media and @container. @media has some other code that container queries doesn't need like MediaList / MediaType / etc. That remains in the media_queries module. Differential Revision: https://phabricator.services.mozilla.com/D144435
This commit is contained in:
parent
3eed093e33
commit
453e7d03d4
10 changed files with 127 additions and 118 deletions
|
@ -6,7 +6,7 @@
|
|||
//!
|
||||
//! [container]: https://drafts.csswg.org/css-contain-3/#container-rule
|
||||
|
||||
use crate::media_queries::MediaCondition;
|
||||
use crate::queries::QueryCondition;
|
||||
use crate::shared_lock::{
|
||||
DeepCloneParams, DeepCloneWithLock, Locked, SharedRwLock, SharedRwLockReadGuard, ToCssWithGuard,
|
||||
};
|
||||
|
@ -76,4 +76,4 @@ impl ToCssWithGuard for ContainerRule {
|
|||
}
|
||||
|
||||
/// TODO: Factor out the media query code to work with containers.
|
||||
pub type ContainerCondition = MediaCondition;
|
||||
pub type ContainerCondition = QueryCondition;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue