diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-04-19 14:45:47 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-04-20 08:51:38 +0200 |
commit | d150cc9f95c45f80a96678a3ed1c8e076f005382 (patch) | |
tree | d3f7dded41ee67b2cc86948207bcc7c74dc3f4cf /components/layout/traversal.rs | |
parent | 7919e591a46274c0d7f3a7c7c99d2643d55d60f1 (diff) | |
download | servo-d150cc9f95c45f80a96678a3ed1c8e076f005382.tar.gz servo-d150cc9f95c45f80a96678a3ed1c8e076f005382.zip |
Eliminate ScrollRootId
Just use WebRender's ClipId directly. This will allow us to create and
use ReferenceFrames in the future, if we need to do that. It will also
make it easier to have Servo responsible for creating the root
scrolling area, which will allow removing some old hacks in the future.
Diffstat (limited to 'components/layout/traversal.rs')
-rw-r--r-- | components/layout/traversal.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/traversal.rs b/components/layout/traversal.rs index 88852e4193a..ab4f2c2f1b6 100644 --- a/components/layout/traversal.rs +++ b/components/layout/traversal.rs @@ -242,7 +242,7 @@ impl<'a> BuildDisplayList<'a> { self.state.current_stacking_context_id = flow::base(flow).stacking_context_id; let parent_scroll_root_id = self.state.current_scroll_root_id; - self.state.current_scroll_root_id = flow::base(flow).scroll_root_id; + self.state.current_scroll_root_id = flow.scroll_root_id(self.state.layout_context.id); if self.should_process() { flow.build_display_list(&mut self.state); |