Many years ago I modified an iOS browser to show the CSS bounding boxes (all at once). It used the following code:
else if (showboxesButtonIndex == buttonInd