Slight refactoring of the layout task, to prevent creating a vector consisting of every DOM element on every reflow.
auto merge of #3743 : cgaebel/servo/refactor-get-background-color, r=pcwalton

r? @pcwalton