aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-05-04 15:50:57 +0200
committerSimon Sapin <simon.sapin@exyr.org>2020-05-15 13:37:09 +0200
commit1f6efbf9e94542bde390cf9edfe56a03b09c351e (patch)
tree84d6749d2cb4572f74f8744b817ca4c11d9964b6 /components/layout_thread_2020/lib.rs
parentc7acfc37ed774cbec0bc3be7722c11facbbf8ac8 (diff)
downloadservo-1f6efbf9e94542bde390cf9edfe56a03b09c351e.tar.gz
servo-1f6efbf9e94542bde390cf9edfe56a03b09c351e.zip
Correctly paint the CSS canvas’ background
https://drafts.csswg.org/css-backgrounds/#special-backgrounds Fixes https://github.com/servo/servo/issues/25559 Closes https://github.com/servo/servo/pull/26121, as it is an alternative.
Diffstat (limited to 'components/layout_thread_2020/lib.rs')
-rw-r--r--components/layout_thread_2020/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs
index 0ad917f3a18..a62a172d19d 100644
--- a/components/layout_thread_2020/lib.rs
+++ b/components/layout_thread_2020/lib.rs
@@ -1294,11 +1294,8 @@ impl LayoutThread {
document.will_paint();
}
- let mut display_list = DisplayListBuilder::new(
- self.id.to_webrender(),
- context,
- fragment_tree.scrollable_overflow(),
- );
+ let mut display_list =
+ DisplayListBuilder::new(self.id.to_webrender(), context, &fragment_tree);
// `dump_serialized_display_list` doesn't actually print anything. It sets up
// the display list for printing the serialized version when `finalize()` is called.