[webkit-dev] Debugging mid-page relayout issues

Maciej Stachowiak mjs at apple.com
Tue Jun 21 14:47:18 PDT 2005


On Jun 21, 2005, at 12:41 PM, Mitz Pettel wrote:

> I have encountered a bug that occurs on a certain page only  
> sometimes and only when it's loaded via HTTP (i.e. not when opened  
> as a webarchive). It looks like the bug occurs only when  
> relayouting occurs when the HTML is not fully loaded (or perhaps  
> when images are loaded after the page HTML has been loaded). I'm  
> afraid I don't know much more than that about the exact conditions.
>
> Do you know of any techniques that will allow me to reproduce those  
> conditions without relying on that specific page and on the server  
> it's coming from?

If you insert the following in the middle of a document, it will  
force a layout at that exact point:

<script>
document.offsetTop;
</script>

This gets a property that requires a layout, and therefore always  
will cause a layout at that point in parsing a document.

Regards,
Maciej




More information about the webkit-dev mailing list