$OpenBSD$ index f6f92b8..8d204f5 100644 --- content/svg/content/src/nsISVGPoint.h.orig Fri Feb 20 15:40:36 2015 +++ content/svg/content/src/nsISVGPoint.h Fri Feb 20 15:40:36 2015 @@ -18,7 +18,7 @@ class nsSVGElement; { 0xd6b6c440, 0xaf8d, 0x40ee, \ { 0x85, 0x6b, 0x02, 0xa3, 0x17, 0xca, 0xb2, 0x75 } } -#define MOZ_SVG_LIST_INDEX_BIT_COUNT 30 +#define MOZ_SVG_LIST_INDEX_BIT_COUNT 29 namespace mozilla { @@ -48,15 +48,17 @@ public: , mListIndex(0) , mIsReadonly(false) , mIsAnimValItem(false) + , mIsTranslatePoint(false) { SetIsDOMBinding(); } - explicit nsISVGPoint(SVGPoint* aPt) + explicit nsISVGPoint(SVGPoint* aPt, bool aIsTranslatePoint) : mList(nullptr) , mListIndex(0) , mIsReadonly(false) , mIsAnimValItem(false) + , mIsTranslatePoint(aIsTranslatePoint) { SetIsDOMBinding(); mPt.mX = aPt->GetX(); @@ -74,10 +76,9 @@ public: } /** - * Create an unowned copy of this object. The caller is responsible for the - * first AddRef()! + * Creates an unowned copy of this object's point as a DOMSVGPoint. */ - virtual nsISVGPoint* Clone() = 0; + virtual DOMSVGPoint* Copy() = 0; SVGPoint ToSVGPoint() const { return HasOwner() ? const_cast(this)->InternalItem() : mPt; @@ -97,6 +98,10 @@ public: return !!mList; } + bool IsTranslatePoint() const { + return mIsTranslatePoint; + } + /** * This method is called to notify this DOM object that it is being inserted * into a list, and give it the information it needs as a result. @@ -156,8 +161,9 @@ protected: // that if you change the capacity of any of the following. uint32_t mListIndex:MOZ_SVG_LIST_INDEX_BIT_COUNT; - uint32_t mIsReadonly:1; // uint32_t because MSVC won't pack otherwise - uint32_t mIsAnimValItem:1; // uint32_t because MSVC won't pack otherwise + uint32_t mIsReadonly:1; // These flags are uint32_t because MSVC won't + uint32_t mIsAnimValItem:1; // pack otherwise. + uint32_t mIsTranslatePoint:1; /** * Get a reference to the internal SVGPoint list item that this DOM wrapper