This function can be optimized.
<rdar://problem/102370543>
Created attachment 463533 [details] Patch
Comment on attachment 463533 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=463533&action=review > Source/WebCore/accessibility/mac/AccessibilityObjectMac.mm:132 > + if (!first || first != axObject.lastChild() || first->roleValue() != AccessibilityRole::StaticText) is checking roleValue() faster than getting lastChild?
Created attachment 463537 [details] Patch
(In reply to chris fleizach from comment #3) > Comment on attachment 463533 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=463533&action=review > > > Source/WebCore/accessibility/mac/AccessibilityObjectMac.mm:132 > > + if (!first || first != axObject.lastChild() || first->roleValue() != AccessibilityRole::StaticText) > > is checking roleValue() faster than getting lastChild? Yes, fixed.
Committed 256730@main (8f48b85eab58): <https://commits.webkit.org/256730@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 463537 [details].