mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
fe2c13c777
commit
9a5a33190d
1 changed files with 3 additions and 7 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue