Split update_clip_task into several methods
Split update_clip_task into several methods

This will make it easier to add more complicated logic here without
making this method too long. This shouldn't change any behavior, as
it's just moving code around.

servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender,servo/webrender