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:
Edgar Chen 2021-05-12 23:32:38 +00:00
Родитель c681831600
Коммит acf4edd8ea
4 изменённых файлов: 1 добавлений и 14 удалений

Просмотреть файл

@ -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
# =======================================================================