forked from mirrors/gecko-dev
Bug 1455940 - Remove constructors from SVGNumber r=mystor
This commit is contained in:
parent
1787768767
commit
83c5aceb17
4 changed files with 0 additions and 41 deletions
|
|
@ -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
|
float
|
||||||
DOMSVGNumber::Value()
|
DOMSVGNumber::Value()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -126,12 +126,6 @@ public:
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
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();
|
float Value();
|
||||||
|
|
||||||
void SetValue(float aValue, ErrorResult& aRv);
|
void SetValue(float aValue, ErrorResult& aRv);
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Constructor,
|
|
||||||
Constructor(float value)]
|
|
||||||
interface SVGNumber {
|
interface SVGNumber {
|
||||||
[SetterThrows]
|
[SetterThrows]
|
||||||
attribute float value;
|
attribute float value;
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,6 @@
|
||||||
[SVGGeometryElement interface: operation isPointInStroke(DOMPoint)]
|
[SVGGeometryElement interface: operation isPointInStroke(DOMPoint)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[SVGNumber interface: existence and properties of interface object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[SVGSVGElement interface: operation getIntersectionList(DOMRectReadOnly,SVGElement)]
|
[SVGSVGElement interface: operation getIntersectionList(DOMRectReadOnly,SVGElement)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue