mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Avoid creating multiple scroll roots for sticky tables
This should prevent problems when a table has position:sticky and overflow:scroll.
This commit is contained in:
parent
f1596e83a9
commit
7429b7dcd9
1 changed files with 3 additions and 0 deletions
|
@ -2648,6 +2648,9 @@ impl BlockFlowDisplayListBuilding for BlockFlow {
|
|||
|
||||
let new_clip_scroll_node_id = ClipId::new(self.fragment.unique_id(IdType::OverflowClip),
|
||||
state.pipeline_id.to_webrender());
|
||||
if state.has_clip_scroll_node(new_clip_scroll_node_id) {
|
||||
return;
|
||||
}
|
||||
let parent_id = self.clip_and_scroll_info(state.pipeline_id).scroll_node_id;
|
||||
state.add_clip_scroll_node(
|
||||
ClipScrollNode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue