mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
layout: grid-template getComputedStyle cleanup (#34926)
* Update Taffy and WPT expectations Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Rename DetailedInfo to SpecificInfo Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> * Run fmt Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> --------- Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
This commit is contained in:
parent
c94d909a86
commit
bbb255d81c
12 changed files with 41 additions and 167 deletions
|
@ -121,15 +121,15 @@ impl TaffyItemBox {
|
|||
|
||||
/// Details from Taffy grid layout that will be stored
|
||||
#[derive(Clone, Debug)]
|
||||
pub(crate) struct DetailedTaffyGridInfo {
|
||||
pub rows: DetailedTaffyGridTrackInfo,
|
||||
pub columns: DetailedTaffyGridTrackInfo,
|
||||
pub(crate) struct SpecificTaffyGridInfo {
|
||||
pub rows: SpecificTaffyGridTrackInfo,
|
||||
pub columns: SpecificTaffyGridTrackInfo,
|
||||
}
|
||||
|
||||
impl DetailedTaffyGridInfo {
|
||||
impl SpecificTaffyGridInfo {
|
||||
fn from_detailed_grid_layout(grid_info: taffy::DetailedGridInfo) -> Self {
|
||||
Self {
|
||||
rows: DetailedTaffyGridTrackInfo {
|
||||
rows: SpecificTaffyGridTrackInfo {
|
||||
sizes: grid_info
|
||||
.rows
|
||||
.sizes
|
||||
|
@ -137,7 +137,7 @@ impl DetailedTaffyGridInfo {
|
|||
.map(|size| Au::from_f32_px(*size))
|
||||
.collect(),
|
||||
},
|
||||
columns: DetailedTaffyGridTrackInfo {
|
||||
columns: SpecificTaffyGridTrackInfo {
|
||||
sizes: grid_info
|
||||
.columns
|
||||
.sizes
|
||||
|
@ -150,6 +150,6 @@ impl DetailedTaffyGridInfo {
|
|||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub(crate) struct DetailedTaffyGridTrackInfo {
|
||||
pub(crate) struct SpecificTaffyGridTrackInfo {
|
||||
pub sizes: Box<[Au]>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue