Make nsStyleCoord's member variables private, as they should have been. (Bug 730240) r=bzbarsky

This commit is contained in:
L. David Baron 2012-02-24 21:23:14 -08:00
Родитель 877d6d60bd
Коммит ee2d0d44ea
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -1493,11 +1493,11 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
if (aGradient->mToCorner) {
AppendCSSGradientToBoxPosition(aGradient, aString, needSep);
} else {
if (aGradient->mBgPosX.mUnit != eStyleUnit_None) {
if (aGradient->mBgPosX.GetUnit() != eStyleUnit_None) {
AppendCSSGradientLength(aGradient->mBgPosX, tmpVal, aString);
needSep = true;
}
if (aGradient->mBgPosY.mUnit != eStyleUnit_None) {
if (aGradient->mBgPosY.GetUnit() != eStyleUnit_None) {
if (needSep) {
aString.AppendLiteral(" ");
}
@ -1505,14 +1505,14 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
needSep = true;
}
}
if (aGradient->mAngle.mUnit != eStyleUnit_None) {
if (aGradient->mAngle.GetUnit() != eStyleUnit_None) {
if (needSep) {
aString.AppendLiteral(" ");
}
tmpVal->SetNumber(aGradient->mAngle.GetAngleValue());
tmpVal->GetCssText(tokenString);
aString.Append(tokenString);
switch (aGradient->mAngle.mUnit) {
switch (aGradient->mAngle.GetUnit()) {
case eStyleUnit_Degree: aString.AppendLiteral("deg"); break;
case eStyleUnit_Grad: aString.AppendLiteral("grad"); break;
case eStyleUnit_Radian: aString.AppendLiteral("rad"); break;
@ -1550,7 +1550,7 @@ nsComputedDOMStyle::GetCSSGradientString(const nsStyleGradient* aGradient,
tmpVal->GetCssText(tokenString);
aString.Append(tokenString);
if (aGradient->mStops[i].mLocation.mUnit != eStyleUnit_None) {
if (aGradient->mStops[i].mLocation.GetUnit() != eStyleUnit_None) {
aString.AppendLiteral(" ");
AppendCSSGradientLength(aGradient->mStops[i].mLocation, tmpVal, aString);
}

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

@ -179,7 +179,7 @@ public:
void SetNoneValue();
void SetCalcValue(Calc* aValue);
public: // FIXME: private!
private:
nsStyleUnit mUnit;
nsStyleUnion mValue;
};