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:
Mateusz Naściszewski 2017-09-14 12:24:03 +02:00 committed by Martin Robinson
parent f1596e83a9
commit 7429b7dcd9

View file

@ -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 {