mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
parent
fda213de85
commit
c37b4d0c63
8 changed files with 115 additions and 4 deletions
|
|
@ -717,7 +717,9 @@ nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush)
|
|||
// We want to check that going through this path because of
|
||||
// HasPseudoElementData is rare, because it slows us down a good
|
||||
// bit. So check that we're really inside something associated
|
||||
// with a pseudo-element that contains elements.
|
||||
// with a pseudo-element that contains elements. (We also allow
|
||||
// the element to be NAC, just in case some chrome JS calls
|
||||
// getComputedStyle on a NAC-implemented pseudo.)
|
||||
nsStyleContext* topWithPseudoElementData = mStyleContext;
|
||||
while (topWithPseudoElementData->GetParent()->HasPseudoElementData()) {
|
||||
topWithPseudoElementData = topWithPseudoElementData->GetParent();
|
||||
|
|
@ -728,7 +730,8 @@ nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush)
|
|||
NS_LITERAL_STRING("we should be in a pseudo-element that is expected to contain elements ("));
|
||||
assertMsg.Append(nsDependentString(pseudoAtom->GetUTF16String()));
|
||||
assertMsg.Append(')');
|
||||
NS_ASSERTION(nsCSSPseudoElements::PseudoElementContainsElements(pseudo),
|
||||
NS_ASSERTION(nsCSSPseudoElements::PseudoElementContainsElements(pseudo) ||
|
||||
mElement->IsNativeAnonymous(),
|
||||
NS_LossyConvertUTF16toASCII(assertMsg).get());
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue