Simplify SVGTextContentElement::elementFromRenderer() by leveraging SVGElement::isTextContent() methods instead of explicitly checking for tag names. Corresponding Blink revision: https://src.chromium.org/viewvc/blink?revision=153348&view=revision
Created attachment 205874 [details] Patch
Comment on attachment 205874 [details] Patch Clearing flags on attachment: 205874 Committed r152284: <http://trac.webkit.org/changeset/152284>
All reviewed patches have been landed. Closing bug.
Comment on attachment 205874 [details] Patch I assume we had these lines for <tref>. But am not entirely sure. Even if it landed, can you elaborate in the history so that we don't miss anything?
(In reply to comment #4) > (From update of attachment 205874 [details]) > I assume we had these lines for <tref>. But am not entirely sure. Even if it landed, can you elaborate in the history so that we don't miss anything? For tref? Why does tref need special handling? SVGTRefElement inherits SVGTextContentElement so SVGTRefElement::isTextContent() will return true as expected. This function is supported to return a SVGTextContentElement from a Node so it seems logical to use isTextContent() / toSVGTextContentElement() instead of checking manually for all tags that correspond to SVGTextContentElement subclasses. AFAICT, there is no behavior change with this patch as the checks do the same in the end. Please let me know if I overlooked something.