aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/datatransferitemlist.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2025-01-10 03:19:19 -0500
committerGitHub <noreply@github.com>2025-01-10 08:19:19 +0000
commitc94d909a8688589209cdf0c7ae58e40f9b8c411e (patch)
tree12febf23eed4438249fd4d276c4d8b35dee22a97 /components/script/dom/datatransferitemlist.rs
parentf220d6d3a52296794cd19935e9e59cc75a179a44 (diff)
downloadservo-c94d909a8688589209cdf0c7ae58e40f9b8c411e.tar.gz
servo-c94d909a8688589209cdf0c7ae58e40f9b8c411e.zip
script: Limit public exports. (#34915)
* script: Restrict reexport visibility of DOM types. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Mass pub->pub(crate) conversion. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Hide existing dead code warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy warnings. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix unit tests. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Fix clippy. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * More formatting. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/dom/datatransferitemlist.rs')
-rw-r--r--components/script/dom/datatransferitemlist.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/datatransferitemlist.rs b/components/script/dom/datatransferitemlist.rs
index 0a0c44c5e04..a52ecae3b65 100644
--- a/components/script/dom/datatransferitemlist.rs
+++ b/components/script/dom/datatransferitemlist.rs
@@ -21,7 +21,7 @@ use crate::drag_data_store::{Binary, DragDataStore, Kind, Mode, PlainString};
use crate::script_runtime::{CanGc, JSContext};
#[dom_struct]
-pub struct DataTransferItemList {
+pub(crate) struct DataTransferItemList {
reflector_: Reflector,
#[ignore_malloc_size_of = "Rc"]
#[no_trace]
@@ -39,7 +39,7 @@ impl DataTransferItemList {
}
}
- pub fn new(
+ pub(crate) fn new(
window: &Window,
data_store: Rc<RefCell<Option<DragDataStore>>>,
) -> DomRoot<DataTransferItemList> {
@@ -50,7 +50,7 @@ impl DataTransferItemList {
)
}
- pub fn frozen_types(&self, cx: JSContext, retval: MutableHandleValue) {
+ pub(crate) fn frozen_types(&self, cx: JSContext, retval: MutableHandleValue) {
self.frozen_types.get_or_init(
|| {
self.data_store
@@ -63,7 +63,7 @@ impl DataTransferItemList {
);
}
- pub fn invalidate_frozen_types(&self) {
+ pub(crate) fn invalidate_frozen_types(&self) {
self.frozen_types.clear();
}
}