mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Move console timers to GlobalScope
This commit is contained in:
parent
d7c2da450b
commit
14a0b8d88c
5 changed files with 35 additions and 66 deletions
|
@ -27,7 +27,6 @@ use dom::bindings::str::DOMString;
|
|||
use dom::bindings::structuredclone::StructuredCloneData;
|
||||
use dom::bindings::utils::{GlobalStaticData, WindowProxyHandler};
|
||||
use dom::browsingcontext::BrowsingContext;
|
||||
use dom::console::TimerSet;
|
||||
use dom::crypto::Crypto;
|
||||
use dom::cssstyledeclaration::{CSSModificationAccess, CSSStyleDeclaration};
|
||||
use dom::document::Document;
|
||||
|
@ -266,9 +265,6 @@ pub struct Window {
|
|||
|
||||
/// https://html.spec.whatwg.org/multipage/#in-error-reporting-mode
|
||||
in_error_reporting_mode: Cell<bool>,
|
||||
|
||||
/// Timers used by the Console API.
|
||||
console_timers: TimerSet,
|
||||
}
|
||||
|
||||
impl Window {
|
||||
|
@ -1661,16 +1657,11 @@ impl Window {
|
|||
error_reporter: error_reporter,
|
||||
scroll_offsets: DOMRefCell::new(HashMap::new()),
|
||||
in_error_reporting_mode: Cell::new(false),
|
||||
console_timers: TimerSet::new(),
|
||||
};
|
||||
|
||||
WindowBinding::Wrap(runtime.cx(), win)
|
||||
}
|
||||
|
||||
pub fn console_timers(&self) -> &TimerSet {
|
||||
&self.console_timers
|
||||
}
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#report-the-error
|
||||
pub fn report_an_error(&self, error_info: ErrorInfo, value: HandleValue) {
|
||||
// Step 1.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue