2421: refactor CssLayoutEngine