зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1098270 - Null check curData in AddPendingRestyle to avoid crashing on style sheet updates in ShadowRoots outside of the composed document. r=dbaron
This commit is contained in:
Родитель
7ebde708bb
Коммит
fdaf162ad8
|
@ -482,7 +482,7 @@ RestyleTracker::AddPendingRestyle(Element* aElement,
|
|||
// If cur has an eRestyle_ForceDescendants restyle hint, then we
|
||||
// know that we will get to all descendants. Don't bother
|
||||
// recording the descendant to restyle in that case.
|
||||
if (!(curData->mRestyleHint & eRestyle_ForceDescendants)) {
|
||||
if (curData && !(curData->mRestyleHint & eRestyle_ForceDescendants)) {
|
||||
curData->mDescendants.AppendElement(aElement);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче