Remove Document::set_allow_declarative_shadow_roots (#38143)

This method is unused. `rustc` didn't complain because it was marked as
`pub` (which it shouldn't have been). A few of the surrounding methods
were also `pub`, which this change fixes.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-07-17 18:43:56 +02:00 committed by GitHub
parent fe2c13c777
commit 9a5a33190d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5217,19 +5217,15 @@ impl Document {
}
/// <https://dom.spec.whatwg.org/#document-allow-declarative-shadow-roots>
pub fn allow_declarative_shadow_roots(&self) -> bool {
pub(crate) fn allow_declarative_shadow_roots(&self) -> bool {
self.allow_declarative_shadow_roots.get()
}
pub fn set_allow_declarative_shadow_roots(&self, value: bool) {
self.allow_declarative_shadow_roots.set(value)
}
pub fn has_trustworthy_ancestor_origin(&self) -> bool {
pub(crate) fn has_trustworthy_ancestor_origin(&self) -> bool {
self.has_trustworthy_ancestor_origin.get()
}
pub fn has_trustworthy_ancestor_or_current_origin(&self) -> bool {
pub(crate) fn has_trustworthy_ancestor_or_current_origin(&self) -> bool {
self.has_trustworthy_ancestor_origin.get() ||
self.origin().immutable().is_potentially_trustworthy()
}