Div having contentEditable and display:grid cannot be edited if it is empty.

This bug is quite similar to https://codereview.chromium.org/897633002/.
RenderGrid should be also treated as a candidate for visible position
as like RenderFlexibleBox. The only different situation between them is
that RenderGrid has a bug setting "0px" for logicalHeight when it is empty.
RenderGrid should also have a minimum height of a single line if it is editable
as well as RenderFlexibleBox does.
This is the same patch applied to webkit. http://webkit.org/b/141465

BUG=79180

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

git-svn-id: svn://svn.chromium.org/blink/trunk@190936 bbb929c8-8fbe-4397-9dbb-9b2b20218538
6 files changed