<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ASSERTION FAILED: !m_gridIsDirty in WebCore::RenderGrid::gridRowCount"
   href="https://bugs.webkit.org/show_bug.cgi?id=163450#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ASSERTION FAILED: !m_gridIsDirty in WebCore::RenderGrid::gridRowCount"
   href="https://bugs.webkit.org/show_bug.cgi?id=163450">bug 163450</a>
              from <span class="vcard"><a class="email" href="mailto:rego&#64;igalia.com" title="Manuel Rego Casasnovas &lt;rego&#64;igalia.com&gt;"> <span class="fn">Manuel Rego Casasnovas</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=291804" name="attach_291804" title="Test case to reproduce the issue">attachment 291804</a> <a href="attachment.cgi?id=291804&amp;action=edit" title="Test case to reproduce the issue">[details]</a></span>
Test case to reproduce the issue

I can verify the crash too. I'm attached a little bit reduced test case.

The issue is that for some reason when we have the &quot;autofocus&quot; property
a simplifiedLayout() is performed.
So in RenderGrid::layoutBlock() we early return and the grid is not populated,
so the m_gridIsDirty flag is not cleared.

As the grid was not populated we cannot ask for the size of the grid
when trying to layout the positioned object.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>