DescriptionNull check collection handling dirty scopes.
When a shadow subtree containing a style element with a loading @import is
removed from the DOM, StyleEngine::removePendingSheet() will be called,
which in turn calls markTreeScopeDirty(). The collection has already been
removed from m_styleSheetCollectionMap in StyleEngine has already been for
the shadow root, which will lead to the collection being null when the
dirty tree scopes are being handled in
StyleEngine::updateActiveStyleSheetsInShadow().
Check that the node is in the Document before calling markTreeScopeDirty().
R=tasak@chromium.org
BUG=482087, 468267, 463031
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194733
Patch Set 1 #Patch Set 2 : Alternative fix checking for collection in markTreeScopeDirty #
Total comments: 4
Patch Set 3 : Addressed review issues #
Messages
Total messages: 12 (2 generated)
|