Backed out 3 changesets (bug 1186265) for devtools chrome failures on browser_webconsole_visibility_messages.js. CLOSED TREE

Backed out changeset 4a9965aeeef3 (bug 1186265)
Backed out changeset 55bd80764231 (bug 1186265)
Backed out changeset 00fefd3eb634 (bug 1186265)
This commit is contained in:
Narcis Beleuzu 2018-05-25 05:36:52 +03:00
Родитель 73b8a3fba1
Коммит 8bfcff6f8c
32 изменённых файлов: 1127 добавлений и 303 удалений

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

@ -22,10 +22,6 @@
namespace mozilla {
namespace dom {
template <typename T>
static void
SetDataInMatrix(DOMMatrixReadOnly* aMatrix, const T* aData, int aLength, ErrorResult& aRv);
static const double radPerDegree = 2.0 * M_PI / 360.0;
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMMatrixReadOnly, mParent)
@ -33,39 +29,6 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMMatrixReadOnly, mParent)
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMMatrixReadOnly, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMMatrixReadOnly, Release)
JSObject*
DOMMatrixReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMMatrixReadOnlyBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<DOMMatrixReadOnly>
DOMMatrixReadOnly::Constructor(
const GlobalObject& aGlobal,
const Optional<StringOrUnrestrictedDoubleSequence>& aArg,
ErrorResult& aRv)
{
RefPtr<DOMMatrixReadOnly> rval = new DOMMatrixReadOnly(aGlobal.GetAsSupports());
if (!aArg.WasPassed()) {
return rval.forget();
}
const auto& arg = aArg.Value();
if (arg.IsString()) {
nsCOMPtr<nsPIDOMWindowInner> win = do_QueryInterface(aGlobal.GetAsSupports());
if (!win) {
aRv.ThrowTypeError<MSG_ILLEGAL_CONSTRUCTOR>();
return nullptr;
}
rval->SetMatrixValue(arg.GetAsString(), aRv);
} else {
const auto& sequence = arg.GetAsUnrestrictedDoubleSequence();
SetDataInMatrix(rval, sequence.Elements(), sequence.Length(), aRv);
}
return rval.forget();
}
already_AddRefed<DOMMatrix>
DOMMatrixReadOnly::Translate(double aTx,
double aTy,
@ -402,9 +365,7 @@ DOMMatrix::Constructor(const GlobalObject& aGlobal, const DOMMatrixReadOnly& aOt
return obj.forget();
}
template <typename T>
static void
SetDataInMatrix(DOMMatrixReadOnly* aMatrix, const T* aData, int aLength, ErrorResult& aRv)
template <typename T> void SetDataInMatrix(DOMMatrix* aMatrix, const T* aData, int aLength, ErrorResult& aRv)
{
if (aLength == 16) {
aMatrix->SetM11(aData[0]);
@ -431,9 +392,7 @@ SetDataInMatrix(DOMMatrixReadOnly* aMatrix, const T* aData, int aLength, ErrorRe
aMatrix->SetE(aData[4]);
aMatrix->SetF(aData[5]);
} else {
nsAutoString lengthStr;
lengthStr.AppendInt(aLength);
aRv.ThrowTypeError<MSG_MATRIX_INIT_LENGTH_WRONG>(lengthStr);
aRv.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
}
}
@ -466,8 +425,7 @@ DOMMatrix::Constructor(const GlobalObject& aGlobal, const Sequence<double>& aNum
return obj.forget();
}
void
DOMMatrixReadOnly::Ensure3DMatrix()
void DOMMatrix::Ensure3DMatrix()
{
if (!mMatrix3D) {
mMatrix3D = new gfx::Matrix4x4(gfx::Matrix4x4::From2D(*mMatrix2D));
@ -694,8 +652,8 @@ DOMMatrix::InvertSelf()
return this;
}
DOMMatrixReadOnly*
DOMMatrixReadOnly::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
DOMMatrix*
DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
{
// An empty string is a no-op.
if (aTransformList.IsEmpty()) {
@ -729,13 +687,6 @@ DOMMatrixReadOnly::SetMatrixValue(const nsAString& aTransformList, ErrorResult&
return this;
}
DOMMatrix*
DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
{
DOMMatrixReadOnly::SetMatrixValue(aTransformList, aRv);
return this;
}
JSObject*
DOMMatrix::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{

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

@ -23,7 +23,6 @@ namespace dom {
class GlobalObject;
class DOMMatrix;
class DOMPoint;
class StringOrUnrestrictedDoubleSequence;
struct DOMPointInit;
class DOMMatrixReadOnly : public nsWrapperCache
@ -54,14 +53,6 @@ public:
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DOMMatrixReadOnly)
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(DOMMatrixReadOnly)
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* cx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<DOMMatrixReadOnly> Constructor(
const GlobalObject& aGlobal,
const Optional<StringOrUnrestrictedDoubleSequence>& aArg,
ErrorResult& aRv);
#define GetMatrixMember(entry2D, entry3D, default) \
{ \
if (mMatrix3D) { \
@ -105,52 +96,6 @@ public:
#undef GetMatrixMember
#undef Get3DMatrixMember
// Defined here so we can construct DOMMatrixReadOnly objects.
#define Set2DMatrixMember(entry2D, entry3D) \
{ \
if (mMatrix3D) { \
mMatrix3D->entry3D = v; \
} else { \
mMatrix2D->entry2D = v; \
} \
}
#define Set3DMatrixMember(entry3D, default) \
{ \
if (mMatrix3D || (v != default)) { \
Ensure3DMatrix(); \
mMatrix3D->entry3D = v; \
} \
}
void SetA(double v) Set2DMatrixMember(_11, _11)
void SetB(double v) Set2DMatrixMember(_12, _12)
void SetC(double v) Set2DMatrixMember(_21, _21)
void SetD(double v) Set2DMatrixMember(_22, _22)
void SetE(double v) Set2DMatrixMember(_31, _41)
void SetF(double v) Set2DMatrixMember(_32, _42)
void SetM11(double v) Set2DMatrixMember(_11, _11)
void SetM12(double v) Set2DMatrixMember(_12, _12)
void SetM13(double v) Set3DMatrixMember(_13, 0)
void SetM14(double v) Set3DMatrixMember(_14, 0)
void SetM21(double v) Set2DMatrixMember(_21, _21)
void SetM22(double v) Set2DMatrixMember(_22, _22)
void SetM23(double v) Set3DMatrixMember(_23, 0)
void SetM24(double v) Set3DMatrixMember(_24, 0)
void SetM31(double v) Set3DMatrixMember(_31, 0)
void SetM32(double v) Set3DMatrixMember(_32, 0)
void SetM33(double v) Set3DMatrixMember(_33, 1.0)
void SetM34(double v) Set3DMatrixMember(_34, 0)
void SetM41(double v) Set2DMatrixMember(_31, _41)
void SetM42(double v) Set2DMatrixMember(_32, _42)
void SetM43(double v) Set3DMatrixMember(_43, 0)
void SetM44(double v) Set3DMatrixMember(_44, 1.0)
#undef Set2DMatrixMember
#undef Set3DMatrixMember
already_AddRefed<DOMMatrix> Translate(double aTx,
double aTy,
double aTz = 0) const;
@ -200,9 +145,6 @@ protected:
virtual ~DOMMatrixReadOnly() {}
DOMMatrixReadOnly* SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv);
void Ensure3DMatrix();
private:
DOMMatrixReadOnly() = delete;
DOMMatrixReadOnly(const DOMMatrixReadOnly&) = delete;
@ -237,8 +179,53 @@ public:
static already_AddRefed<DOMMatrix>
Constructor(const GlobalObject& aGlobal, const Sequence<double>& aNumberSequence, ErrorResult& aRv);
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
#define Set2DMatrixMember(entry2D, entry3D) \
{ \
if (mMatrix3D) { \
mMatrix3D->entry3D = v; \
} else { \
mMatrix2D->entry2D = v; \
} \
}
#define Set3DMatrixMember(entry3D, default) \
{ \
if (mMatrix3D || (v != default)) { \
Ensure3DMatrix(); \
mMatrix3D->entry3D = v; \
} \
}
void SetA(double v) Set2DMatrixMember(_11, _11)
void SetB(double v) Set2DMatrixMember(_12, _12)
void SetC(double v) Set2DMatrixMember(_21, _21)
void SetD(double v) Set2DMatrixMember(_22, _22)
void SetE(double v) Set2DMatrixMember(_31, _41)
void SetF(double v) Set2DMatrixMember(_32, _42)
void SetM11(double v) Set2DMatrixMember(_11, _11)
void SetM12(double v) Set2DMatrixMember(_12, _12)
void SetM13(double v) Set3DMatrixMember(_13, 0)
void SetM14(double v) Set3DMatrixMember(_14, 0)
void SetM21(double v) Set2DMatrixMember(_21, _21)
void SetM22(double v) Set2DMatrixMember(_22, _22)
void SetM23(double v) Set3DMatrixMember(_23, 0)
void SetM24(double v) Set3DMatrixMember(_24, 0)
void SetM31(double v) Set3DMatrixMember(_31, 0)
void SetM32(double v) Set3DMatrixMember(_32, 0)
void SetM33(double v) Set3DMatrixMember(_33, 1.0)
void SetM34(double v) Set3DMatrixMember(_34, 0)
void SetM41(double v) Set2DMatrixMember(_31, _41)
void SetM42(double v) Set2DMatrixMember(_32, _42)
void SetM43(double v) Set3DMatrixMember(_43, 0)
void SetM44(double v) Set3DMatrixMember(_44, 1.0)
#undef Set2DMatrixMember
#undef Set3DMatrixMember
DOMMatrix* MultiplySelf(const DOMMatrix& aOther);
DOMMatrix* PreMultiplySelf(const DOMMatrix& aOther);
DOMMatrix* TranslateSelf(double aTx,
@ -270,6 +257,8 @@ public:
DOMMatrix* SkewYSelf(double aSy);
DOMMatrix* InvertSelf();
DOMMatrix* SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv);
protected:
void Ensure3DMatrix();
virtual ~DOMMatrix() {}
};

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

@ -17,32 +17,9 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMPointReadOnly, mParent)
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMPointReadOnly, AddRef)
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMPointReadOnly, Release)
already_AddRefed<DOMPointReadOnly>
DOMPointReadOnly::FromPoint(const GlobalObject& aGlobal, const DOMPointInit& aParams)
{
RefPtr<DOMPointReadOnly> obj =
new DOMPointReadOnly(aGlobal.GetAsSupports(), aParams.mX, aParams.mY,
aParams.mZ, aParams.mW);
return obj.forget();
}
already_AddRefed<DOMPointReadOnly>
DOMPointReadOnly::Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aZ, double aW, ErrorResult& aRV)
{
RefPtr<DOMPointReadOnly> obj =
new DOMPointReadOnly(aGlobal.GetAsSupports(), aX, aY, aZ, aW);
return obj.forget();
}
JSObject*
DOMPointReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return DOMPointReadOnlyBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<DOMPoint>
DOMPoint::FromPoint(const GlobalObject& aGlobal, const DOMPointInit& aParams)
DOMPoint::Constructor(const GlobalObject& aGlobal, const DOMPointInit& aParams,
ErrorResult& aRV)
{
RefPtr<DOMPoint> obj =
new DOMPoint(aGlobal.GetAsSupports(), aParams.mX, aParams.mY,

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

@ -34,12 +34,6 @@ public:
{
}
static already_AddRefed<DOMPointReadOnly>
FromPoint(const GlobalObject& aGlobal, const DOMPointInit& aParams);
static already_AddRefed<DOMPointReadOnly>
Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aZ, double aW, ErrorResult& aRV);
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DOMPointReadOnly)
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(DOMPointReadOnly)
@ -48,9 +42,6 @@ public:
double Z() const { return mZ; }
double W() const { return mW; }
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
protected:
virtual ~DOMPointReadOnly() {}
@ -67,11 +58,13 @@ public:
{}
static already_AddRefed<DOMPoint>
FromPoint(const GlobalObject& aGlobal, const DOMPointInit& aParams);
Constructor(const GlobalObject& aGlobal, const DOMPointInit& aParams,
ErrorResult& aRV);
static already_AddRefed<DOMPoint>
Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aZ, double aW, ErrorResult& aRV);
nsISupports* GetParentObject() const { return mParent; }
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
void SetX(double aX) { mX = aX; }

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

@ -53,10 +53,10 @@ DOMQuad::Constructor(const GlobalObject& aGlobal,
ErrorResult& aRV)
{
RefPtr<DOMQuad> obj = new DOMQuad(aGlobal.GetAsSupports());
obj->mPoints[0] = DOMPoint::FromPoint(aGlobal, aP1);
obj->mPoints[1] = DOMPoint::FromPoint(aGlobal, aP2);
obj->mPoints[2] = DOMPoint::FromPoint(aGlobal, aP3);
obj->mPoints[3] = DOMPoint::FromPoint(aGlobal, aP4);
obj->mPoints[0] = DOMPoint::Constructor(aGlobal, aP1, aRV);
obj->mPoints[1] = DOMPoint::Constructor(aGlobal, aP2, aRV);
obj->mPoints[2] = DOMPoint::Constructor(aGlobal, aP3, aRV);
obj->mPoints[3] = DOMPoint::Constructor(aGlobal, aP4, aRV);
return obj.forget();
}
@ -74,62 +74,87 @@ DOMQuad::Constructor(const GlobalObject& aGlobal, const DOMRectReadOnly& aRect,
return obj.forget();
}
void
DOMQuad::GetHorizontalMinMax(double* aX1, double* aX2) const
class DOMQuad::QuadBounds final : public DOMRectReadOnly
{
double x1, x2;
x1 = x2 = Point(0)->X();
for (uint32_t i = 1; i < 4; ++i) {
double x = Point(i)->X();
x1 = std::min(x1, x);
x2 = std::max(x2, x);
}
*aX1 = x1;
*aX2 = x2;
}
public:
explicit QuadBounds(DOMQuad* aQuad)
: DOMRectReadOnly(aQuad->GetParentObject())
, mQuad(aQuad)
{}
void
DOMQuad::GetVerticalMinMax(double* aY1, double* aY2) const
{
double y1, y2;
y1 = y2 = Point(0)->Y();
for (uint32_t i = 1; i < 4; ++i) {
double y = Point(i)->Y();
y1 = std::min(y1, y);
y2 = std::max(y2, y);
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(QuadBounds, DOMRectReadOnly)
NS_DECL_ISUPPORTS_INHERITED
virtual double X() const override
{
double x1, x2;
GetHorizontalMinMax(&x1, &x2);
return x1;
}
*aY1 = y1;
*aY2 = y2;
}
virtual double Y() const override
{
double y1, y2;
GetVerticalMinMax(&y1, &y2);
return y1;
}
virtual double Width() const override
{
double x1, x2;
GetHorizontalMinMax(&x1, &x2);
return x2 - x1;
}
virtual double Height() const override
{
double y1, y2;
GetVerticalMinMax(&y1, &y2);
return y2 - y1;
}
void GetHorizontalMinMax(double* aX1, double* aX2) const
{
double x1, x2;
x1 = x2 = mQuad->Point(0)->X();
for (uint32_t i = 1; i < 4; ++i) {
double x = mQuad->Point(i)->X();
x1 = std::min(x1, x);
x2 = std::max(x2, x);
}
*aX1 = x1;
*aX2 = x2;
}
void GetVerticalMinMax(double* aY1, double* aY2) const
{
double y1, y2;
y1 = y2 = mQuad->Point(0)->Y();
for (uint32_t i = 1; i < 4; ++i) {
double y = mQuad->Point(i)->Y();
y1 = std::min(y1, y);
y2 = std::max(y2, y);
}
*aY1 = y1;
*aY2 = y2;
}
protected:
virtual ~QuadBounds() {}
RefPtr<DOMQuad> mQuad;
};
NS_IMPL_CYCLE_COLLECTION_INHERITED(DOMQuad::QuadBounds, DOMRectReadOnly, mQuad)
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMQuad::QuadBounds)
NS_INTERFACE_MAP_END_INHERITING(DOMRectReadOnly)
NS_IMPL_ADDREF_INHERITED(DOMQuad::QuadBounds, DOMRectReadOnly)
NS_IMPL_RELEASE_INHERITED(DOMQuad::QuadBounds, DOMRectReadOnly)
DOMRectReadOnly*
DOMQuad::Bounds()
DOMQuad::Bounds() const
{
if (!mBounds) {
mBounds = GetBounds();
mBounds = new QuadBounds(const_cast<DOMQuad*>(this));
}
return mBounds;
}
already_AddRefed<DOMRectReadOnly>
DOMQuad::GetBounds() const
{
double x1, x2;
double y1, y2;
GetHorizontalMinMax(&x1, &x2);
GetVerticalMinMax(&y1, &y2);
RefPtr<DOMRectReadOnly> rval = new DOMRectReadOnly(GetParentObject(),
x1, y1, x2 - x1, y2 - y1);
return rval.forget();
}
void
DOMQuad::ToJSON(DOMQuadJSON& aInit)
{
aInit.mP1.Construct(RefPtr<DOMPoint>(P1()).forget());
aInit.mP2.Construct(RefPtr<DOMPoint>(P2()).forget());
aInit.mP3.Construct(RefPtr<DOMPoint>(P3()).forget());
aInit.mP4.Construct(RefPtr<DOMPoint>(P4()).forget());
}

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

