зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455940 - Remove constructors from SVGNumber r=mystor
This commit is contained in:
Родитель
1787768767
Коммит
83c5aceb17
|
@ -111,36 +111,6 @@ DOMSVGNumber::DOMSVGNumber(nsISupports* aParent)
|
|||
{
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<DOMSVGNumber>
|
||||
DOMSVGNumber::Constructor(const dom::GlobalObject& aGlobal, ErrorResult& aRv)
|
||||
{
|
||||
nsCOMPtr<nsPIDOMWindowInner> window =
|
||||
do_QueryInterface(aGlobal.GetAsSupports());
|
||||
if (!window) {
|
||||
aRv.Throw(NS_ERROR_UNEXPECTED);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<DOMSVGNumber> number = new DOMSVGNumber(window);
|
||||
return number.forget();
|
||||
}
|
||||
|
||||
/* static */ already_AddRefed<DOMSVGNumber>
|
||||
DOMSVGNumber::Constructor(const dom::GlobalObject& aGlobal, float aValue,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
nsCOMPtr<nsPIDOMWindowInner> window =
|
||||
do_QueryInterface(aGlobal.GetAsSupports());
|
||||
if (!window) {
|
||||
aRv.Throw(NS_ERROR_UNEXPECTED);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<DOMSVGNumber> number = new DOMSVGNumber(window);
|
||||
number->SetValue(aValue, aRv);
|
||||
return number.forget();
|
||||
}
|
||||
|
||||
float
|
||||
DOMSVGNumber::Value()
|
||||
{
|
||||
|
|
|
@ -126,12 +126,6 @@ public:
|
|||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||
|
||||
static already_AddRefed<DOMSVGNumber>
|
||||
Constructor(const dom::GlobalObject& aGlobal, ErrorResult& aRv);
|
||||
|
||||
static already_AddRefed<DOMSVGNumber>
|
||||
Constructor(const dom::GlobalObject& aGlobal, float aValue, ErrorResult& aRv);
|
||||
|
||||
float Value();
|
||||
|
||||
void SetValue(float aValue, ErrorResult& aRv);
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor,
|
||||
Constructor(float value)]
|
||||
interface SVGNumber {
|
||||
[SetterThrows]
|
||||
attribute float value;
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
[SVGGeometryElement interface: operation isPointInStroke(DOMPoint)]
|
||||
expected: FAIL
|
||||
|
||||
[SVGNumber interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
[SVGSVGElement interface: operation getIntersectionList(DOMRectReadOnly,SVGElement)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче