mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Issue #2171 - Skip over shadow nodes that don't have an owning node.
Resolves #2171
This commit is contained in:
parent
7374ca6716
commit
f09d2bba0f
1 changed files with 7 additions and 0 deletions
|
|
@ -279,6 +279,13 @@ ShadowRoot::InsertSheet(StyleSheet* aSheet,
|
|||
}
|
||||
|
||||
nsINode* sheetOwningNode = SheetAt(i)->GetOwnerNode();
|
||||
|
||||
if (!sheetOwningNode) {
|
||||
// Keep moving; all sheets with a sheetOwner come after all
|
||||
// sheets without an owning Node
|
||||
continue;
|
||||
}
|
||||
|
||||
if (nsContentUtils::PositionIsBefore(aLinkingContent, sheetOwningNode)) {
|
||||
InsertSheetAt(i, *aSheet);
|
||||
mProtoBinding->InsertStyleSheetAt(i, aSheet);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue