зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1496486 - Remove GridTemplateAreas stuff from nsCSSValue. r=heycam
It's unused. Differential Revision: https://phabricator.services.mozilla.com/D7754
This commit is contained in:
Родитель
d6c743191f
Коммит
55bef63412
|
@ -88,13 +88,6 @@ nsCSSValue::nsCSSValue(mozilla::css::URLValue* aValue)
|
|||
mValue.mURL->AddRef();
|
||||
}
|
||||
|
||||
nsCSSValue::nsCSSValue(mozilla::css::GridTemplateAreasValue* aValue)
|
||||
: mUnit(eCSSUnit_GridTemplateAreas)
|
||||
{
|
||||
mValue.mGridTemplateAreas = aValue;
|
||||
mValue.mGridTemplateAreas->AddRef();
|
||||
}
|
||||
|
||||
nsCSSValue::nsCSSValue(SharedFontList* aValue)
|
||||
: mUnit(eCSSUnit_FontFamilyList)
|
||||
{
|
||||
|
@ -149,10 +142,6 @@ nsCSSValue::nsCSSValue(const nsCSSValue& aCopy)
|
|||
else if (eCSSUnit_PairListDep == mUnit) {
|
||||
mValue.mPairListDependent = aCopy.mValue.mPairListDependent;
|
||||
}
|
||||
else if (eCSSUnit_GridTemplateAreas == mUnit) {
|
||||
mValue.mGridTemplateAreas = aCopy.mValue.mGridTemplateAreas;
|
||||
mValue.mGridTemplateAreas->AddRef();
|
||||
}
|
||||
else if (eCSSUnit_FontFamilyList == mUnit) {
|
||||
mValue.mFontFamilyList = aCopy.mValue.mFontFamilyList;
|
||||
mValue.mFontFamilyList->AddRef();
|
||||
|
@ -226,9 +215,6 @@ bool nsCSSValue::operator==(const nsCSSValue& aOther) const
|
|||
return nsCSSValuePairList::Equal(mValue.mPairList,
|
||||
aOther.mValue.mPairList);
|
||||
}
|
||||
else if (eCSSUnit_GridTemplateAreas == mUnit) {
|
||||
return *mValue.mGridTemplateAreas == *aOther.mValue.mGridTemplateAreas;
|
||||
}
|
||||
else if (eCSSUnit_FontFamilyList == mUnit) {
|
||||
return mValue.mFontFamilyList->mNames ==
|
||||
aOther.mValue.mFontFamilyList->mNames;
|
||||
|
@ -324,8 +310,6 @@ void nsCSSValue::DoReset()
|
|||
DO_RELEASE(mSharedList);
|
||||
} else if (eCSSUnit_PairList == mUnit) {
|
||||
DO_RELEASE(mPairList);
|
||||
} else if (eCSSUnit_GridTemplateAreas == mUnit) {
|
||||
DO_RELEASE(mGridTemplateAreas);
|
||||
} else if (eCSSUnit_FontFamilyList == mUnit) {
|
||||
DO_RELEASE(mFontFamilyList);
|
||||
} else if (eCSSUnit_AtomIdent == mUnit) {
|
||||
|
@ -674,11 +658,6 @@ nsCSSValue::SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const
|
|||
case eCSSUnit_PairListDep:
|
||||
break;
|
||||
|
||||
// GridTemplateAreas
|
||||
case eCSSUnit_GridTemplateAreas:
|
||||
n += mValue.mGridTemplateAreas->SizeOfIncludingThis(aMallocSizeOf);
|
||||
break;
|
||||
|
||||
case eCSSUnit_FontFamilyList:
|
||||
// The SharedFontList is a refcounted object, but is unique per
|
||||
// declaration. We don't measure the references from computed
|
||||
|
|
|
@ -369,8 +369,6 @@ enum nsCSSUnit {
|
|||
eCSSUnit_Calc_Divided = 35, // (nsCSSValue::Array*) / within calc
|
||||
|
||||
eCSSUnit_URL = 40, // (nsCSSValue::URL*) value
|
||||
eCSSUnit_GridTemplateAreas = 44, // (GridTemplateAreasValue*)
|
||||
// for grid-template-areas
|
||||
|
||||
eCSSUnit_Pair = 50, // (nsCSSValuePair*) pair of values
|
||||
eCSSUnit_List = 53, // (nsCSSValueList*) list of values
|
||||
|
@ -463,7 +461,6 @@ public:
|
|||
nsCSSValue(Array* aArray, nsCSSUnit aUnit);
|
||||
explicit nsCSSValue(mozilla::css::URLValue* aValue);
|
||||
explicit nsCSSValue(mozilla::css::ImageValue* aValue);
|
||||
explicit nsCSSValue(mozilla::css::GridTemplateAreasValue* aValue);
|
||||
explicit nsCSSValue(mozilla::SharedFontList* aValue);
|
||||
nsCSSValue(const nsCSSValue& aCopy);
|
||||
nsCSSValue(nsCSSValue&& aOther)
|
||||
|
@ -636,13 +633,6 @@ public:
|
|||
return mValue.mURL;
|
||||
}
|
||||
|
||||
mozilla::css::GridTemplateAreasValue* GetGridTemplateAreas() const
|
||||
{
|
||||
MOZ_ASSERT(mUnit == eCSSUnit_GridTemplateAreas,
|
||||
"not a grid-template-areas value");
|
||||
return mValue.mGridTemplateAreas;
|
||||
}
|
||||
|
||||
// Not making this inline because that would force us to include
|
||||
// imgIRequest.h, which leads to REQUIRES hell, since this header is included
|
||||
// all over.
|
||||
|
@ -686,7 +676,6 @@ public:
|
|||
void SetIntegerCoordValue(nscoord aCoord);
|
||||
void SetArrayValue(nsCSSValue::Array* aArray, nsCSSUnit aUnit);
|
||||
void SetURLValue(mozilla::css::URLValue* aURI);
|
||||
void SetGridTemplateAreas(mozilla::css::GridTemplateAreasValue* aValue);
|
||||
void SetFontFamilyListValue(already_AddRefed<mozilla::SharedFontList> aFontListValue);
|
||||
void SetPairValue(const nsCSSValuePair* aPair);
|
||||
void SetPairValue(const nsCSSValue& xValue, const nsCSSValue& yValue);
|
||||
|
@ -730,7 +719,6 @@ protected:
|
|||
nsAtom* MOZ_OWNING_REF mAtom;
|
||||
Array* MOZ_OWNING_REF mArray;
|
||||
mozilla::css::URLValue* MOZ_OWNING_REF mURL;
|
||||
mozilla::css::GridTemplateAreasValue* MOZ_OWNING_REF mGridTemplateAreas;
|
||||
nsCSSValuePair_heap* MOZ_OWNING_REF mPair;
|
||||
nsCSSValueList_heap* MOZ_OWNING_REF mList;
|
||||
nsCSSValueList* mListDependent;
|
||||
|
|
Загрузка…
Ссылка в новой задаче