mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Add a topLevelDomComplete metric.
This commit is contained in:
parent
26feea3be5
commit
074447e501
7 changed files with 59 additions and 0 deletions
|
@ -141,6 +141,13 @@ impl DocumentLoader {
|
|||
!self.blocking_loads.is_empty()
|
||||
}
|
||||
|
||||
pub fn is_only_blocked_by_iframes(&self) -> bool {
|
||||
self.blocking_loads.iter().all(|load| match *load {
|
||||
LoadType::Subframe(_) => true,
|
||||
_ => false
|
||||
})
|
||||
}
|
||||
|
||||
pub fn inhibit_events(&mut self) {
|
||||
self.events_inhibited = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue