From e8e9528e07b2a14991afd24c51a3ca8de239684d Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Fri, 14 Apr 2006 17:32:31 +0000 Subject: [PATCH] Bug 332162 - vc6 bustage fixes. --- content/svg/content/src/nsSVGElement.h | 4 ++++ content/svg/content/src/nsSVGLength2.h | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/content/svg/content/src/nsSVGElement.h b/content/svg/content/src/nsSVGElement.h index eeb424702d7d..c89f6f5d0179 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 c72e2cceac20..8b0a4741c271 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,