Bug 1448716 - Remove PropertyValuePair::mValue. r=hiro

MozReview-Commit-ID: GLGJuXgontY

--HG--
extra : rebase_source : c4f5ddd641a275a4fbef87cabb8b4d50ac385860
This commit is contained in:
Xidorn Quan 2018-03-26 16:15:56 +11:00
Родитель e3cdf865e5
Коммит 30292048c2
2 изменённых файлов: 1 добавлений и 7 удалений

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

@ -27,8 +27,6 @@ struct PropertyValuePair
{
explicit PropertyValuePair(nsCSSPropertyID aProperty)
: mProperty(aProperty) { }
PropertyValuePair(nsCSSPropertyID aProperty, nsCSSValue&& aValue)
: mProperty(aProperty), mValue(Move(aValue)) { }
PropertyValuePair(nsCSSPropertyID aProperty,
RefPtr<RawServoDeclarationBlock>&& aValue)
: mProperty(aProperty), mServoDeclarationBlock(Move(aValue))
@ -37,10 +35,6 @@ struct PropertyValuePair
}
nsCSSPropertyID mProperty;
// The specified value for the property. For shorthand property values,
// we store the specified property value as a token stream (string).
// If this is uninitialized, we use the underlying value.
nsCSSValue mValue;
// The specified value when using the Servo backend.
RefPtr<RawServoDeclarationBlock> mServoDeclarationBlock;

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

@ -39,7 +39,7 @@ namespace mozilla {
bool
PropertyValuePair::operator==(const PropertyValuePair& aOther) const
{
if (mProperty != aOther.mProperty || mValue != aOther.mValue) {
if (mProperty != aOther.mProperty) {
return false;
}
if (mServoDeclarationBlock == aOther.mServoDeclarationBlock) {