зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1448716 - Remove PropertyValuePair::mValue. r=hiro
MozReview-Commit-ID: GLGJuXgontY --HG-- extra : rebase_source : c4f5ddd641a275a4fbef87cabb8b4d50ac385860
This commit is contained in:
Родитель
e3cdf865e5
Коммит
30292048c2
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче