diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-07-10 15:54:39 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-07-10 17:35:50 +0200 |
commit | 3230162fd0ac96dea77c683b2067ae65ec7ed0b4 (patch) | |
tree | a514617f5d3b72eb5e00cf60b86d8478de9b0e02 /components/layout_2020/fragment_tree/fragment_tree.rs | |
parent | 1543912589e67734f0b684e1db900f41a4c04a1a (diff) | |
download | servo-3230162fd0ac96dea77c683b2067ae65ec7ed0b4.tar.gz servo-3230162fd0ac96dea77c683b2067ae65ec7ed0b4.zip |
Try to `use` WebRender types more
The newer versions of WebRender move types around between `webrender` and
`webrender_api` and this will reduce the churn during the upgrade.
Diffstat (limited to 'components/layout_2020/fragment_tree/fragment_tree.rs')
-rw-r--r-- | components/layout_2020/fragment_tree/fragment_tree.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout_2020/fragment_tree/fragment_tree.rs b/components/layout_2020/fragment_tree/fragment_tree.rs index 6234d9e3390..799eddc3dbd 100644 --- a/components/layout_2020/fragment_tree/fragment_tree.rs +++ b/components/layout_2020/fragment_tree/fragment_tree.rs @@ -14,6 +14,7 @@ use gfx_traits::print_tree::PrintTree; use style::animation::AnimationSetKey; use style::dom::OpaqueNode; use style::values::computed::Length; +use webrender_api::units; #[derive(Serialize)] pub struct FragmentTree { @@ -61,8 +62,8 @@ impl FragmentTree { } } - pub fn scrollable_overflow(&self) -> webrender_api::units::LayoutSize { - webrender_api::units::LayoutSize::from_untyped(Size2D::new( + pub fn scrollable_overflow(&self) -> units::LayoutSize { + units::LayoutSize::from_untyped(Size2D::new( self.scrollable_overflow.size.width.px(), self.scrollable_overflow.size.height.px(), )) |