mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Bug 1355351 - Make pseudo-elements return the correct style via getComputedStyle
* Add a node property to access the ::before and ::after pseudo-elements * Look for the frame for ::before and ::after pseudos * Clean up pseudo-element props * Simplify nsLayoutUtils callers, and make child iterators notice display: contents pseudos Tag #1375
This commit is contained in:
parent
6b48075b57
commit
d3ffda520f
16 changed files with 188 additions and 241 deletions
|
|
@ -3626,14 +3626,14 @@ ElementRestyler::MustReframeForPseudo(CSSPseudoElementType aPseudoType,
|
|||
// Check for a ::before pseudo style and the absence of a ::before content,
|
||||
// but only if aFrame is null or is the first continuation/ib-split.
|
||||
if ((aFrame && !nsLayoutUtils::IsFirstContinuationOrIBSplitSibling(aFrame)) ||
|
||||
nsLayoutUtils::GetBeforeFrameForContent(aGenConParentFrame, aContent)) {
|
||||
nsLayoutUtils::GetBeforeFrame(aContent)) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// Similarly for ::after, but check for being the last continuation/
|
||||
// ib-split.
|
||||
if ((aFrame && nsLayoutUtils::GetNextContinuationOrIBSplitSibling(aFrame)) ||
|
||||
nsLayoutUtils::GetAfterFrameForContent(aGenConParentFrame, aContent)) {
|
||||
nsLayoutUtils::GetAfterFrame(aContent)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue