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:
Brandon Fairchild
2016-01-13 02:28:32 +05:00
parent 050c997f1c
commit 4129b9f1ae
5 changed files with 16 additions and 14 deletions

View File

@@ -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 {