Refactor newFromAnnotation & addAnnotationsToData

Authored by Esanders on Apr 21 2017, 12:58 PM.

Description

Refactor newFromAnnotation & addAnnotationsToData

Move shared logic for checking if an element can take a
particular annotation to ElementLinearData, and make sure
it is checked in addAnootationsToData.

Bug: T162278
Change-Id: I7badeb7b1fdc54fc3fdd01d5228063216f672c43

Details