@ -21,7 +21,6 @@ namespace dom {
class DOMRectReadOnly;
class DOMPoint;
struct DOMQuadJSON;
struct DOMPointInit;
class DOMQuad final : public nsWrapperCache
@ -49,24 +48,20 @@ public:
Constructor(const GlobalObject& aGlobal, const DOMRectReadOnly& aRect,
ErrorResult& aRV);
DOMRectReadOnly* Bounds();
already_AddRefed<DOMRectReadOnly> GetBounds() const;
DOMRectReadOnly* Bounds() const;
DOMPoint* P1() const { return mPoints[0]; }
DOMPoint* P2() const { return mPoints[1]; }
DOMPoint* P3() const { return mPoints[2]; }
DOMPoint* P4() const { return mPoints[3]; }
DOMPoint* Point(uint32_t aIndex) const { return mPoints[aIndex]; }
void ToJSON(DOMQuadJSON& aInit);
DOMPoint* Point(uint32_t aIndex) { return mPoints[aIndex]; }
protected:
void GetHorizontalMinMax(double* aX1, double* aX2) const;
void GetVerticalMinMax(double* aY1, double* aY2) const;
class QuadBounds;
nsCOMPtr<nsISupports> mParent;
RefPtr<DOMPoint> mPoints[4];
RefPtr<DOMRectReadOnly> mBounds;
mutable RefPtr<QuadBounds> mBounds; // allocated lazily
};
} // namespace dom

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

