зеркало из https://github.com/mozilla/gecko-dev.git
Bug 157913. Priority is "important", not "!important". r=glazman,
sr=dbaron
This commit is contained in:
Родитель
d9229412d1
Коммит
7437096b69
|
@ -179,7 +179,7 @@ nsDOMCSSDeclaration::GetPropertyPriority(const nsAString& aPropertyName,
|
|||
}
|
||||
|
||||
if ((NS_OK == result) && isImportant) {
|
||||
aReturn.Assign(NS_LITERAL_STRING("!important"));
|
||||
aReturn.Assign(NS_LITERAL_STRING("important"));
|
||||
}
|
||||
else {
|
||||
aReturn.SetLength(0);
|
||||
|
@ -201,7 +201,7 @@ nsDOMCSSDeclaration::SetProperty(const nsAString& aPropertyName,
|
|||
}
|
||||
|
||||
return ParseDeclaration(aPropertyName + NS_LITERAL_STRING(":") +
|
||||
aValue + aPriority,
|
||||
aValue + NS_LITERAL_STRING("!") + aPriority,
|
||||
PR_TRUE, PR_FALSE);
|
||||
}
|
||||
|
||||
|
|
|
@ -248,7 +248,7 @@ StyleRulesViewer.prototype =
|
|||
var propval = style.getPropertyValue(propname);
|
||||
|
||||
var priority = style.getPropertyPriority(propname);
|
||||
priority = priority == "!important" ? "!blah" : "!important";
|
||||
priority = priority == "important" ? "" : "important";
|
||||
|
||||
style.removeProperty(propname);
|
||||
style.setProperty(propname, propval, priority);
|
||||
|
@ -396,7 +396,7 @@ function(aRow, aColId, aProperties)
|
|||
{
|
||||
if (aColId == "olcPropPriority") {
|
||||
var prop = this.mDec.item(aRow);
|
||||
if (this.mDec.getPropertyPriority(prop) == "!important") {
|
||||
if (this.mDec.getPropertyPriority(prop) == "important") {
|
||||
aProperties.AppendElement(this.createAtom("important"));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -179,7 +179,7 @@ nsDOMCSSDeclaration::GetPropertyPriority(const nsAString& aPropertyName,
|
|||
}
|
||||
|
||||
if ((NS_OK == result) && isImportant) {
|
||||
aReturn.Assign(NS_LITERAL_STRING("!important"));
|
||||
aReturn.Assign(NS_LITERAL_STRING("important"));
|
||||
}
|
||||
else {
|
||||
aReturn.SetLength(0);
|
||||
|
@ -201,7 +201,7 @@ nsDOMCSSDeclaration::SetProperty(const nsAString& aPropertyName,
|
|||
}
|
||||
|
||||
return ParseDeclaration(aPropertyName + NS_LITERAL_STRING(":") +
|
||||
aValue + aPriority,
|
||||
aValue + NS_LITERAL_STRING("!") + aPriority,
|
||||
PR_TRUE, PR_FALSE);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче