layout: Refactor `try_append_to_line` to eliminate duplicate code.
layout: Refactor `InlineFlow::assign_height` to pull out horizontal
position calculation into a separate function.
auto merge of #1365 : pcwalton/servo/minor-layout-refactoring, r=metajack

r? @metajack