@ -28,15 +28,6 @@ DOMRectReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
return DOMRectReadOnlyBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<DOMRectReadOnly>
DOMRectReadOnly::Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aWidth, double aHeight, ErrorResult& aRv)
{
RefPtr<DOMRectReadOnly> obj =
new DOMRectReadOnly(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight);
return obj.forget();
}
// -----------------------------------------------------------------------------
JSObject*
@ -46,9 +37,17 @@ DOMRect::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
return DOMRectBinding::Wrap(aCx, this, aGivenProto);
}
already_AddRefed<DOMRect>
DOMRect::Constructor(const GlobalObject& aGlobal, ErrorResult& aRV)
{
RefPtr<DOMRect> obj =
new DOMRect(aGlobal.GetAsSupports(), 0.0, 0.0, 0.0, 0.0);
return obj.forget();
}
already_AddRefed<DOMRect>
DOMRect::Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aWidth, double aHeight, ErrorResult& aRv)
double aWidth, double aHeight, ErrorResult& aRV)
{
RefPtr<DOMRect> obj =
new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight);

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

@ -31,13 +31,8 @@ public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMRectReadOnly)
explicit DOMRectReadOnly(nsISupports* aParent, double aX = 0, double aY = 0,
double aWidth = 0, double aHeight = 0)
explicit DOMRectReadOnly(nsISupports* aParent)
: mParent(aParent)
, mX(aX)
, mY(aY)
, mWidth(aWidth)
, mHeight(aHeight)
{
}
@ -46,29 +41,12 @@ public:
MOZ_ASSERT(mParent);
return mParent;
}
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
static already_AddRefed<DOMRectReadOnly>
Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aWidth, double aHeight, ErrorResult& aRv);
double X() const
{
return mX;
}
double Y() const
{
return mY;
}
double Width() const
{
return mWidth;
}
double Height() const
{
return mHeight;
}
virtual double X() const = 0;
virtual double Y() const = 0;
virtual double Width() const = 0;
virtual double Height() const = 0;
double Left() const
{
@ -93,7 +71,6 @@ public:
protected:
nsCOMPtr<nsISupports> mParent;
double mX, mY, mWidth, mHeight;
};
class DOMRect final : public DOMRectReadOnly
@ -101,15 +78,21 @@ class DOMRect final : public DOMRectReadOnly
public:
explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
double aWidth = 0, double aHeight = 0)
: DOMRectReadOnly(aParent, aX, aY, aWidth, aHeight)
: DOMRectReadOnly(aParent)
, mX(aX)
, mY(aY)
, mWidth(aWidth)
, mHeight(aHeight)
{
}
NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMRect, DOMRectReadOnly)
static already_AddRefed<DOMRect>
Constructor(const GlobalObject& aGlobal, ErrorResult& aRV);
static already_AddRefed<DOMRect>
Constructor(const GlobalObject& aGlobal, double aX, double aY,
double aWidth, double aHeight, ErrorResult& aRv);
double aWidth, double aHeight, ErrorResult& aRV);
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
@ -118,6 +101,23 @@ public:
}
void SetLayoutRect(const nsRect& aLayoutRect);
virtual double X() const override
{
return mX;
}
virtual double Y() const override
{
return mY;
}
virtual double Width() const override
{
return mWidth;
}
virtual double Height() const override
{
return mHeight;
}
void SetX(double aX)
{
mX = aX;
@ -140,8 +140,11 @@ public:
return static_cast<DOMRect*>(aSupports);
}
protected:
double mX, mY, mWidth, mHeight;
private:
~DOMRect() {}
~DOMRect() {};
};
class DOMRectList final : public nsISupports,

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

