зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1435138 part 1. Remove unused nsIDOMSVGLength bits. r=qdot
MozReview-Commit-ID: ADZly4KLD0x
This commit is contained in:
Родитель
c32290c3d7
Коммит
a77e01b899
|
@ -21,16 +21,8 @@ interface nsIDOMSVGLength : nsISupports
|
|||
const unsigned short SVG_LENGTHTYPE_PT = 9;
|
||||
const unsigned short SVG_LENGTHTYPE_PC = 10;
|
||||
|
||||
readonly attribute unsigned short unitType;
|
||||
attribute float value;
|
||||
// raises DOMException on setting
|
||||
attribute float valueInSpecifiedUnits;
|
||||
// raises DOMException on setting
|
||||
attribute DOMString valueAsString;
|
||||
// raises DOMException on setting
|
||||
|
||||
void newValueSpecifiedUnits(in unsigned short unitType, in float valueInSpecifiedUnits);
|
||||
void convertToSpecifiedUnits(in unsigned short unitType);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@ DOMSVGLength::Copy()
|
|||
unit = length.GetUnit();
|
||||
value = length.GetValueInCurrentUnits();
|
||||
}
|
||||
copy->NewValueSpecifiedUnits(unit, value);
|
||||
copy->NewValueSpecifiedUnits(unit, value, IgnoreErrors());
|
||||
return copy;
|
||||
}
|
||||
|
||||
|
@ -212,13 +212,6 @@ DOMSVGLength::UnitType()
|
|||
return HasOwner() ? InternalItem().GetUnit() : mUnit;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMSVGLength::GetUnitType(uint16_t* aUnit)
|
||||
{
|
||||
*aUnit = UnitType();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
float
|
||||
DOMSVGLength::GetValue(ErrorResult& aRv)
|
||||
{
|
||||
|
@ -249,14 +242,6 @@ DOMSVGLength::GetValue(ErrorResult& aRv)
|
|||
return 0.0f;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMSVGLength::GetValue(float* aValue)
|
||||
{
|
||||
ErrorResult rv;
|
||||
*aValue = GetValue(rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
DOMSVGLength::SetValue(float aUserUnitValue, ErrorResult& aRv)
|
||||
{
|
||||
|
@ -299,18 +284,6 @@ DOMSVGLength::SetValue(float aUserUnitValue, ErrorResult& aRv)
|
|||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMSVGLength::SetValue(float aUserUnitValue)
|
||||
{
|
||||
if (!IsFinite(aUserUnitValue)) {
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
}
|
||||
|
||||
ErrorResult rv;
|
||||
SetValue(aUserUnitValue, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
float
|
||||
DOMSVGLength::ValueInSpecifiedUnits()
|
||||
{
|
||||
|
@ -328,13 +301,6 @@ DOMSVGLength::ValueInSpecifiedUnits()
|
|||
return HasOwner() ? InternalItem().GetValueInCurrentUnits() : mValue;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMSVGLength::GetValueInSpecifiedUnits(float* aValue)
|
||||
{
|
||||
*aValue = ValueInSpecifiedUnits();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
DOMSVGLength::SetValueInSpecifiedUnits(float aValue, ErrorResult& aRv)
|
||||
{
|
||||
|
@ -359,18 +325,6 @@ DOMSVGLength::SetValueInSpecifiedUnits(float aValue, ErrorResult& aRv)
|
|||
mValue = aValue;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMSVGLength::SetValueInSpecifiedUnits(float aValue)
|
||||
{
|
||||
if (!IsFinite(aValue)) {
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
}
|
||||
|
||||
ErrorResult rv;
|
||||
SetValueInSpecifiedUnits(aValue, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
DOMSVGLength::SetValueAsString(const nsAString& aValue, ErrorResult& aRv)
|
||||
{
|
||||
|
@ -464,18 +418,6 @@ DOMSVGLength::NewValueSpecifiedUnits(uint16_t aUnit, float aValue,
|
|||
mValue = aValue;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMSVGLength::NewValueSpecifiedUnits(uint16_t aUnit, float aValue)
|
||||
{
|
||||
if (!IsFinite(aValue)) {
|
||||
return NS_ERROR_ILLEGAL_VALUE;
|
||||
}
|
||||
|
||||
ErrorResult rv;
|
||||
NewValueSpecifiedUnits(aUnit, aValue, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
DOMSVGLength::ConvertToSpecifiedUnits(uint16_t aUnit, ErrorResult& aRv)
|
||||
{
|
||||
|
@ -518,14 +460,6 @@ DOMSVGLength::ConvertToSpecifiedUnits(uint16_t aUnit, ErrorResult& aRv)
|
|||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
DOMSVGLength::ConvertToSpecifiedUnits(uint16_t aUnit)
|
||||
{
|
||||
ErrorResult rv;
|
||||
ConvertToSpecifiedUnits(aUnit, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
JSObject*
|
||||
DOMSVGLength::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче