aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_dom/shadow_root.rs
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-05-19 22:49:36 +0200
committerGitHub <noreply@github.com>2023-05-19 22:49:36 +0200
commit2426a38a4d11615d71c34649b83436aa1f109260 (patch)
treea5c682e2f3d93813aa5e42c8f50f3f6512b73574 /components/script/layout_dom/shadow_root.rs
parent71c5bb02b41b8d98b1612563558c2c14b3e20b1a (diff)
parentdbb92b99ad359634e8b84417b8264f84bfc5d056 (diff)
downloadservo-2426a38a4d11615d71c34649b83436aa1f109260.tar.gz
servo-2426a38a4d11615d71c34649b83436aa1f109260.zip
Auto merge of #29748 - Loirooriol:sync, r=mrobinson
Backport several style changes from Gecko <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/layout_dom/shadow_root.rs')
-rw-r--r--components/script/layout_dom/shadow_root.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/components/script/layout_dom/shadow_root.rs b/components/script/layout_dom/shadow_root.rs
index 2fd1511ccfa..19336befe74 100644
--- a/components/script/layout_dom/shadow_root.rs
+++ b/components/script/layout_dom/shadow_root.rs
@@ -7,13 +7,11 @@ use crate::dom::shadowroot::{LayoutShadowRootHelpers, ShadowRoot};
use crate::layout_dom::ServoLayoutElement;
use crate::layout_dom::ServoLayoutNode;
use script_layout_interface::wrapper_traits::LayoutDataTrait;
-use selectors::matching::QuirksMode;
use std::fmt;
use std::marker::PhantomData;
use style::dom::TShadowRoot;
-use style::media_queries::Device;
use style::shared_lock::SharedRwLockReadGuard as StyleSharedRwLockReadGuard;
-use style::stylist::CascadeData;
+use style::stylist::{CascadeData, Stylist};
pub struct ServoShadowRoot<'dom, LayoutDataType: LayoutDataTrait> {
/// The wrapped private DOM ShadowRoot.
@@ -74,11 +72,10 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoShadowRoot<'dom, LayoutDataType
pub unsafe fn flush_stylesheets(
&self,
- device: &Device,
- quirks_mode: QuirksMode,
+ stylist: &mut Stylist,
guard: &StyleSharedRwLockReadGuard,
) {
self.shadow_root
- .flush_stylesheets::<ServoLayoutElement<LayoutDataType>>(device, quirks_mode, guard)
+ .flush_stylesheets::<ServoLayoutElement<LayoutDataType>>(stylist, guard)
}
}