@ -47,4 +47,3 @@ DEPRECATED_OPERATION(ProximityEvent)
DEPRECATED_OPERATION(AmbientLightEvent)
DEPRECATED_OPERATION(IDBOpenDBOptions_StorageType)
DEPRECATED_OPERATION(DOMAttrModifiedEvent)
DEPRECATED_OPERATION(DOMQuadBoundsAttr)

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

@ -243,10 +243,12 @@ DOMInterfaces = {
'DOMMatrixReadOnly': {
'headerFile': 'mozilla/dom/DOMMatrix.h',
'concrete': False,
},
'DOMPointReadOnly': {
'headerFile': 'mozilla/dom/DOMPoint.h',
'concrete': False,
},
'DOMRectList': {

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

@ -103,4 +103,3 @@ MSG_DEF(MSG_ONLY_IF_CACHED_WITHOUT_SAME_ORIGIN, 1, JSEXN_TYPEERR, "Request mode
MSG_DEF(MSG_THRESHOLD_RANGE_ERROR, 0, JSEXN_RANGEERR, "Threshold values must all be in the range [0, 1].")
MSG_DEF(MSG_WORKER_THREAD_SHUTTING_DOWN, 0, JSEXN_TYPEERR, "The Worker thread is shutting down.")
MSG_DEF(MSG_CACHE_OPEN_FAILED, 0, JSEXN_TYPEERR, "CacheStorage.open() failed to access the storage system.")
MSG_DEF(MSG_MATRIX_INIT_LENGTH_WRONG, 1, JSEXN_TYPEERR, "Matrix init sequence must have a length of 6 or 16 (actual value: {0})")

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

@ -2825,7 +2825,7 @@ class IDLWrapperType(IDLType):
return False
iface = self.inner
while iface:
if any(m.isMethod() and m.isToJSON() for m in iface.members):
if any(m.isMethod() and m.isToJSON() for m in self.inner.members):
return True
iface = iface.parent
return False

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

@ -358,4 +358,3 @@ ProximityEventWarning=Use of the proximity sensor is deprecated.
AmbientLightEventWarning=Use of the ambient light sensor is deprecated.
# LOCALIZATION NOTE: Do not translate "storage", "indexedDB.open" and "navigator.storage.persist()".
IDBOpenDBOptions_StorageTypeWarning=The storage attribute in options passed to indexedDB.open is deprecated and will soon be removed. To get persistent storage, please use navigator.storage.persist() instead.
DOMQuadBoundsAttrWarning=DOMQuad.bounds is deprecated in favor of DOMQuad.getBounds()

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

@ -10,8 +10,7 @@
* liability, trademark and document use rules apply.
*/
[Pref="layout.css.DOMMatrix.enabled",
Constructor(optional (DOMString or sequence<unrestricted double>) init)]
[Pref="layout.css.DOMMatrix.enabled"]
interface DOMMatrixReadOnly {
// These attributes are simple aliases for certain elements of the 4x4 matrix
readonly attribute unrestricted double a;
@ -78,7 +77,6 @@ interface DOMMatrixReadOnly {
[Throws] Float32Array toFloat32Array();
[Throws] Float64Array toFloat64Array();
stringifier;
[Default] object toJSON();
};
[Pref="layout.css.DOMMatrix.enabled",

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

@ -10,26 +10,19 @@
* liability, trademark and document use rules apply.
*/
[Pref="layout.css.DOMPoint.enabled",
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1)]
[Pref="layout.css.DOMPoint.enabled"]
interface DOMPointReadOnly {
[NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other);
readonly attribute unrestricted double x;
readonly attribute unrestricted double y;
readonly attribute unrestricted double z;
readonly attribute unrestricted double w;
[Default] object toJSON();
};
[Pref="layout.css.DOMPoint.enabled",
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
Constructor(optional DOMPointInit point),
Constructor(unrestricted double x, unrestricted double y,
optional unrestricted double z = 0, optional unrestricted double w = 1)]
interface DOMPoint : DOMPointReadOnly {
[NewObject] static DOMPoint fromPoint(optional DOMPointInit other);
inherit attribute unrestricted double x;
inherit attribute unrestricted double y;
inherit attribute unrestricted double z;
@ -41,4 +34,4 @@ dictionary DOMPointInit {
unrestricted double y = 0;
unrestricted double z = 0;
unrestricted double w = 1;
};
};

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

@ -19,23 +19,5 @@ interface DOMQuad {
[SameObject] readonly attribute DOMPoint p2;
[SameObject] readonly attribute DOMPoint p3;
[SameObject] readonly attribute DOMPoint p4;
[NewObject] DOMRectReadOnly getBounds();
[SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds;
DOMQuadJSON toJSON();
};
dictionary DOMQuadJSON {
DOMPoint p1;
DOMPoint p2;
DOMPoint p3;
DOMPoint p4;
};
dictionary DOMQuadInit {
DOMPointInit p1;
DOMPointInit p2;
DOMPointInit p3;
DOMPointInit p4;
};
[SameObject] readonly attribute DOMRectReadOnly bounds;
};

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

@ -10,8 +10,9 @@
* liability, trademark and document use rules apply.
*/
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double width = 0, optional unrestricted double height = 0)]
[Constructor,
Constructor(unrestricted double x, unrestricted double y,
unrestricted double width, unrestricted double height)]
interface DOMRect : DOMRectReadOnly {
inherit attribute unrestricted double x;
inherit attribute unrestricted double y;
@ -19,9 +20,7 @@ interface DOMRect : DOMRectReadOnly {
inherit attribute unrestricted double height;
};
[ProbablyShortLivingWrapper,
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double width = 0, optional unrestricted double height = 0)]
[ProbablyShortLivingWrapper]
interface DOMRectReadOnly {
readonly attribute unrestricted double x;
readonly attribute unrestricted double y;
@ -31,8 +30,6 @@ interface DOMRectReadOnly {
readonly attribute unrestricted double right;
readonly attribute unrestricted double bottom;
readonly attribute unrestricted double left;
[Default] object toJSON();
};
dictionary DOMRectInit {

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

@ -544960,7 +544960,7 @@
"testharness"
],
"css/geometry/DOMPoint-001.html": [
"5c174b7b7616867e5b306c935ee5069024ba2110",
"02bf66acde06025e22d65c762234a2a37fbaab68",
"testharness"
],
"css/geometry/DOMPoint-002.html": [

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

@ -56,24 +56,174 @@
[new DOMMatrix(matrix)]
expected: FAIL
[new DOMMatrix(sequence) 17 elements]
expected: FAIL
[new DOMMatrix(sequence) 15 elements]
expected: FAIL
[new DOMMatrix(sequence) 5 elements]
expected: FAIL
[new DOMMatrix(sequence) 0 elements]
expected: FAIL
[new DOMMatrixReadOnly()]
expected: FAIL
[new DOMMatrixReadOnly(undefined)]
expected: FAIL
[new DOMMatrixReadOnly(new DOMMatrixReadOnly())]
expected: FAIL
[new DOMMatrixReadOnly("none")]
expected: FAIL
[new DOMMatrixReadOnly(" none")]
expected: FAIL
[new DOMMatrixReadOnly("none ")]
expected: FAIL
[new DOMMatrixReadOnly("NONE")]
expected: FAIL
[new DOMMatrixReadOnly("none/**/")]
expected: FAIL
[new DOMMatrixReadOnly("/**/none")]
expected: FAIL
[new DOMMatrixReadOnly("")]
expected: FAIL
[new DOMMatrixReadOnly(float32Array) 16 elements]
expected: FAIL
[new DOMMatrixReadOnly(float32Array) 6 elements]
expected: FAIL
[new DOMMatrixReadOnly(float64Array) 16 elements]
expected: FAIL
[new DOMMatrixReadOnly((float64Array) 6 elements]
expected: FAIL
[new DOMMatrixReadOnly(sequence) 16 elements]
expected: FAIL
[new DOMMatrixReadOnly(sequence) 6 elements]
expected: FAIL
[new DOMMatrixReadOnly("scale(2) translateX(5px) translateY(5px)")]
expected: FAIL
[new DOMMatrixReadOnly("scale(2 2) translateX(5) translateY(5)")]
expected: FAIL
[new DOMMatrixReadOnly("scale(2, 2), translateX(5) ,translateY(5)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX (5px)")]
expected: FAIL
[new DOMMatrixReadOnly("scale(2)translateX(5px)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5em)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5ex)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5ch)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5rem)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5vw)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5vh)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5vmin)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5vmax)")]
expected: FAIL
[new DOMMatrixReadOnly("translateX(5%)")]
expected: FAIL
[new DOMMatrixReadOnly(" ")]
expected: FAIL
[new DOMMatrixReadOnly("/**/")]
expected: FAIL
[new DOMMatrixReadOnly("\\0")]
expected: FAIL
[new DOMMatrixReadOnly(";")]
expected: FAIL
[new DOMMatrixReadOnly("none;")]
expected: FAIL
[new DOMMatrixReadOnly("null")]
expected: FAIL
[new DOMMatrixReadOnly(null)]
expected: FAIL
[new DOMMatrixReadOnly("undefined")]
expected: FAIL
[new DOMMatrixReadOnly("inherit")]
expected: FAIL
[new DOMMatrixReadOnly("initial")]
expected: FAIL
[new DOMMatrixReadOnly("unset")]
expected: FAIL
[new DOMMatrixReadOnly(sequence)]
expected: FAIL
[new DOMMatrixReadOnly(matrix)]
expected: FAIL
[new DOMMatrixReadOnly("scale(2, 2), translateX(5px) translateY(5px)")]
expected: FAIL
[new DOMMatrix("scale(2) translateX(5px) translateY(5px) rotate(5deg) rotate(-5deg)")]
expected: FAIL
[new DOMMatrixReadOnly("scale(2, 2) translateX(5px) translateY(5px)")]
expected: FAIL
[new DOMMatrixReadOnly("scale(2)translateX(5px)translateY(5px)")]
expected: FAIL
[new DOMMatrixReadOnly("scale(2) translateX(calc(2 * 2.5px)) translateY(5px)")]
expected: FAIL
[new DOMMatrixReadOnly("scale(2) translateX(5px) translateY(5px) rotate(5deg) rotate(-5deg)")]
expected: FAIL
[new DOMMatrixReadOnly("rotate(5)")]
expected: FAIL
[new DOMMatrixReadOnly("rotate(5, 5, 5)")]
expected: FAIL
[new DOMMatrixReadOnly("rotate(5, 5px, 5px)")]
expected: FAIL
[new DOMMatrixReadOnly("rotate(5deg, 5px, 5px)")]
expected: FAIL

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

@ -37,3 +37,10 @@
[test flipY()]
expected: FAIL
[test transformPoint() - 2d matrix]
expected: FAIL
[test transformPoint() - 3d matrix]
expected: FAIL

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

@ -0,0 +1,37 @@
[DOMMatrix-a-f-alias.html]
[DOMMatrixReadOnly getting a with throwing getter for m11]
expected: FAIL
[DOMMatrixReadOnly getting m11 with throwing getter for a]
expected: FAIL
[DOMMatrixReadOnly getting b with throwing getter for m12]
expected: FAIL
[DOMMatrixReadOnly getting m12 with throwing getter for b]
expected: FAIL
[DOMMatrixReadOnly getting c with throwing getter for m21]
expected: FAIL
[DOMMatrixReadOnly getting m21 with throwing getter for c]
expected: FAIL
[DOMMatrixReadOnly getting d with throwing getter for m22]
expected: FAIL
[DOMMatrixReadOnly getting m22 with throwing getter for d]
expected: FAIL
[DOMMatrixReadOnly getting e with throwing getter for m41]
expected: FAIL
[DOMMatrixReadOnly getting m41 with throwing getter for e]
expected: FAIL
[DOMMatrixReadOnly getting f with throwing getter for m42]
expected: FAIL
[DOMMatrixReadOnly getting m42 with throwing getter for f]
expected: FAIL

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

@ -52,3 +52,22 @@
[DOMMatrixReadOnly multiply]
expected: FAIL
[DOMMatrixReadOnly flipX]
expected: FAIL
[DOMMatrixReadOnly flipY]
expected: FAIL
[DOMMatrixReadOnly inverse]
expected: FAIL
[DOMMatrixReadOnly transformPoint]
expected: FAIL
[DOMMatrixReadOnly toFloat32Array]
expected: FAIL
[DOMMatrixReadOnly toFloat64Array]
expected: FAIL

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

@ -71,6 +71,9 @@
[DOMMatrix stringifier: throwing getters (3d)]
expected: FAIL
[DOMMatrixReadOnly stringifier: identity (2d)]
expected: FAIL
[DOMMatrixReadOnly stringifier: identity (3d)]
expected: FAIL
@ -140,6 +143,9 @@
[DOMMatrixReadOnly stringifier: Number.MIN_VALUE (3d)]
expected: FAIL
[DOMMatrixReadOnly stringifier: throwing getters (2d)]
expected: FAIL
[DOMMatrixReadOnly stringifier: throwing getters (3d)]
expected: FAIL

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

@ -0,0 +1,13 @@
[DOMPoint-001.html]
[testConstructor2undefined]
expected: FAIL
[testConstructor1]
expected: FAIL
[DOMPointReadOnly constructor with no values]
expected: FAIL
[DOMPointReadOnly constructor with 4 values]
expected: FAIL

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

@ -1,6 +1,94 @@
[DOMPoint-002.html]
[test DOMPoint Constructor one args]
expected: FAIL
[test DOMPoint Constructor with undefined]
expected: FAIL
[test DOMPoint Constructor with empty object]
expected: FAIL
[test DOMPoint fromPoint with empty object]
expected: FAIL
[test DOMPoint fromPoint with x]
expected: FAIL
[test DOMPoint fromPoint with x, y]
expected: FAIL
[test DOMPoint fromPoint with x, y, z]
expected: FAIL
[test DOMPoint fromPoint with x, y, z, w]
expected: FAIL
[test DOMPoint fromPoint with x, y, z, w, v]
expected: FAIL
[test DOMPoint fromPoint with x, z]
expected: FAIL
[test DOMPoint fromPoint with undefined value]
expected: FAIL
[test DOMPoint matrixTransform]
expected: FAIL
[test DOMPointReadOnly Constructor no args]
expected: FAIL
[test DOMPointReadOnly Constructor one args]
expected: FAIL
[test DOMPointReadOnly Constructor two args]
expected: FAIL
[test DOMPointReadOnly Constructor three args]
expected: FAIL
[test DOMPointReadOnly Constructor four args]
expected: FAIL
[test DOMPointReadOnly Constructor more then four args]
expected: FAIL
[test DOMPointReadOnly Constructor with undefined]
expected: FAIL
[test DOMPointReadOnly Constructor with string]
expected: FAIL
[test DOMPointReadOnly Constructor with object]
expected: FAIL
[test DOMPointReadOnly fromPoint with empty object]
expected: FAIL
[test DOMPointReadOnly fromPoint with x]
expected: FAIL
[test DOMPointReadOnly fromPoint with x, y]
expected: FAIL
[test DOMPointReadOnly fromPoint with x, y, z]
expected: FAIL
[test DOMPointReadOnly fromPoint with x, y, z, w]
expected: FAIL
[test DOMPointReadOnly fromPoint with x, y, z, w, v]
expected: FAIL
[test DOMPointReadOnly fromPoint with x, z]
expected: FAIL
[test DOMPointReadOnly fromPoint with undefined value]
expected: FAIL
[test DOMPointReadOnly matrixTransform]
expected: FAIL
[test DOMPointReadOnly Attributes undefined]
expected: FAIL

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

@ -1,4 +1,7 @@
[DOMQuad-001.html]
[testConstructor0: bounds]
expected: FAIL
[testConstructor5: bounds]
expected: FAIL
@ -8,6 +11,33 @@
[testConstructor7: bounds]
expected: FAIL
[testConstructor8: bounds]
expected: FAIL
[testConstructor9: bounds]
expected: FAIL
[testConstructor10: bounds]
expected: FAIL
[testConstructor11: bounds]
expected: FAIL
[testConstructor12: bounds]
expected: FAIL
[testConstructor13: bounds]
expected: FAIL
[testConstructor14: bounds]
expected: FAIL
[testConstructor16: bounds]
expected: FAIL
[p1Top4Attributes0: bounds]
expected: FAIL
[p1Top4Attributes1: bounds]
expected: FAIL

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

@ -0,0 +1,58 @@
[DOMRect-001.html]
[testConstructor1]
expected: FAIL
[testConstructor2]
expected: FAIL
[testConstructor3]
expected: FAIL
[testConstructorUndefined1]
expected: FAIL
[testReadOnlyConstructor0]
expected: FAIL
[testReadOnlyConstructor1]
expected: FAIL
[testReadOnlyConstructor2]
expected: FAIL
[testReadOnlyConstructor3]
expected: FAIL
[testReadOnlyConstructor4]
expected: FAIL
[testReadOnlyConstructor5]
expected: FAIL
[testReadOnlyConstructorNegativeWidth]
expected: FAIL
[testReadOnlyConstructorNegativeHeight]
expected: FAIL
[testReadOnlyConstructorNegativeWidthHeight]
expected: FAIL
[testReadOnlyConstructorUndefined1]
expected: FAIL
[testReadOnlyConstructorUndefined2]
expected: FAIL
[testReadOnlyConstructorString1]
expected: FAIL
[testReadOnlyConstructorString2]
expected: FAIL
[testReadOnlySetReadOnlyAttributes]
expected: FAIL
[testReadOnlySetAttributes]
expected: FAIL

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

@ -1,4 +1,61 @@
[DOMRect-002.html]
[DOMRect constructor with one parameter]
expected: FAIL
[DOMRect constructor with two parameters]
expected: FAIL
[DOMRect constructor with three parameters]
expected: FAIL
[DOMRect constructor with undefined]
expected: FAIL
[DOMRectReadOnly constructor without parameter]
expected: FAIL
[DOMRectReadOnly constructor with one parameter]
expected: FAIL
[DOMRectReadOnly constructor with two parameters]
expected: FAIL
[DOMRectReadOnly constructor with three parameters]
expected: FAIL
[DOMRectReadOnly constructor with four parameters]
expected: FAIL
[DOMRectReadOnly constructor with five parameters]
expected: FAIL
[DOMRectReadOnly constructor with negative width]
expected: FAIL
[DOMRectReadOnly constructor with negative height]
expected: FAIL
[DOMRectReadOnly constructor with negative width and height]
expected: FAIL
[DOMRectReadOnly constructor with undefined]
expected: FAIL
[DOMRectReadOnly constructor with NaN and infinity and null]
expected: FAIL
[DOMRectReadOnly constructor with number string]
expected: FAIL
[DOMRectReadOnly constructor with character string]
expected: FAIL
[DOMRectReadOnly: set top/right/bottom/left]
expected: FAIL
[DOMRectReadOnly: set x/y/width/height]
expected: FAIL
[DOMRect.fromRect]
expected: FAIL

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

@ -5,9 +5,6 @@
[DOMMatrix scaleNonUniformSelf must be nuked]
expected: FAIL
[DOMQuad bounds must be nuked]
expected: FAIL
[DOMMatrixReadOnly scale number of required arguments]
expected: FAIL
@ -61,3 +58,7 @@
[DOMMatrix preMultiplySelf number of required arguments]
expected: FAIL
[DOMQuad bounds must be nuked]
expected: FAIL

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

@ -1,7 +1,34 @@
[interfaces.html]
[DOMPointReadOnly interface: operation fromPoint(DOMPointInit)]
expected: FAIL
[DOMPointReadOnly interface: operation matrixTransform(DOMMatrixInit)]
expected: FAIL
[DOMPointReadOnly must be primary interface of new DOMPointReadOnly()]
expected: FAIL
[Stringification of new DOMPointReadOnly()]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "fromPoint" with the proper type (0)]
expected: FAIL
[DOMPointReadOnly interface: calling fromPoint(DOMPointInit) on new DOMPointReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "x" with the proper type (1)]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "y" with the proper type (2)]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "z" with the proper type (3)]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "w" with the proper type (4)]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "matrixTransform" with the proper type (5)]
expected: FAIL
@ -11,6 +38,9 @@
[DOMPoint interface: legacy window alias]
expected: FAIL
[DOMPoint interface: operation fromPoint(DOMPointInit)]
expected: FAIL
[DOMPointReadOnly interface: new DOMPoint() must inherit property "matrixTransform" with the proper type (5)]
expected: FAIL
@ -20,9 +50,42 @@
[DOMRectReadOnly interface: operation fromRect(DOMRectInit)]
expected: FAIL
[DOMRectReadOnly must be primary interface of new DOMRectReadOnly()]
expected: FAIL
[Stringification of new DOMRectReadOnly()]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "fromRect" with the proper type (0)]
expected: FAIL
[DOMRectReadOnly interface: calling fromRect(DOMRectInit) on new DOMRectReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "x" with the proper type (1)]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "y" with the proper type (2)]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "width" with the proper type (3)]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "height" with the proper type (4)]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "top" with the proper type (5)]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "right" with the proper type (6)]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "bottom" with the proper type (7)]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "left" with the proper type (8)]
expected: FAIL
[DOMRect interface: legacy window alias]
expected: FAIL
@ -35,6 +98,12 @@
[DOMQuad interface: operation fromQuad(DOMQuadInit)]
expected: FAIL
[DOMQuad interface: operation getBounds()]
expected: FAIL
[DOMQuad interface: new DOMQuad() must inherit property "getBounds" with the proper type (6)]
expected: FAIL
[DOMMatrixReadOnly interface: operation fromMatrix(DOMMatrixInit)]
expected: FAIL
@ -71,15 +140,177 @@
[DOMMatrixReadOnly interface: operation multiply(DOMMatrixInit)]
expected: FAIL
[DOMMatrixReadOnly must be primary interface of new DOMMatrixReadOnly()]
expected: FAIL
[Stringification of new DOMMatrixReadOnly()]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "fromMatrix" with the proper type (0)]
expected: FAIL
[DOMMatrixReadOnly interface: calling fromMatrix(DOMMatrixInit) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "fromFloat32Array" with the proper type (1)]
expected: FAIL
[DOMMatrixReadOnly interface: calling fromFloat32Array(Float32Array) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "fromFloat64Array" with the proper type (2)]
expected: FAIL
[DOMMatrixReadOnly interface: calling fromFloat64Array(Float64Array) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "a" with the proper type (3)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "b" with the proper type (4)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "c" with the proper type (5)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "d" with the proper type (6)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "e" with the proper type (7)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "f" with the proper type (8)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m11" with the proper type (9)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m12" with the proper type (10)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m13" with the proper type (11)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m14" with the proper type (12)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m21" with the proper type (13)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m22" with the proper type (14)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m23" with the proper type (15)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m24" with the proper type (16)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m31" with the proper type (17)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m32" with the proper type (18)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m33" with the proper type (19)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m34" with the proper type (20)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m41" with the proper type (21)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m42" with the proper type (22)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m43" with the proper type (23)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m44" with the proper type (24)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "is2D" with the proper type (25)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "isIdentity" with the proper type (26)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "translate" with the proper type (27)]
expected: FAIL
[DOMMatrixReadOnly interface: calling translate(unrestricted double,unrestricted double,unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale" with the proper type (28)]
expected: FAIL
[DOMMatrixReadOnly interface: calling scale(unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double,unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale3d" with the proper type (29)]
expected: FAIL
[DOMMatrixReadOnly interface: calling scale3d(unrestricted double,unrestricted double,unrestricted double,unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "rotate" with the proper type (30)]
expected: FAIL
[DOMMatrixReadOnly interface: calling rotate(unrestricted double,unrestricted double,unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "rotateFromVector" with the proper type (31)]
expected: FAIL
[DOMMatrixReadOnly interface: calling rotateFromVector(unrestricted double,unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "rotateAxisAngle" with the proper type (32)]
expected: FAIL
[DOMMatrixReadOnly interface: calling rotateAxisAngle(unrestricted double,unrestricted double,unrestricted double,unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "skewX" with the proper type (33)]
expected: FAIL
[DOMMatrixReadOnly interface: calling skewX(unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "skewY" with the proper type (34)]
expected: FAIL
[DOMMatrixReadOnly interface: calling skewY(unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "multiply" with the proper type (35)]
expected: FAIL
[DOMMatrixReadOnly interface: calling multiply(DOMMatrixInit) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "flipX" with the proper type (36)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "flipY" with the proper type (37)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "inverse" with the proper type (38)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "transformPoint" with the proper type (39)]
expected: FAIL
[DOMMatrixReadOnly interface: calling transformPoint(DOMPointInit) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "toFloat32Array" with the proper type (40)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "toFloat64Array" with the proper type (41)]
expected: FAIL
[DOMMatrixReadOnly must be primary interface of DOMMatrixReadOnly.fromMatrix({is2D: false})]
expected: FAIL
@ -623,12 +854,60 @@
[Stringification of [object DOMRect\]]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "fromPoint(DOMPointInit)" with the proper type]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "x" with the proper type]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "y" with the proper type]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "z" with the proper type]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "w" with the proper type]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "matrixTransform(DOMMatrixInit)" with the proper type]
expected: FAIL
[DOMPoint interface: calling fromPoint(DOMPointInit) on new DOMPoint() with too few arguments must throw TypeError]
expected: FAIL
[DOMPointReadOnly interface: calling fromPoint(DOMPointInit) on new DOMPoint() with too few arguments must throw TypeError]
expected: FAIL
[DOMPointReadOnly interface: new DOMPoint() must inherit property "matrixTransform(DOMMatrixInit)" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "fromRect(DOMRectInit)" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "x" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "y" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "width" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "height" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "top" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "right" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "bottom" with the proper type]
expected: FAIL
[DOMRectReadOnly interface: new DOMRectReadOnly() must inherit property "left" with the proper type]
expected: FAIL
[DOMRect interface: calling fromRect(DOMRectInit) on new DOMRect() with too few arguments must throw TypeError]
expected: FAIL
@ -641,6 +920,9 @@
[DOMQuad interface: calling fromQuad(DOMQuadInit) on new DOMQuad() with too few arguments must throw TypeError]
expected: FAIL
[DOMQuad interface: new DOMQuad() must inherit property "getBounds()" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: operation translate(unrestricted double, unrestricted double, unrestricted double)]
expected: FAIL
@ -659,6 +941,150 @@
[DOMMatrixReadOnly interface: operation rotateAxisAngle(unrestricted double, unrestricted double, unrestricted double, unrestricted double)]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "fromMatrix(DOMMatrixInit)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "fromFloat32Array(Float32Array)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "fromFloat64Array(Float64Array)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "a" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "b" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "c" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "d" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "e" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "f" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m11" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m12" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m13" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m14" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m21" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m22" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m23" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m24" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m31" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m32" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m33" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m34" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m41" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m42" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m43" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "m44" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "is2D" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "isIdentity" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "translate(unrestricted double, unrestricted double, unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: calling translate(unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: calling scale(unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: calling scale3d(unrestricted double, unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "rotate(unrestricted double, unrestricted double, unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: calling rotate(unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "rotateFromVector(unrestricted double, unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: calling rotateFromVector(unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "rotateAxisAngle(unrestricted double, unrestricted double, unrestricted double, unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: calling rotateAxisAngle(unrestricted double, unrestricted double, unrestricted double, unrestricted double) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "skewX(unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "skewY(unrestricted double)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "multiply(DOMMatrixInit)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "flipX()" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "flipY()" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "inverse()" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "transformPoint(DOMPointInit)" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "toFloat32Array()" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: new DOMMatrixReadOnly() must inherit property "toFloat64Array()" with the proper type]
expected: FAIL
[DOMMatrixReadOnly interface: DOMMatrixReadOnly.fromMatrix({is2D: false}) must inherit property "fromMatrix(DOMMatrixInit)" with the proper type]
expected: FAIL
@ -1111,3 +1537,13 @@
[DOMMatrixReadOnly interface: DOMMatrix.fromMatrix({is2D: false}) must inherit property "toFloat64Array()" with the proper type]
expected: FAIL
[Test driver]
expected: FAIL
[DOMPointReadOnly interface: operation toJSON()]
expected: FAIL
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "toJSON()" with the proper type]
expected: FAIL

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

@ -5,6 +5,9 @@
[DOMQuad]
expected: FAIL
[DOMQuad irregular]
expected: FAIL
[DOMMatrix NaN]
expected: FAIL

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

@ -36,14 +36,32 @@
checkDOMPoint(new DOMPoint(1, 2, 3, 4, 5), {x:1, y:2, z:3, w:4});
},'testConstructor5');
test(function() {
checkDOMPoint(new DOMPoint({}), {x:NaN, y:0, z:0, w:1});
checkDOMPoint(new DOMPoint({}), {x:0, y:0, z:0, w:1});
},'testConstructorDictionary0');
test(function() {
checkDOMPoint(new DOMPoint({x:1}), {x:NaN, y:0, z:0, w:1});
checkDOMPoint(new DOMPoint({x:1}), {x:1, y:0, z:0, w:1});
},'testConstructorDictionary1');
test(function() {
checkDOMPoint(new DOMPoint({x:1, y:2}), {x:NaN, y:0, z:0, w:1});
checkDOMPoint(new DOMPoint({x:1, y:2}), {x:1, y:2, z:0, w:1});
},'testConstructorDictionary2');
test(function() {
checkDOMPoint(new DOMPoint({x:1, y:2, z:3}), {x:1, y:2, z:3, w:1});
},'testConstructorDictionary3');
test(function() {
checkDOMPoint(new DOMPoint({x:1, y:2, z:3, w:4}), {x:1, y:2, z:3, w:4});
},'testConstructorDictionary4');
test(function() {
checkDOMPoint(new DOMPoint({x:1, y:2, z:3, w:4, v:5}), {x:1, y:2, z:3, w:4});
},'testConstructorDictionary5');
test(function() {
checkDOMPoint(new DOMPoint({x:1, z:3}), {x:1, y:0, z:3, w:1});
},'testConstructorDictionary2irregular');
test(function() {
checkDOMPoint(new DOMPoint({x:1, y: undefined, z:3}), {x:1, y:0, z:3, w:1});
},'testConstructorDictionary2undefined');
test(function() {
checkDOMPoint(new DOMPoint({x:1, z:3}), {x:1, y:0, z:3, w:1});
},'testConstructorDOMPoint');
test(function() {
checkDOMPoint(new DOMPoint(1, undefined), {x:1, y:0, z:0, w:1});
},'testConstructor2undefined');
@ -51,7 +69,7 @@
checkDOMPoint(new DOMPoint("a", "b"), {x:NaN, y:NaN, z:0, w:1});
},'testConstructorUndefined1');
test(function() {
checkDOMPoint(new DOMPoint({x:"a", y:"b"}), {x:NaN, y:0, z:0, w:1});
checkDOMPoint(new DOMPoint({x:"a", y:"b"}), {x:NaN, y:NaN, z:0, w:1});
},'testConstructorUndefined2');
test(function() {
checkDOMPoint(new DOMPointReadOnly(), {x:0, y:0, z:0, w:1});