зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1074634 - Don't overwrite eRestyleResult_ContinueAndForceDescendants with eRestyleResult_Continue. r=heycam
This commit is contained in:
Родитель
6e02b27ae9
Коммит
a1236de6d5
|
@ -2746,9 +2746,7 @@ ElementRestyler::RestyleSelf(nsIFrame* aSelf,
|
|||
|
||||
RestyleResult result;
|
||||
|
||||
if (aRestyleHint & eRestyle_ForceDescendants) {
|
||||
result = eRestyleResult_ContinueAndForceDescendants;
|
||||
} else if (aRestyleHint) {
|
||||
if (aRestyleHint) {
|
||||
result = eRestyleResult_Continue;
|
||||
} else {
|
||||
result = ComputeRestyleResultFromFrame(aSelf);
|
||||
|
@ -3158,6 +3156,10 @@ ElementRestyler::RestyleSelf(nsIFrame* aSelf,
|
|||
}
|
||||
}
|
||||
|
||||
if (aRestyleHint & eRestyle_ForceDescendants) {
|
||||
result = eRestyleResult_ContinueAndForceDescendants;
|
||||
}
|
||||
|
||||
LOG_RESTYLE("returning %s", RestyleResultToString(result).get());
|
||||
|
||||
return result;
|
||||
|
|
Загрузка…
Ссылка в новой задаче