mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Change the representation of DOMErrorName to u16.
This matches the IDL definitions.
This commit is contained in:
parent
a65a1088a4
commit
c84dfa0f1d
1 changed files with 21 additions and 21 deletions
|
@ -13,30 +13,30 @@ use util::str::DOMString;
|
||||||
|
|
||||||
use std::borrow::ToOwned;
|
use std::borrow::ToOwned;
|
||||||
|
|
||||||
#[repr(uint)]
|
#[repr(u16)]
|
||||||
#[derive(Copy, Debug)]
|
#[derive(Copy, Debug)]
|
||||||
#[jstraceable]
|
#[jstraceable]
|
||||||
pub enum DOMErrorName {
|
pub enum DOMErrorName {
|
||||||
IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR as uint,
|
IndexSizeError = DOMExceptionConstants::INDEX_SIZE_ERR,
|
||||||
HierarchyRequestError = DOMExceptionConstants::HIERARCHY_REQUEST_ERR as uint,
|
HierarchyRequestError = DOMExceptionConstants::HIERARCHY_REQUEST_ERR,
|
||||||
WrongDocumentError = DOMExceptionConstants::WRONG_DOCUMENT_ERR as uint,
|
WrongDocumentError = DOMExceptionConstants::WRONG_DOCUMENT_ERR,
|
||||||
InvalidCharacterError = DOMExceptionConstants::INVALID_CHARACTER_ERR as uint,
|
InvalidCharacterError = DOMExceptionConstants::INVALID_CHARACTER_ERR,
|
||||||
NoModificationAllowedError = DOMExceptionConstants::NO_MODIFICATION_ALLOWED_ERR as uint,
|
NoModificationAllowedError = DOMExceptionConstants::NO_MODIFICATION_ALLOWED_ERR,
|
||||||
NotFoundError = DOMExceptionConstants::NOT_FOUND_ERR as uint,
|
NotFoundError = DOMExceptionConstants::NOT_FOUND_ERR,
|
||||||
NotSupportedError = DOMExceptionConstants::NOT_SUPPORTED_ERR as uint,
|
NotSupportedError = DOMExceptionConstants::NOT_SUPPORTED_ERR,
|
||||||
InvalidStateError = DOMExceptionConstants::INVALID_STATE_ERR as uint,
|
InvalidStateError = DOMExceptionConstants::INVALID_STATE_ERR,
|
||||||
SyntaxError = DOMExceptionConstants::SYNTAX_ERR as uint,
|
SyntaxError = DOMExceptionConstants::SYNTAX_ERR,
|
||||||
InvalidModificationError = DOMExceptionConstants::INVALID_MODIFICATION_ERR as uint,
|
InvalidModificationError = DOMExceptionConstants::INVALID_MODIFICATION_ERR,
|
||||||
NamespaceError = DOMExceptionConstants::NAMESPACE_ERR as uint,
|
NamespaceError = DOMExceptionConstants::NAMESPACE_ERR,
|
||||||
InvalidAccessError = DOMExceptionConstants::INVALID_ACCESS_ERR as uint,
|
InvalidAccessError = DOMExceptionConstants::INVALID_ACCESS_ERR,
|
||||||
SecurityError = DOMExceptionConstants::SECURITY_ERR as uint,
|
SecurityError = DOMExceptionConstants::SECURITY_ERR,
|
||||||
NetworkError = DOMExceptionConstants::NETWORK_ERR as uint,
|
NetworkError = DOMExceptionConstants::NETWORK_ERR,
|
||||||
AbortError = DOMExceptionConstants::ABORT_ERR as uint,
|
AbortError = DOMExceptionConstants::ABORT_ERR,
|
||||||
URLMismatchError = DOMExceptionConstants::URL_MISMATCH_ERR as uint,
|
URLMismatchError = DOMExceptionConstants::URL_MISMATCH_ERR,
|
||||||
QuotaExceededError = DOMExceptionConstants::QUOTA_EXCEEDED_ERR as uint,
|
QuotaExceededError = DOMExceptionConstants::QUOTA_EXCEEDED_ERR,
|
||||||
TimeoutError = DOMExceptionConstants::TIMEOUT_ERR as uint,
|
TimeoutError = DOMExceptionConstants::TIMEOUT_ERR,
|
||||||
InvalidNodeTypeError = DOMExceptionConstants::INVALID_NODE_TYPE_ERR as uint,
|
InvalidNodeTypeError = DOMExceptionConstants::INVALID_NODE_TYPE_ERR,
|
||||||
DataCloneError = DOMExceptionConstants::DATA_CLONE_ERR as uint,
|
DataCloneError = DOMExceptionConstants::DATA_CLONE_ERR,
|
||||||
EncodingError
|
EncodingError
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue