New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
layout: Properly parent table-row and table-row-group #31619
Conversation
🔨 Triggering try run (#8236896416) for Linux WPT |
Test results for linux-wpt-layout-2020 from try job (#8236896416): Flaky unexpected result (19)
Stable unexpected results that are known to be intermittent (17)
Stable unexpected results (24)
|
|
b8155b9
to
d827e36
Compare
🔨 Triggering try run (#8245824214) for Linux WPT |
Test results for linux-wpt-layout-2020 from try job (#8245824214): Flaky unexpected result (15)
Stable unexpected results that are known to be intermittent (18)
Stable unexpected results (5)
|
|
@@ -26,7 +26,7 @@ pub type LengthOrAuto = AutoOr<Length>; | |||
pub type AuOrAuto = AutoOr<Au>; | |||
pub type LengthPercentageOrAuto<'a> = AutoOr<&'a LengthPercentage>; | |||
|
|||
#[derive(Clone, Serialize)] | |||
#[derive(Clone, Copy, Serialize)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then there is a bunch of existing .clone()
that become unnecessary. Should they be removed here, or be left for a follow-up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. In addition to the cleanup that we can do now that AddAssign
and SubAssign
don't need to take references for LogicalVec
, I think this can be in a followup.
let row_group = self | ||
.current_row_group_index | ||
.map(|index| &mut self.builder.table.row_groups[index]); | ||
if let Some(row_group) = row_group { | ||
row_group.track_range.end = last_row; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this seems simpler as
if let Some(index) = self.current_row_group_index {
let row_group = &mut self.builder.table.row_groups[index];
row_group.track_range.end = last_row;
}
Put table cell content fragments into a hieararchy of fragments that include their table row and table row group fragments. This ensures that things like relative positioning and transforms set on rows and row groups properly affect cells and cell content. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
d827e36
to
179a613
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review!
@@ -26,7 +26,7 @@ pub type LengthOrAuto = AutoOr<Length>; | |||
pub type AuOrAuto = AutoOr<Au>; | |||
pub type LengthPercentageOrAuto<'a> = AutoOr<&'a LengthPercentage>; | |||
|
|||
#[derive(Clone, Serialize)] | |||
#[derive(Clone, Copy, Serialize)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. In addition to the cleanup that we can do now that AddAssign
and SubAssign
don't need to take references for LogicalVec
, I think this can be in a followup.
There are a few new failures here. At least one or two of these are due to tests expecting that a transform on |
Put table cell content fragments into a hieararchy of fragments that
include their table row and table row group fragments. This ensures that
things like relative positioning and transforms set on rows and row
groups properly affect cells and cell content.
Co-authored-by: Oriol Brufau obrufau@igalia.com
./mach build -d
does not report any errors./mach test-tidy
does not report any errors