When table cell have inline children which change writing-mode, the cell overflows its contents.

When writing-mode is changed at block element, Blink thinks the logical
height as preferred logical width. This is done at
RenderBlock::computeBlockPreferredLogicalWidths(). However,
RenderBlock::computeInlinePreferredLogicalWidths() doesn't check
writing-mode, and just uses child's preferred logical width as preferred
logical width. If the height of a child is bigger than its prefferd
width, this make the width of table cell narrower than its child.

We should check writing-mode of inline block. If the writing-mode is
changed, we must use child's logical height as preferred logical width.

BUG=318575

Review URL: https://codereview.chromium.org/67643003

git-svn-id: svn://svn.chromium.org/blink/trunk@163239 bbb929c8-8fbe-4397-9dbb-9b2b20218538