Move the code for applyFrameStyle() directly into this function, since we won't need it anywhere else.