diff --git a/content/svg/content/src/nsSVGElement.h b/content/svg/content/src/nsSVGElement.h index eeb424702d7..c89f6f5d017 100644 --- a/content/svg/content/src/nsSVGElement.h +++ b/content/svg/content/src/nsSVGElement.h @@ -143,6 +143,9 @@ protected: static PRBool IsGraphicElementEventName(nsIAtom* aName); static nsIAtom* GetEventNameForAttr(nsIAtom* aAttr); + // The following two structures should be protected, but VC6 + // doesn't allow children of nsSVGElement to access them. +public: struct LengthInfo { nsIAtom** mName; float mDefaultValue; @@ -162,6 +165,7 @@ protected: {} }; +protected: virtual LengthAttributesInfo GetLengthInfo(); nsCOMPtr mContentStyleRule; diff --git a/content/svg/content/src/nsSVGLength2.h b/content/svg/content/src/nsSVGLength2.h index c72e2cceac2..8b0a4741c27 100644 --- a/content/svg/content/src/nsSVGLength2.h +++ b/content/svg/content/src/nsSVGLength2.h @@ -46,6 +46,13 @@ class nsSVGLength2 { + // Needed to allow member classes access to our data. + // gcc/vc8 allow access without this. + struct DOMBaseVal; + struct DOMAnimVal; + friend struct DOMBaseVal; + friend struct DOMAnimVal; + public: void Init(PRUint8 aCtxType = nsSVGUtils::XY, PRUint8 aAttrEnum = 0xff,