mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
layout: Lay out collapsed table rows and columns, but don't paint them (#39027)
It's expected that script queries be able to interact with collapsed table rows and columns, so this change starts laying them out. They still do not affect table dimensions, nor are they painted. This does not fix all interaction with collapsed rows and columns. For instance, setting scroll offsets of contained scrolling nodes does not work properly. It does fix the panic though, which is the most important thing. Testing: this change includes a new WPT crash test. Fixes: #37421. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
236e28aeab
commit
fc30a26005
6 changed files with 59 additions and 8 deletions
|
@ -849,6 +849,13 @@ impl Fragment {
|
|||
mode: StackingContextBuildMode,
|
||||
text_decorations: &Arc<Vec<FragmentTextDecoration>>,
|
||||
) {
|
||||
if self
|
||||
.base()
|
||||
.is_some_and(|base| base.flags.contains(FragmentFlags::IS_COLLAPSED))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
let containing_block = containing_block_info.get_containing_block_for_fragment(self);
|
||||
let fragment_clone = self.clone();
|
||||
match self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue