HomePhabricator

ce.TextState#getChunks: Use instanceof to check for LeafNodes

Authored by Esanders on Jun 22 2017, 8:07 PM.

Description

ce.TextState#getChunks: Use instanceof to check for LeafNodes

The element should contain a ve-ce-leafNode class, but this
is less reliable than checking the view node itself.

Usually we'd use hasChildren() instead of an instanceof check
but the view could be an annotation.

Bug: T167009
Change-Id: I82e53688c3858cbec96dd1b6a83de6b8042981a1

Details