зеркало из https://github.com/mozilla/gecko-dev.git
The 'lighter' CSS value was not output in STYLE attributes because of a bug in |nsCSSProps::SearchKeywordTableInt|
This routine was stopping on negative values but there are some negative values defined in nsStyleConsts.h b=137061, r=caillon, sr=kin
This commit is contained in:
Родитель
b08e0aa5e7
Коммит
dbd393ad57
|
@ -843,7 +843,7 @@ nsCSSProps::SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
|
|||
{
|
||||
PRInt32 i = 1;
|
||||
for (;;) {
|
||||
if (aTable[i] < 0) {
|
||||
if (aTable[i] == -1 && aTable[i-1] == -1) {
|
||||
break;
|
||||
}
|
||||
if (aValue == aTable[i]) {
|
||||
|
|
|
@ -843,7 +843,7 @@ nsCSSProps::SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
|
|||
{
|
||||
PRInt32 i = 1;
|
||||
for (;;) {
|
||||
if (aTable[i] < 0) {
|
||||
if (aTable[i] == -1 && aTable[i-1] == -1) {
|
||||
break;
|
||||
}
|
||||
if (aValue == aTable[i]) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче