Bug 946408 - Small refactoring for readability. r=tn
Bug 946408 - Always layerize a scrollable element if it's focused. r=kats,tn