зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1186265 - Partially update DOMPoint, DOMQuad, DOMRect, DOMMatrix. r=bz
Some notes: this does not fully bring us to compliance to the current spec. Instead, these are the fixes that I needed to make in order to make css/geometry/interfaces.html pass with the DOMPoint changes in the previous patches. I don't fully understand why that patch caused the test to fail the way it did, but it ended up being easier to fix our code than understand why the harness was falling over. The DOMQuad::QuadBounds class was the source of some confusion for me. Now that DOMRectReadOnly is a concrete class with members, I wanted to avoid wasting them. However, the spec is unclear as to whether a DOMQuad's bound's should be live -- that is because DOMQuad exposes DOMPoint, we can set its points after retrieving a QuadBounds object. Our current code is live, setting the points changes the QuadBounds. Chromium's current behavior is to never update the QuadBounds object. I've left our behavior untouched in this patch (and waste 4 doubles per QuadBounds object), but I am intending to file a bug to understand what the intent of the spec is. I wonder if the author intended the points to be DOMPointReadOnly instead. If so, we could simplify the DOMRectReadOnly code and get rid of the virtual getters, which would be nice. I also wasn't thrilled to put the DOMMatrix setters on the DOMMatrixReadOnly class, but for brevity and simplicity of implementation, I've made them public. I briefly considered making the setters protected on the ReadOnly version of the class, but I'm not convinced that having to explicitly make them public on the derived class is worth the extra copies of the names. MozReview-Commit-ID: CjdW4Nbnc6A --HG-- extra : rebase_source : 97e9386cfb17319242913d28117c8b1b8b6fbbbe
This commit is contained in:
Родитель
44b34ec276
Коммит
aec5df4e02
|
@ -22,6 +22,10 @@
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace dom {
|
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;
|
static const double radPerDegree = 2.0 * M_PI / 360.0;
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMMatrixReadOnly, mParent)
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMMatrixReadOnly, mParent)
|
||||||
|
@ -29,6 +33,39 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMMatrixReadOnly, mParent)
|
||||||
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMMatrixReadOnly, AddRef)
|
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMMatrixReadOnly, AddRef)
|
||||||
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMMatrixReadOnly, Release)
|
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>
|
already_AddRefed<DOMMatrix>
|
||||||
DOMMatrixReadOnly::Translate(double aTx,
|
DOMMatrixReadOnly::Translate(double aTx,
|
||||||
double aTy,
|
double aTy,
|
||||||
|
@ -365,7 +402,9 @@ DOMMatrix::Constructor(const GlobalObject& aGlobal, const DOMMatrixReadOnly& aOt
|
||||||
return obj.forget();
|
return obj.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T> void SetDataInMatrix(DOMMatrix* aMatrix, const T* aData, int aLength, ErrorResult& aRv)
|
template <typename T>
|
||||||
|
static void
|
||||||
|
SetDataInMatrix(DOMMatrixReadOnly* aMatrix, const T* aData, int aLength, ErrorResult& aRv)
|
||||||
{
|
{
|
||||||
if (aLength == 16) {
|
if (aLength == 16) {
|
||||||
aMatrix->SetM11(aData[0]);
|
aMatrix->SetM11(aData[0]);
|
||||||
|
@ -392,7 +431,9 @@ template <typename T> void SetDataInMatrix(DOMMatrix* aMatrix, const T* aData, i
|
||||||
aMatrix->SetE(aData[4]);
|
aMatrix->SetE(aData[4]);
|
||||||
aMatrix->SetF(aData[5]);
|
aMatrix->SetF(aData[5]);
|
||||||
} else {
|
} else {
|
||||||
aRv.Throw(NS_ERROR_DOM_INDEX_SIZE_ERR);
|
nsAutoString lengthStr;
|
||||||
|
lengthStr.AppendInt(aLength);
|
||||||
|
aRv.ThrowTypeError<MSG_MATRIX_INIT_LENGTH_WRONG>(lengthStr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -425,7 +466,8 @@ DOMMatrix::Constructor(const GlobalObject& aGlobal, const Sequence<double>& aNum
|
||||||
return obj.forget();
|
return obj.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DOMMatrix::Ensure3DMatrix()
|
void
|
||||||
|
DOMMatrixReadOnly::Ensure3DMatrix()
|
||||||
{
|
{
|
||||||
if (!mMatrix3D) {
|
if (!mMatrix3D) {
|
||||||
mMatrix3D = new gfx::Matrix4x4(gfx::Matrix4x4::From2D(*mMatrix2D));
|
mMatrix3D = new gfx::Matrix4x4(gfx::Matrix4x4::From2D(*mMatrix2D));
|
||||||
|
@ -652,8 +694,8 @@ DOMMatrix::InvertSelf()
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
DOMMatrix*
|
DOMMatrixReadOnly*
|
||||||
DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
|
DOMMatrixReadOnly::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
|
||||||
{
|
{
|
||||||
// An empty string is a no-op.
|
// An empty string is a no-op.
|
||||||
if (aTransformList.IsEmpty()) {
|
if (aTransformList.IsEmpty()) {
|
||||||
|
@ -687,6 +729,13 @@ DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DOMMatrix*
|
||||||
|
DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv)
|
||||||
|
{
|
||||||
|
DOMMatrixReadOnly::SetMatrixValue(aTransformList, aRv);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
JSObject*
|
JSObject*
|
||||||
DOMMatrix::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
DOMMatrix::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,6 +23,7 @@ namespace dom {
|
||||||
class GlobalObject;
|
class GlobalObject;
|
||||||
class DOMMatrix;
|
class DOMMatrix;
|
||||||
class DOMPoint;
|
class DOMPoint;
|
||||||
|
class StringOrUnrestrictedDoubleSequence;
|
||||||
struct DOMPointInit;
|
struct DOMPointInit;
|
||||||
|
|
||||||
class DOMMatrixReadOnly : public nsWrapperCache
|
class DOMMatrixReadOnly : public nsWrapperCache
|
||||||
|
@ -53,6 +54,14 @@ public:
|
||||||
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DOMMatrixReadOnly)
|
NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DOMMatrixReadOnly)
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(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) \
|
#define GetMatrixMember(entry2D, entry3D, default) \
|
||||||
{ \
|
{ \
|
||||||
if (mMatrix3D) { \
|
if (mMatrix3D) { \
|
||||||
|
@ -96,6 +105,52 @@ public:
|
||||||
#undef GetMatrixMember
|
#undef GetMatrixMember
|
||||||
#undef Get3DMatrixMember
|
#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,
|
already_AddRefed<DOMMatrix> Translate(double aTx,
|
||||||
double aTy,
|
double aTy,
|
||||||
double aTz = 0) const;
|
double aTz = 0) const;
|
||||||
|
@ -145,6 +200,9 @@ protected:
|
||||||
|
|
||||||
virtual ~DOMMatrixReadOnly() {}
|
virtual ~DOMMatrixReadOnly() {}
|
||||||
|
|
||||||
|
DOMMatrixReadOnly* SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv);
|
||||||
|
void Ensure3DMatrix();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DOMMatrixReadOnly() = delete;
|
DOMMatrixReadOnly() = delete;
|
||||||
DOMMatrixReadOnly(const DOMMatrixReadOnly&) = delete;
|
DOMMatrixReadOnly(const DOMMatrixReadOnly&) = delete;
|
||||||
|
@ -179,53 +237,8 @@ public:
|
||||||
static already_AddRefed<DOMMatrix>
|
static already_AddRefed<DOMMatrix>
|
||||||
Constructor(const GlobalObject& aGlobal, const Sequence<double>& aNumberSequence, ErrorResult& aRv);
|
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;
|
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* MultiplySelf(const DOMMatrix& aOther);
|
||||||
DOMMatrix* PreMultiplySelf(const DOMMatrix& aOther);
|
DOMMatrix* PreMultiplySelf(const DOMMatrix& aOther);
|
||||||
DOMMatrix* TranslateSelf(double aTx,
|
DOMMatrix* TranslateSelf(double aTx,
|
||||||
|
@ -257,8 +270,6 @@ public:
|
||||||
DOMMatrix* SkewYSelf(double aSy);
|
DOMMatrix* SkewYSelf(double aSy);
|
||||||
DOMMatrix* InvertSelf();
|
DOMMatrix* InvertSelf();
|
||||||
DOMMatrix* SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv);
|
DOMMatrix* SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv);
|
||||||
protected:
|
|
||||||
void Ensure3DMatrix();
|
|
||||||
|
|
||||||
virtual ~DOMMatrix() {}
|
virtual ~DOMMatrix() {}
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,9 +17,32 @@ NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMPointReadOnly, mParent)
|
||||||
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMPointReadOnly, AddRef)
|
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMPointReadOnly, AddRef)
|
||||||
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMPointReadOnly, Release)
|
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>
|
already_AddRefed<DOMPoint>
|
||||||
DOMPoint::Constructor(const GlobalObject& aGlobal, const DOMPointInit& aParams,
|
DOMPoint::FromPoint(const GlobalObject& aGlobal, const DOMPointInit& aParams)
|
||||||
ErrorResult& aRV)
|
|
||||||
{
|
{
|
||||||
RefPtr<DOMPoint> obj =
|
RefPtr<DOMPoint> obj =
|
||||||
new DOMPoint(aGlobal.GetAsSupports(), aParams.mX, aParams.mY,
|
new DOMPoint(aGlobal.GetAsSupports(), aParams.mX, aParams.mY,
|
||||||
|
|
|
@ -34,6 +34,12 @@ 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_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(DOMPointReadOnly)
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(DOMPointReadOnly)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(DOMPointReadOnly)
|
||||||
|
|
||||||
|
@ -42,6 +48,9 @@ public:
|
||||||
double Z() const { return mZ; }
|
double Z() const { return mZ; }
|
||||||
double W() const { return mW; }
|
double W() const { return mW; }
|
||||||
|
|
||||||
|
nsISupports* GetParentObject() const { return mParent; }
|
||||||
|
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual ~DOMPointReadOnly() {}
|
virtual ~DOMPointReadOnly() {}
|
||||||
|
|
||||||
|
@ -58,13 +67,11 @@ public:
|
||||||
{}
|
{}
|
||||||
|
|
||||||
static already_AddRefed<DOMPoint>
|
static already_AddRefed<DOMPoint>
|
||||||
Constructor(const GlobalObject& aGlobal, const DOMPointInit& aParams,
|
FromPoint(const GlobalObject& aGlobal, const DOMPointInit& aParams);
|
||||||
ErrorResult& aRV);
|
|
||||||
static already_AddRefed<DOMPoint>
|
static already_AddRefed<DOMPoint>
|
||||||
Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
||||||
double aZ, double aW, ErrorResult& aRV);
|
double aZ, double aW, ErrorResult& aRV);
|
||||||
|
|
||||||
nsISupports* GetParentObject() const { return mParent; }
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
void SetX(double aX) { mX = aX; }
|
void SetX(double aX) { mX = aX; }
|
||||||
|
|
|
@ -15,7 +15,7 @@ using namespace mozilla;
|
||||||
using namespace mozilla::dom;
|
using namespace mozilla::dom;
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMQuad, mParent, mBounds, mPoints[0],
|
NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMQuad, mParent, mPoints[0],
|
||||||
mPoints[1], mPoints[2], mPoints[3])
|
mPoints[1], mPoints[2], mPoints[3])
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMQuad, AddRef)
|
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMQuad, AddRef)
|
||||||
|
@ -53,10 +53,10 @@ DOMQuad::Constructor(const GlobalObject& aGlobal,
|
||||||
ErrorResult& aRV)
|
ErrorResult& aRV)
|
||||||
{
|
{
|
||||||
RefPtr<DOMQuad> obj = new DOMQuad(aGlobal.GetAsSupports());
|
RefPtr<DOMQuad> obj = new DOMQuad(aGlobal.GetAsSupports());
|
||||||
obj->mPoints[0] = DOMPoint::Constructor(aGlobal, aP1, aRV);
|
obj->mPoints[0] = DOMPoint::FromPoint(aGlobal, aP1);
|
||||||
obj->mPoints[1] = DOMPoint::Constructor(aGlobal, aP2, aRV);
|
obj->mPoints[1] = DOMPoint::FromPoint(aGlobal, aP2);
|
||||||
obj->mPoints[2] = DOMPoint::Constructor(aGlobal, aP3, aRV);
|
obj->mPoints[2] = DOMPoint::FromPoint(aGlobal, aP3);
|
||||||
obj->mPoints[3] = DOMPoint::Constructor(aGlobal, aP4, aRV);
|
obj->mPoints[3] = DOMPoint::FromPoint(aGlobal, aP4);
|
||||||
return obj.forget();
|
return obj.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,87 +74,44 @@ DOMQuad::Constructor(const GlobalObject& aGlobal, const DOMRectReadOnly& aRect,
|
||||||
return obj.forget();
|
return obj.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
class DOMQuad::QuadBounds final : public DOMRectReadOnly
|
void
|
||||||
|
DOMQuad::GetHorizontalMinMax(double* aX1, double* aX2) const
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
explicit QuadBounds(DOMQuad* aQuad)
|
|
||||||
: DOMRectReadOnly(aQuad->GetParentObject())
|
|
||||||
, mQuad(aQuad)
|
|
||||||
{}
|
|
||||||
|
|
||||||
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(QuadBounds, DOMRectReadOnly)
|
|
||||||
NS_DECL_ISUPPORTS_INHERITED
|
|
||||||
|
|
||||||
virtual double X() const override
|
|
||||||
{
|
|
||||||
double x1, x2;
|
double x1, x2;
|
||||||
GetHorizontalMinMax(&x1, &x2);
|
x1 = x2 = Point(0)->X();
|
||||||
return x1;
|
|
||||||
}
|
|
||||||
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) {
|
for (uint32_t i = 1; i < 4; ++i) {
|
||||||
double x = mQuad->Point(i)->X();
|
double x = Point(i)->X();
|
||||||
x1 = std::min(x1, x);
|
x1 = std::min(x1, x);
|
||||||
x2 = std::max(x2, x);
|
x2 = std::max(x2, x);
|
||||||
}
|
}
|
||||||
*aX1 = x1;
|
*aX1 = x1;
|
||||||
*aX2 = x2;
|
*aX2 = x2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetVerticalMinMax(double* aY1, double* aY2) const
|
void
|
||||||
{
|
DOMQuad::GetVerticalMinMax(double* aY1, double* aY2) const
|
||||||
|
{
|
||||||
double y1, y2;
|
double y1, y2;
|
||||||
y1 = y2 = mQuad->Point(0)->Y();
|
y1 = y2 = Point(0)->Y();
|
||||||
for (uint32_t i = 1; i < 4; ++i) {
|
for (uint32_t i = 1; i < 4; ++i) {
|
||||||
double y = mQuad->Point(i)->Y();
|
double y = Point(i)->Y();
|
||||||
y1 = std::min(y1, y);
|
y1 = std::min(y1, y);
|
||||||
y2 = std::max(y2, y);
|
y2 = std::max(y2, y);
|
||||||
}
|
}
|
||||||
*aY1 = y1;
|
*aY1 = y1;
|
||||||
*aY2 = y2;
|
*aY2 = y2;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
already_AddRefed<DOMRectReadOnly>
|
||||||
virtual ~QuadBounds() {}
|
DOMQuad::GetBounds() const
|
||||||
|
{
|
||||||
RefPtr<DOMQuad> mQuad;
|
double x1, x2;
|
||||||
};
|
double y1, y2;
|
||||||
|
|
||||||
NS_IMPL_CYCLE_COLLECTION_INHERITED(DOMQuad::QuadBounds, DOMRectReadOnly, mQuad)
|
GetHorizontalMinMax(&x1, &x2);
|
||||||
|
GetVerticalMinMax(&y1, &y2);
|
||||||
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMQuad::QuadBounds)
|
|
||||||
NS_INTERFACE_MAP_END_INHERITING(DOMRectReadOnly)
|
RefPtr<DOMRectReadOnly> rval = new DOMRectReadOnly(GetParentObject(),
|
||||||
|
x1, y1, x2 - x1, y2 - y1);
|
||||||
NS_IMPL_ADDREF_INHERITED(DOMQuad::QuadBounds, DOMRectReadOnly)
|
return rval.forget();
|
||||||
NS_IMPL_RELEASE_INHERITED(DOMQuad::QuadBounds, DOMRectReadOnly)
|
|
||||||
|
|
||||||
DOMRectReadOnly*
|
|
||||||
DOMQuad::Bounds() const
|
|
||||||
{
|
|
||||||
if (!mBounds) {
|
|
||||||
mBounds = new QuadBounds(const_cast<DOMQuad*>(this));
|
|
||||||
}
|
|
||||||
return mBounds;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,20 +48,20 @@ public:
|
||||||
Constructor(const GlobalObject& aGlobal, const DOMRectReadOnly& aRect,
|
Constructor(const GlobalObject& aGlobal, const DOMRectReadOnly& aRect,
|
||||||
ErrorResult& aRV);
|
ErrorResult& aRV);
|
||||||
|
|
||||||
DOMRectReadOnly* Bounds() const;
|
already_AddRefed<DOMRectReadOnly> GetBounds() const;
|
||||||
DOMPoint* P1() const { return mPoints[0]; }
|
DOMPoint* P1() const { return mPoints[0]; }
|
||||||
DOMPoint* P2() const { return mPoints[1]; }
|
DOMPoint* P2() const { return mPoints[1]; }
|
||||||
DOMPoint* P3() const { return mPoints[2]; }
|
DOMPoint* P3() const { return mPoints[2]; }
|
||||||
DOMPoint* P4() const { return mPoints[3]; }
|
DOMPoint* P4() const { return mPoints[3]; }
|
||||||
|
|
||||||
DOMPoint* Point(uint32_t aIndex) { return mPoints[aIndex]; }
|
DOMPoint* Point(uint32_t aIndex) const { return mPoints[aIndex]; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
class QuadBounds;
|
void GetHorizontalMinMax(double* aX1, double* aX2) const;
|
||||||
|
void GetVerticalMinMax(double* aY1, double* aY2) const;
|
||||||
|
|
||||||
nsCOMPtr<nsISupports> mParent;
|
nsCOMPtr<nsISupports> mParent;
|
||||||
RefPtr<DOMPoint> mPoints[4];
|
RefPtr<DOMPoint> mPoints[4];
|
||||||
mutable RefPtr<QuadBounds> mBounds; // allocated lazily
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace dom
|
} // namespace dom
|
||||||
|
|
|
@ -28,6 +28,15 @@ DOMRectReadOnly::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||||
return DOMRectReadOnlyBinding::Wrap(aCx, this, 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*
|
JSObject*
|
||||||
|
@ -37,17 +46,9 @@ DOMRect::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
|
||||||
return DOMRectBinding::Wrap(aCx, this, 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>
|
already_AddRefed<DOMRect>
|
||||||
DOMRect::Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
DOMRect::Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
||||||
double aWidth, double aHeight, ErrorResult& aRV)
|
double aWidth, double aHeight, ErrorResult& aRv)
|
||||||
{
|
{
|
||||||
RefPtr<DOMRect> obj =
|
RefPtr<DOMRect> obj =
|
||||||
new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight);
|
new DOMRect(aGlobal.GetAsSupports(), aX, aY, aWidth, aHeight);
|
||||||
|
|
|
@ -31,8 +31,13 @@ public:
|
||||||
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
||||||
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMRectReadOnly)
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(DOMRectReadOnly)
|
||||||
|
|
||||||
explicit DOMRectReadOnly(nsISupports* aParent)
|
explicit DOMRectReadOnly(nsISupports* aParent, double aX = 0, double aY = 0,
|
||||||
|
double aWidth = 0, double aHeight = 0)
|
||||||
: mParent(aParent)
|
: mParent(aParent)
|
||||||
|
, mX(aX)
|
||||||
|
, mY(aY)
|
||||||
|
, mWidth(aWidth)
|
||||||
|
, mHeight(aHeight)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,12 +46,29 @@ public:
|
||||||
MOZ_ASSERT(mParent);
|
MOZ_ASSERT(mParent);
|
||||||
return mParent;
|
return mParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
virtual double X() const = 0;
|
static already_AddRefed<DOMRectReadOnly>
|
||||||
virtual double Y() const = 0;
|
Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
||||||
virtual double Width() const = 0;
|
double aWidth, double aHeight, ErrorResult& aRv);
|
||||||
virtual double Height() const = 0;
|
|
||||||
|
double X() const
|
||||||
|
{
|
||||||
|
return mX;
|
||||||
|
}
|
||||||
|
double Y() const
|
||||||
|
{
|
||||||
|
return mY;
|
||||||
|
}
|
||||||
|
double Width() const
|
||||||
|
{
|
||||||
|
return mWidth;
|
||||||
|
}
|
||||||
|
double Height() const
|
||||||
|
{
|
||||||
|
return mHeight;
|
||||||
|
}
|
||||||
|
|
||||||
double Left() const
|
double Left() const
|
||||||
{
|
{
|
||||||
|
@ -71,6 +93,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
nsCOMPtr<nsISupports> mParent;
|
nsCOMPtr<nsISupports> mParent;
|
||||||
|
double mX, mY, mWidth, mHeight;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DOMRect final : public DOMRectReadOnly
|
class DOMRect final : public DOMRectReadOnly
|
||||||
|
@ -78,21 +101,15 @@ class DOMRect final : public DOMRectReadOnly
|
||||||
public:
|
public:
|
||||||
explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
|
explicit DOMRect(nsISupports* aParent, double aX = 0, double aY = 0,
|
||||||
double aWidth = 0, double aHeight = 0)
|
double aWidth = 0, double aHeight = 0)
|
||||||
: DOMRectReadOnly(aParent)
|
: DOMRectReadOnly(aParent, aX, aY, aWidth, aHeight)
|
||||||
, mX(aX)
|
|
||||||
, mY(aY)
|
|
||||||
, mWidth(aWidth)
|
|
||||||
, mHeight(aHeight)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMRect, DOMRectReadOnly)
|
NS_INLINE_DECL_REFCOUNTING_INHERITED(DOMRect, DOMRectReadOnly)
|
||||||
|
|
||||||
static already_AddRefed<DOMRect>
|
|
||||||
Constructor(const GlobalObject& aGlobal, ErrorResult& aRV);
|
|
||||||
static already_AddRefed<DOMRect>
|
static already_AddRefed<DOMRect>
|
||||||
Constructor(const GlobalObject& aGlobal, double aX, double aY,
|
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;
|
virtual JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
|
||||||
|
|
||||||
|
@ -101,23 +118,6 @@ public:
|
||||||
}
|
}
|
||||||
void SetLayoutRect(const nsRect& aLayoutRect);
|
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)
|
void SetX(double aX)
|
||||||
{
|
{
|
||||||
mX = aX;
|
mX = aX;
|
||||||
|
@ -140,11 +140,8 @@ public:
|
||||||
return static_cast<DOMRect*>(aSupports);
|
return static_cast<DOMRect*>(aSupports);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
|
||||||
double mX, mY, mWidth, mHeight;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
~DOMRect() {};
|
~DOMRect() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class DOMRectList final : public nsISupports,
|
class DOMRectList final : public nsISupports,
|
||||||
|
|
|
@ -243,12 +243,10 @@ DOMInterfaces = {
|
||||||
|
|
||||||
'DOMMatrixReadOnly': {
|
'DOMMatrixReadOnly': {
|
||||||
'headerFile': 'mozilla/dom/DOMMatrix.h',
|
'headerFile': 'mozilla/dom/DOMMatrix.h',
|
||||||
'concrete': False,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
'DOMPointReadOnly': {
|
'DOMPointReadOnly': {
|
||||||
'headerFile': 'mozilla/dom/DOMPoint.h',
|
'headerFile': 'mozilla/dom/DOMPoint.h',
|
||||||
'concrete': False,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
'DOMRectList': {
|
'DOMRectList': {
|
||||||
|
|
|
@ -103,3 +103,4 @@ 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_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_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_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})")
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Pref="layout.css.DOMMatrix.enabled"]
|
[Pref="layout.css.DOMMatrix.enabled",
|
||||||
|
Constructor(optional (DOMString or sequence<unrestricted double>) init)]
|
||||||
interface DOMMatrixReadOnly {
|
interface DOMMatrixReadOnly {
|
||||||
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
||||||
readonly attribute unrestricted double a;
|
readonly attribute unrestricted double a;
|
||||||
|
@ -77,6 +78,7 @@ interface DOMMatrixReadOnly {
|
||||||
[Throws] Float32Array toFloat32Array();
|
[Throws] Float32Array toFloat32Array();
|
||||||
[Throws] Float64Array toFloat64Array();
|
[Throws] Float64Array toFloat64Array();
|
||||||
stringifier;
|
stringifier;
|
||||||
|
[Default] object toJSON();
|
||||||
};
|
};
|
||||||
|
|
||||||
[Pref="layout.css.DOMMatrix.enabled",
|
[Pref="layout.css.DOMMatrix.enabled",
|
||||||
|
|
|
@ -10,19 +10,26 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Pref="layout.css.DOMPoint.enabled"]
|
[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)]
|
||||||
interface DOMPointReadOnly {
|
interface DOMPointReadOnly {
|
||||||
|
[NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other);
|
||||||
|
|
||||||
readonly attribute unrestricted double x;
|
readonly attribute unrestricted double x;
|
||||||
readonly attribute unrestricted double y;
|
readonly attribute unrestricted double y;
|
||||||
readonly attribute unrestricted double z;
|
readonly attribute unrestricted double z;
|
||||||
readonly attribute unrestricted double w;
|
readonly attribute unrestricted double w;
|
||||||
|
|
||||||
|
[Default] object toJSON();
|
||||||
};
|
};
|
||||||
|
|
||||||
[Pref="layout.css.DOMPoint.enabled",
|
[Pref="layout.css.DOMPoint.enabled",
|
||||||
Constructor(optional DOMPointInit point),
|
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||||
Constructor(unrestricted double x, unrestricted double y,
|
|
||||||
optional unrestricted double z = 0, optional unrestricted double w = 1)]
|
optional unrestricted double z = 0, optional unrestricted double w = 1)]
|
||||||
interface DOMPoint : DOMPointReadOnly {
|
interface DOMPoint : DOMPointReadOnly {
|
||||||
|
[NewObject] static DOMPoint fromPoint(optional DOMPointInit other);
|
||||||
|
|
||||||
inherit attribute unrestricted double x;
|
inherit attribute unrestricted double x;
|
||||||
inherit attribute unrestricted double y;
|
inherit attribute unrestricted double y;
|
||||||
inherit attribute unrestricted double z;
|
inherit attribute unrestricted double z;
|
||||||
|
|
|
@ -19,5 +19,7 @@ interface DOMQuad {
|
||||||
[SameObject] readonly attribute DOMPoint p2;
|
[SameObject] readonly attribute DOMPoint p2;
|
||||||
[SameObject] readonly attribute DOMPoint p3;
|
[SameObject] readonly attribute DOMPoint p3;
|
||||||
[SameObject] readonly attribute DOMPoint p4;
|
[SameObject] readonly attribute DOMPoint p4;
|
||||||
[SameObject] readonly attribute DOMRectReadOnly bounds;
|
[NewObject] DOMRectReadOnly getBounds();
|
||||||
|
|
||||||
|
[Default] object toJSON();
|
||||||
};
|
};
|
|
@ -10,9 +10,8 @@
|
||||||
* liability, trademark and document use rules apply.
|
* liability, trademark and document use rules apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[Constructor,
|
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||||
Constructor(unrestricted double x, unrestricted double y,
|
optional unrestricted double width = 0, optional unrestricted double height = 0)]
|
||||||
unrestricted double width, unrestricted double height)]
|
|
||||||
interface DOMRect : DOMRectReadOnly {
|
interface DOMRect : DOMRectReadOnly {
|
||||||
inherit attribute unrestricted double x;
|
inherit attribute unrestricted double x;
|
||||||
inherit attribute unrestricted double y;
|
inherit attribute unrestricted double y;
|
||||||
|
@ -20,7 +19,9 @@ interface DOMRect : DOMRectReadOnly {
|
||||||
inherit attribute unrestricted double height;
|
inherit attribute unrestricted double height;
|
||||||
};
|
};
|
||||||
|
|
||||||
[ProbablyShortLivingWrapper]
|
[ProbablyShortLivingWrapper,
|
||||||
|
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||||
|
optional unrestricted double width = 0, optional unrestricted double height = 0)]
|
||||||
interface DOMRectReadOnly {
|
interface DOMRectReadOnly {
|
||||||
readonly attribute unrestricted double x;
|
readonly attribute unrestricted double x;
|
||||||
readonly attribute unrestricted double y;
|
readonly attribute unrestricted double y;
|
||||||
|
@ -30,6 +31,8 @@ interface DOMRectReadOnly {
|
||||||
readonly attribute unrestricted double right;
|
readonly attribute unrestricted double right;
|
||||||
readonly attribute unrestricted double bottom;
|
readonly attribute unrestricted double bottom;
|
||||||
readonly attribute unrestricted double left;
|
readonly attribute unrestricted double left;
|
||||||
|
|
||||||
|
[Default] object toJSON();
|
||||||
};
|
};
|
||||||
|
|
||||||
dictionary DOMRectInit {
|
dictionary DOMRectInit {
|
||||||
|
|
|
@ -544954,7 +544954,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"css/geometry/DOMPoint-001.html": [
|
"css/geometry/DOMPoint-001.html": [
|
||||||
"02bf66acde06025e22d65c762234a2a37fbaab68",
|
"5c174b7b7616867e5b306c935ee5069024ba2110",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"css/geometry/DOMPoint-002.html": [
|
"css/geometry/DOMPoint-002.html": [
|
||||||
|
|
|
@ -56,174 +56,24 @@
|
||||||
[new DOMMatrix(matrix)]
|
[new DOMMatrix(matrix)]
|
||||||
expected: FAIL
|
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]
|
[new DOMMatrixReadOnly(float32Array) 16 elements]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[new DOMMatrixReadOnly(float32Array) 6 elements]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[new DOMMatrixReadOnly(float64Array) 16 elements]
|
[new DOMMatrixReadOnly(float64Array) 16 elements]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[new DOMMatrixReadOnly((float64Array) 6 elements]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[new DOMMatrixReadOnly(sequence) 16 elements]
|
[new DOMMatrixReadOnly(sequence) 16 elements]
|
||||||
expected: FAIL
|
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)]
|
[new DOMMatrixReadOnly(sequence)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[new DOMMatrixReadOnly(matrix)]
|
[new DOMMatrixReadOnly(matrix)]
|
||||||
expected: FAIL
|
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)")]
|
[new DOMMatrix("scale(2) translateX(5px) translateY(5px) rotate(5deg) rotate(-5deg)")]
|
||||||
expected: FAIL
|
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)")]
|
[new DOMMatrixReadOnly("scale(2) translateX(5px) translateY(5px) rotate(5deg) rotate(-5deg)")]
|
||||||
expected: FAIL
|
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,10 +37,3 @@
|
||||||
|
|
||||||
[test flipY()]
|
[test flipY()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[test transformPoint() - 2d matrix]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[test transformPoint() - 3d matrix]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
[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,22 +52,3 @@
|
||||||
|
|
||||||
[DOMMatrixReadOnly multiply]
|
[DOMMatrixReadOnly multiply]
|
||||||
expected: FAIL
|
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,9 +71,6 @@
|
||||||
[DOMMatrix stringifier: throwing getters (3d)]
|
[DOMMatrix stringifier: throwing getters (3d)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DOMMatrixReadOnly stringifier: identity (2d)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMMatrixReadOnly stringifier: identity (3d)]
|
[DOMMatrixReadOnly stringifier: identity (3d)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -143,9 +140,6 @@
|
||||||
[DOMMatrixReadOnly stringifier: Number.MIN_VALUE (3d)]
|
[DOMMatrixReadOnly stringifier: Number.MIN_VALUE (3d)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DOMMatrixReadOnly stringifier: throwing getters (2d)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMMatrixReadOnly stringifier: throwing getters (3d)]
|
[DOMMatrixReadOnly stringifier: throwing getters (3d)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
[DOMPoint-001.html]
|
|
||||||
[testConstructor2undefined]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[testConstructor1]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMPointReadOnly constructor with no values]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMPointReadOnly constructor with 4 values]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -1,94 +1,6 @@
|
||||||
[DOMPoint-002.html]
|
[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]
|
[test DOMPoint matrixTransform]
|
||||||
expected: FAIL
|
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]
|
[test DOMPointReadOnly matrixTransform]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[test DOMPointReadOnly Attributes undefined]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
[DOMQuad-001.html]
|
[DOMQuad-001.html]
|
||||||
[testConstructor0: bounds]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[testConstructor5: bounds]
|
[testConstructor5: bounds]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -11,33 +8,6 @@
|
||||||
[testConstructor7: bounds]
|
[testConstructor7: bounds]
|
||||||
expected: FAIL
|
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]
|
[p1Top4Attributes1: bounds]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -1,58 +0,0 @@
|
||||||
[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,61 +1,4 @@
|
||||||
[DOMRect-002.html]
|
[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]
|
[DOMRect.fromRect]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,3 @@
|
||||||
|
|
||||||
[DOMMatrix preMultiplySelf number of required arguments]
|
[DOMMatrix preMultiplySelf number of required arguments]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DOMQuad bounds must be nuked]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
|
@ -1,34 +1,7 @@
|
||||||
[interfaces.html]
|
[interfaces.html]
|
||||||
[DOMPointReadOnly interface: operation fromPoint(DOMPointInit)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMPointReadOnly interface: operation matrixTransform(DOMMatrixInit)]
|
[DOMPointReadOnly interface: operation matrixTransform(DOMMatrixInit)]
|
||||||
expected: FAIL
|
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)]
|
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "matrixTransform" with the proper type (5)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -38,9 +11,6 @@
|
||||||
[DOMPoint interface: legacy window alias]
|
[DOMPoint interface: legacy window alias]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DOMPoint interface: operation fromPoint(DOMPointInit)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMPointReadOnly interface: new DOMPoint() must inherit property "matrixTransform" with the proper type (5)]
|
[DOMPointReadOnly interface: new DOMPoint() must inherit property "matrixTransform" with the proper type (5)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -50,42 +20,9 @@
|
||||||
[DOMRectReadOnly interface: operation fromRect(DOMRectInit)]
|
[DOMRectReadOnly interface: operation fromRect(DOMRectInit)]
|
||||||
expected: FAIL
|
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]
|
[DOMRectReadOnly interface: calling fromRect(DOMRectInit) on new DOMRectReadOnly() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
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]
|
[DOMRect interface: legacy window alias]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -98,12 +35,6 @@
|
||||||
[DOMQuad interface: operation fromQuad(DOMQuadInit)]
|
[DOMQuad interface: operation fromQuad(DOMQuadInit)]
|
||||||
expected: FAIL
|
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)]
|
[DOMMatrixReadOnly interface: operation fromMatrix(DOMMatrixInit)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -140,177 +71,15 @@
|
||||||
[DOMMatrixReadOnly interface: operation multiply(DOMMatrixInit)]
|
[DOMMatrixReadOnly interface: operation multiply(DOMMatrixInit)]
|
||||||
expected: FAIL
|
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]
|
[DOMMatrixReadOnly interface: calling fromMatrix(DOMMatrixInit) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
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]
|
[DOMMatrixReadOnly interface: calling fromFloat32Array(Float32Array) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
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]
|
[DOMMatrixReadOnly interface: calling fromFloat64Array(Float64Array) on new DOMMatrixReadOnly() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
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})]
|
[DOMMatrixReadOnly must be primary interface of DOMMatrixReadOnly.fromMatrix({is2D: false})]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -854,60 +623,12 @@
|
||||||
[Stringification of [object DOMRect\]]
|
[Stringification of [object DOMRect\]]
|
||||||
expected: FAIL
|
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]
|
[DOMPointReadOnly interface: new DOMPointReadOnly() must inherit property "matrixTransform(DOMMatrixInit)" with the proper type]
|
||||||
expected: FAIL
|
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]
|
[DOMPointReadOnly interface: new DOMPoint() must inherit property "matrixTransform(DOMMatrixInit)" with the proper type]
|
||||||
expected: FAIL
|
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]
|
[DOMRect interface: calling fromRect(DOMRectInit) on new DOMRect() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -920,9 +641,6 @@
|
||||||
[DOMQuad interface: calling fromQuad(DOMQuadInit) on new DOMQuad() with too few arguments must throw TypeError]
|
[DOMQuad interface: calling fromQuad(DOMQuadInit) on new DOMQuad() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
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)]
|
[DOMMatrixReadOnly interface: operation translate(unrestricted double, unrestricted double, unrestricted double)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -941,150 +659,6 @@
|
||||||
[DOMMatrixReadOnly interface: operation rotateAxisAngle(unrestricted double, unrestricted double, unrestricted double, unrestricted double)]
|
[DOMMatrixReadOnly interface: operation rotateAxisAngle(unrestricted double, unrestricted double, unrestricted double, unrestricted double)]
|
||||||
expected: FAIL
|
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]
|
[DOMMatrixReadOnly interface: DOMMatrixReadOnly.fromMatrix({is2D: false}) must inherit property "fromMatrix(DOMMatrixInit)" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1537,13 +1111,3 @@
|
||||||
|
|
||||||
[DOMMatrixReadOnly interface: DOMMatrix.fromMatrix({is2D: false}) must inherit property "toFloat64Array()" with the proper type]
|
[DOMMatrixReadOnly interface: DOMMatrix.fromMatrix({is2D: false}) must inherit property "toFloat64Array()" with the proper type]
|
||||||
expected: FAIL
|
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,9 +5,6 @@
|
||||||
[DOMQuad]
|
[DOMQuad]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[DOMQuad irregular]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[DOMMatrix NaN]
|
[DOMMatrix NaN]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -36,32 +36,14 @@
|
||||||
checkDOMPoint(new DOMPoint(1, 2, 3, 4, 5), {x:1, y:2, z:3, w:4});
|
checkDOMPoint(new DOMPoint(1, 2, 3, 4, 5), {x:1, y:2, z:3, w:4});
|
||||||
},'testConstructor5');
|
},'testConstructor5');
|
||||||
test(function() {
|
test(function() {
|
||||||
checkDOMPoint(new DOMPoint({}), {x:0, y:0, z:0, w:1});
|
checkDOMPoint(new DOMPoint({}), {x:NaN, y:0, z:0, w:1});
|
||||||
},'testConstructorDictionary0');
|
},'testConstructorDictionary0');
|
||||||
test(function() {
|
test(function() {
|
||||||
checkDOMPoint(new DOMPoint({x:1}), {x:1, y:0, z:0, w:1});
|
checkDOMPoint(new DOMPoint({x:1}), {x:NaN, y:0, z:0, w:1});
|
||||||
},'testConstructorDictionary1');
|
},'testConstructorDictionary1');
|
||||||
test(function() {
|
test(function() {
|
||||||
checkDOMPoint(new DOMPoint({x:1, y:2}), {x:1, y:2, z:0, w:1});
|
checkDOMPoint(new DOMPoint({x:1, y:2}), {x:NaN, y:0, z:0, w:1});
|
||||||
},'testConstructorDictionary2');
|
},'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() {
|
test(function() {
|
||||||
checkDOMPoint(new DOMPoint(1, undefined), {x:1, y:0, z:0, w:1});
|
checkDOMPoint(new DOMPoint(1, undefined), {x:1, y:0, z:0, w:1});
|
||||||
},'testConstructor2undefined');
|
},'testConstructor2undefined');
|
||||||
|
@ -69,7 +51,7 @@
|
||||||
checkDOMPoint(new DOMPoint("a", "b"), {x:NaN, y:NaN, z:0, w:1});
|
checkDOMPoint(new DOMPoint("a", "b"), {x:NaN, y:NaN, z:0, w:1});
|
||||||
},'testConstructorUndefined1');
|
},'testConstructorUndefined1');
|
||||||
test(function() {
|
test(function() {
|
||||||
checkDOMPoint(new DOMPoint({x:"a", y:"b"}), {x:NaN, y:NaN, z:0, w:1});
|
checkDOMPoint(new DOMPoint({x:"a", y:"b"}), {x:NaN, y:0, z:0, w:1});
|
||||||
},'testConstructorUndefined2');
|
},'testConstructorUndefined2');
|
||||||
test(function() {
|
test(function() {
|
||||||
checkDOMPoint(new DOMPointReadOnly(), {x:0, y:0, z:0, w:1});
|
checkDOMPoint(new DOMPointReadOnly(), {x:0, y:0, z:0, w:1});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче