mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -21,10 +21,12 @@ pub struct PerformanceEntry {
|
|||
}
|
||||
|
||||
impl PerformanceEntry {
|
||||
pub fn new_inherited(name: DOMString,
|
||||
entry_type: DOMString,
|
||||
start_time: f64,
|
||||
duration: f64) -> PerformanceEntry {
|
||||
pub fn new_inherited(
|
||||
name: DOMString,
|
||||
entry_type: DOMString,
|
||||
start_time: f64,
|
||||
duration: f64,
|
||||
) -> PerformanceEntry {
|
||||
PerformanceEntry {
|
||||
reflector_: Reflector::new(),
|
||||
name,
|
||||
|
@ -35,11 +37,13 @@ impl PerformanceEntry {
|
|||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn new(global: &GlobalScope,
|
||||
name: DOMString,
|
||||
entry_type: DOMString,
|
||||
start_time: f64,
|
||||
duration: f64) -> DomRoot<PerformanceEntry> {
|
||||
pub fn new(
|
||||
global: &GlobalScope,
|
||||
name: DOMString,
|
||||
entry_type: DOMString,
|
||||
start_time: f64,
|
||||
duration: f64,
|
||||
) -> DomRoot<PerformanceEntry> {
|
||||
let entry = PerformanceEntry::new_inherited(name, entry_type, start_time, duration);
|
||||
reflect_dom_object(Box::new(entry), global, PerformanceEntryBinding::Wrap)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue