mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Update WR to use the new sticky positioning API
This commit is contained in:
parent
17bfe5c120
commit
f37fa0cf6d
6 changed files with 58 additions and 32 deletions
|
@ -540,10 +540,16 @@ impl WebRenderDisplayItemConverter for DisplayItem {
|
|||
scroll_sensitivity
|
||||
)
|
||||
}
|
||||
ClipScrollNodeType::StickyFrame(sticky_frame_info) => {
|
||||
ClipScrollNodeType::StickyFrame(ref sticky_data) => {
|
||||
// TODO: Add define_sticky_frame_with_parent to WebRender.
|
||||
builder.push_clip_id(parent_id);
|
||||
let id = builder.define_sticky_frame(node.id, item_rect, sticky_frame_info);
|
||||
let id = builder.define_sticky_frame(
|
||||
node.id,
|
||||
item_rect,
|
||||
sticky_data.margins,
|
||||
sticky_data.vertical_offset_bounds,
|
||||
sticky_data.horizontal_offset_bounds,
|
||||
);
|
||||
builder.pop_clip_id();
|
||||
id
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue