Bug 159205 - AX: Remove dead code for RenderText and RenderMathMLOperator in AccessibilityRenderObject::textUnderElement
Summary: AX: Remove dead code for RenderText and RenderMathMLOperator in Accessibility...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Frédéric Wang (:fredw)
Keywords: InRadar
Depends on: 139582 155018
  Show dependency treegraph
Reported: 2016-06-28 02:42 PDT by Frédéric Wang (:fredw)
Modified: 2016-06-28 07:17 PDT (History)
10 users (show)

See Also:

Patch (2.52 KB, patch)
2016-06-28 02:48 PDT, Frédéric Wang (:fredw)
jdiggs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 2 Frédéric Wang (:fredw) 2016-06-28 02:48:40 PDT
Created attachment 282232 [details]
Comment 3 Frédéric Wang (:fredw) 2016-06-28 07:17:01 PDT
Committed r202562: <http://trac.webkit.org/changeset/202562>