Bug 976412. Part 1: Fix logic for determining when a display item can be placed in a layer. r=mattwoodrow

--HG--
extra : rebase_source : c390532cb3f6252fa388dfbe8176f4f911dfbdb3