Rename prepareForDraw to enterDocument