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
|
@ -16,7 +16,7 @@ use crate::dom::globalscope::GlobalScope;
|
|||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct PerformanceEntry {
|
||||
pub(crate) struct PerformanceEntry {
|
||||
reflector_: Reflector,
|
||||
name: DOMString,
|
||||
entry_type: DOMString,
|
||||
|
@ -30,7 +30,7 @@ pub struct PerformanceEntry {
|
|||
}
|
||||
|
||||
impl PerformanceEntry {
|
||||
pub fn new_inherited(
|
||||
pub(crate) fn new_inherited(
|
||||
name: DOMString,
|
||||
entry_type: DOMString,
|
||||
start_time: Option<CrossProcessInstant>,
|
||||
|
@ -46,7 +46,7 @@ impl PerformanceEntry {
|
|||
}
|
||||
|
||||
#[allow(crown::unrooted_must_root)]
|
||||
pub fn new(
|
||||
pub(crate) fn new(
|
||||
global: &GlobalScope,
|
||||
name: DOMString,
|
||||
entry_type: DOMString,
|
||||
|
@ -57,19 +57,19 @@ impl PerformanceEntry {
|
|||
reflect_dom_object(Box::new(entry), global, CanGc::note())
|
||||
}
|
||||
|
||||
pub fn entry_type(&self) -> &DOMString {
|
||||
pub(crate) fn entry_type(&self) -> &DOMString {
|
||||
&self.entry_type
|
||||
}
|
||||
|
||||
pub fn name(&self) -> &DOMString {
|
||||
pub(crate) fn name(&self) -> &DOMString {
|
||||
&self.name
|
||||
}
|
||||
|
||||
pub fn start_time(&self) -> Option<CrossProcessInstant> {
|
||||
pub(crate) fn start_time(&self) -> Option<CrossProcessInstant> {
|
||||
self.start_time
|
||||
}
|
||||
|
||||
pub fn duration(&self) -> Duration {
|
||||
pub(crate) fn duration(&self) -> Duration {
|
||||
self.duration
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue