Bug 895222, improve skippability optimization for nodes, r=mccr8

--HG--
extra : rebase_source : ce3ebc2020a26d22f7cf2636d63657a8fe6ebb2d