Refactor the recursion in prepare_prim to be slightly cleaner.
Refactor the recursion in prepare_prim to be slightly cleaner.

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