Bug 159205

Summary: AX: Remove dead code for RenderText and RenderMathMLOperator in AccessibilityRenderObject::textUnderElement
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: AccessibilityAssignee: Frédéric Wang (:fredw) <fred.wang>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, commit-queue, dmazzoni, jcraig, jdiggs, mario, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on: 139582, 155018    
Bug Blocks:    
Attachments:
Description Flags
Patch jdiggs: review+

Description Frédéric Wang (:fredw) 2016-06-28 02:42:26 PDT
RenderMathMLOperator used to destroy its descendants and to replace them with an anonymous text node wrapped inside anonymous blocks. After r202420, it just behaves as any other token elements. Hence the code in AccessibilityRenderObject::textUnderElement to handle this specific render tree structure is never executed and can be safely removed.
Comment 1 Radar WebKit Bug Importer 2016-06-28 02:42:47 PDT
<rdar://problem/27051681>
Comment 2 Frédéric Wang (:fredw) 2016-06-28 02:48:40 PDT
Created attachment 282232 [details]
Patch
Comment 3 Frédéric Wang (:fredw) 2016-06-28 07:17:01 PDT
Committed r202562: <http://trac.webkit.org/changeset/202562>