layout: Allow different collapsed border style/color within a row/column (#35003)

We were previously using the same style and color for two collapsed
borders sharing a coordinate. Now such a line of collapsed borders can
be piecewise and have different colors and styles.

This still doesn't add support for piecewise border widths.

Also, since we are currently painting borders as part of the table and
cell boxes, and a box side can't have a piecewise border, this patch
only really works when:
 - There aren't spanning cells
 - The table has no assigned border (only the cells and tracks have it)

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-01-16 03:24:00 -08:00 committed by GitHub
parent a1326a7cf6
commit d58aa7fc04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 116 additions and 100 deletions

View file

@ -40,7 +40,7 @@ pub struct LogicalRect<T> {
pub size: LogicalVec2<T>,
}
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, Default)]
pub struct LogicalSides<T> {
pub inline_start: T,
pub inline_end: T,