зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1710840 - Part 2: Get rid of NS_ERROR_DOM_SVG_WRONG_TYPE_ERR; r=smaug
Depends on D114964 Differential Revision: https://phabricator.services.mozilla.com/D114965
This commit is contained in:
Родитель
c681831600
Коммит
acf4edd8ea
|
@ -464,7 +464,6 @@ const ErrorCodes = {
|
|||
NS_ERROR_DUPLICATE_HANDLE: 0x80610002,
|
||||
NS_ERROR_BRIDGE_OPEN_PARENT: 0x80610003,
|
||||
NS_ERROR_BRIDGE_OPEN_CHILD: 0x80610004,
|
||||
NS_ERROR_DOM_SVG_WRONG_TYPE_ERR: 0x80620000,
|
||||
NS_ERROR_STORAGE_BUSY: 0x80630001,
|
||||
NS_ERROR_STORAGE_IOERR: 0x80630002,
|
||||
NS_ERROR_STORAGE_CONSTRAINT: 0x80630003,
|
||||
|
|
|
@ -40,10 +40,6 @@ DOM4_MSG_DEF(UnknownError, "The operation failed for an unknown transient reason
|
|||
DOM4_MSG_DEF(DataError, "Data provided to an operation does not meet requirements", NS_ERROR_DOM_DATA_ERR)
|
||||
DOM4_MSG_DEF(OperationError, "The operation failed for an operation-specific reason", NS_ERROR_DOM_OPERATION_ERR)
|
||||
|
||||
/* SVG DOM errors from http://www.w3.org/TR/SVG11/svgdom.html */
|
||||
|
||||
DOM4_MSG_DEF(TypeError, "Unknown or invalid type", NS_ERROR_DOM_SVG_WRONG_TYPE_ERR)
|
||||
|
||||
/* XPath errors from http://www.w3.org/TR/DOM-Level-3-XPath/ */
|
||||
|
||||
DOM4_MSG_DEF(SyntaxError, "The expression is not a legal expression.", NS_ERROR_DOM_INVALID_EXPRESSION_ERR)
|
||||
|
|
|
@ -113,7 +113,7 @@ void SVGMarkerElement::SetOrientToAuto() {
|
|||
void SVGMarkerElement::SetOrientToAngle(DOMSVGAngle& angle, ErrorResult& rv) {
|
||||
float f = angle.Value();
|
||||
if (!IsFinite(f)) {
|
||||
rv.Throw(NS_ERROR_DOM_SVG_WRONG_TYPE_ERR);
|
||||
rv.ThrowTypeError("Unknown or invalid type");
|
||||
return;
|
||||
}
|
||||
mOrient.SetBaseValue(f, angle.UnitType(), this, true);
|
||||
|
|
|
@ -1046,14 +1046,6 @@ with modules["IPC"]:
|
|||
errors["NS_ERROR_BRIDGE_OPEN_CHILD"] = FAILURE(4)
|
||||
|
||||
|
||||
# =======================================================================
|
||||
# 29: NS_ERROR_MODULE_SVG
|
||||
# =======================================================================
|
||||
with modules["SVG"]:
|
||||
# SVG DOM error codes from http://www.w3.org/TR/SVG11/svgdom.html
|
||||
errors["NS_ERROR_DOM_SVG_WRONG_TYPE_ERR"] = FAILURE(0)
|
||||
|
||||
|
||||
# =======================================================================
|
||||
# 30: NS_ERROR_MODULE_STORAGE
|
||||
# =======================================================================
|
||||
|
|
Загрузка…
Ссылка в новой задаче