<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Loading in-body stylesheets should not block rendering of elements before them"
   href="https://bugs.webkit.org/show_bug.cgi?id=169345#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Loading in-body stylesheets should not block rendering of elements before them"
   href="https://bugs.webkit.org/show_bug.cgi?id=169345">bug 169345</a>
              from <span class="vcard"><a class="email" href="mailto:simon.fraser&#64;apple.com" title="Simon Fraser (smfr) &lt;simon.fraser&#64;apple.com&gt;"> <span class="fn">Simon Fraser (smfr)</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=303812&amp;action=diff" name="attach_303812" title="wip">attachment 303812</a> <a href="attachment.cgi?id=303812&amp;action=edit" title="wip">[details]</a></span>
wip

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=303812&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=303812&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/dom/Document.cpp:1251
&gt; +    fprintf(stderr, &quot;Document::setVisualUpdatesAllowed %d\n&quot;, visualUpdatesAllowed);</span >

You should add LOG(Style, ...) for logging like this that you find useful.

<span class="quote">&gt; Source/WebCore/dom/Document.cpp:1824
&gt; +        if (m_renderView-&gt;needsLayout())
&gt; +            frameView.scheduleRelayout();</span >

How does needsLayout() become true without a layout already having been scheduled? This seems odd.

<span class="quote">&gt; Source/WebCore/rendering/RenderBlock.cpp:1536
&gt; +        fprintf(stderr, &quot;RenderBlock::paint isNotFinal\n&quot;);</span >

LOG(Style, ...)?

<span class="quote">&gt; Source/WebCore/rendering/RenderLayer.cpp:3945
&gt; +        fprintf(stderr, &quot;shouldSuppressPaintingLayer\n&quot;);</span >

Log(Style, ...)?

<span class="quote">&gt; Source/WebCore/style/StyleTreeResolver.cpp:171
&gt; +        fprintf(stderr, &quot;m_didSeePendingStylesheet not styling\n&quot;);</span >

LOG

<span class="quote">&gt; Source/WebCore/style/StyleTreeResolver.cpp:184
&gt; +        fprintf(stderr, &quot;m_didSeePendingStylesheet marking non-final\n&quot;);</span >

LOG</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>