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:
Steven Novaryo 2025-01-10 17:04:49 +08:00 committed by GitHub
parent c94d909a86
commit bbb255d81c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 41 additions and 167 deletions

View file

@ -20,7 +20,7 @@ use crate::geom::{
AuOrAuto, LengthPercentageOrAuto, PhysicalPoint, PhysicalRect, PhysicalSides, ToLogical,
};
use crate::style_ext::ComputedValuesExt;
use crate::taffy::DetailedTaffyGridInfo;
use crate::taffy::SpecificTaffyGridInfo;
/// Describes how a [`BoxFragment`] paints its background.
pub(crate) enum BackgroundMode {
@ -41,8 +41,8 @@ pub(crate) struct ExtraBackground {
}
#[derive(Clone, Debug)]
pub(crate) enum DetailedLayoutInfo {
Grid(Box<DetailedTaffyGridInfo>),
pub(crate) enum SpecificLayoutInfo {
Grid(Box<SpecificTaffyGridInfo>),
}
#[derive(Serialize)]
@ -89,7 +89,7 @@ pub(crate) struct BoxFragment {
/// Additional information of from layout that could be used by Javascripts and devtools.
#[serde(skip_serializing)]
pub detailed_layout_info: Option<DetailedLayoutInfo>,
pub detailed_layout_info: Option<SpecificLayoutInfo>,
}
impl BoxFragment {
@ -177,7 +177,7 @@ impl BoxFragment {
self.background_mode = BackgroundMode::None;
}
pub fn with_detailed_layout_info(mut self, info: Option<DetailedLayoutInfo>) -> Self {
pub fn with_detailed_layout_info(mut self, info: Option<SpecificLayoutInfo>) -> Self {
self.detailed_layout_info = info;
self
}