mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
802419946a
commit
020845735c
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user