Make fragment static inner classes of activity
Make character style spans inner classes of document