Bug 257641

Summary: Remove unnecessary check in `TreeResolver::resolvePseudoElement()`
Product: WebKit Reporter: Vitaly Dyackhov <vitaly>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Vitaly Dyackhov
Reported 2023-06-02 01:11:15 PDT
``` // FIXME: This test shouldn't be needed. bool alwaysNeedsPseudoElement = resolvedStyle->style->hasAnimationsOrTransitions() || element.hasKeyframeEffects(pseudoId) || pseudoId == PseudoId::FirstLine || pseudoId == PseudoId::FirstLetter || pseudoId == PseudoId::Scrollbar; if (!alwaysNeedsPseudoElement && !pseudoElementRendererIsNeeded(resolvedStyle->style.get())) return { }; ```
Attachments
Vitaly Dyackhov
Comment 1 2023-06-02 01:14:39 PDT
Radar WebKit Bug Importer
Comment 2 2023-06-09 01:12:15 PDT
EWS
Comment 3 2023-06-20 07:12:06 PDT
Committed 265318@main (ad52c1163560): <https://commits.webkit.org/265318@main> Reviewed commits have been landed. Closing PR #14620 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.