mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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>
This commit is contained in:
parent
f220d6d3a5
commit
c94d909a86
585 changed files with 5411 additions and 5013 deletions
|
@ -28,7 +28,7 @@ use crate::script_runtime::{CanGc, JSContext};
|
|||
|
||||
#[dom_struct]
|
||||
#[allow(non_snake_case)]
|
||||
pub struct ExtendableMessageEvent {
|
||||
pub(crate) struct ExtendableMessageEvent {
|
||||
/// <https://w3c.github.io/ServiceWorker/#extendableevent>
|
||||
event: ExtendableEvent,
|
||||
/// <https://w3c.github.io/ServiceWorker/#dom-extendablemessageevent-data>
|
||||
|
@ -46,7 +46,7 @@ pub struct ExtendableMessageEvent {
|
|||
|
||||
#[allow(non_snake_case)]
|
||||
impl ExtendableMessageEvent {
|
||||
pub fn new_inherited(
|
||||
pub(crate) fn new_inherited(
|
||||
origin: DOMString,
|
||||
lastEventId: DOMString,
|
||||
ports: Vec<DomRoot<MessagePort>>,
|
||||
|
@ -65,7 +65,7 @@ impl ExtendableMessageEvent {
|
|||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
pub(crate) fn new(
|
||||
global: &GlobalScope,
|
||||
type_: Atom,
|
||||
bubbles: bool,
|
||||
|
@ -121,7 +121,7 @@ impl ExtendableMessageEvent {
|
|||
|
||||
#[allow(non_snake_case)]
|
||||
impl ExtendableMessageEvent {
|
||||
pub fn dispatch_jsval(
|
||||
pub(crate) fn dispatch_jsval(
|
||||
target: &EventTarget,
|
||||
scope: &GlobalScope,
|
||||
message: HandleValue,
|
||||
|
@ -144,7 +144,7 @@ impl ExtendableMessageEvent {
|
|||
.fire(target, can_gc);
|
||||
}
|
||||
|
||||
pub fn dispatch_error(target: &EventTarget, scope: &GlobalScope, can_gc: CanGc) {
|
||||
pub(crate) fn dispatch_error(target: &EventTarget, scope: &GlobalScope, can_gc: CanGc) {
|
||||
let init = ExtendableMessageEventBinding::ExtendableMessageEventInit::empty();
|
||||
let ExtendableMsgEvent = ExtendableMessageEvent::new(
|
||||
scope,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue