servo: Merge #9279 - Move DocumentState to script_traits (from nerith:documentstate); r=nox
Fixes #9224. Source-Repo: https://github.com/servo/servo Source-Revision: cbb5a0d8726313545d95fe0261145a5350857e93
This commit is contained in:
@@ -219,15 +219,6 @@ pub enum AnimationState {
|
||||
NoAnimationCallbacksPresent,
|
||||
}
|
||||
|
||||
/// Used to determine if a script has any pending asynchronous activity.
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Deserialize, Serialize)]
|
||||
pub enum DocumentState {
|
||||
/// The document has been loaded and is idle.
|
||||
Idle,
|
||||
/// The document is either loading or waiting on an event.
|
||||
Pending,
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/Using_the_Browser_API#Events
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum MozBrowserEvent {
|
||||
|
||||
Reference in New Issue
Block a user