<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>33050</bug_id>
          
          <creation_ts>2009-12-30 04:44:26 -0800</creation_ts>
          <short_desc>[GTK] ASSERTs on fast/inline/inline-body-with-scrollbar-crash.html</short_desc>
          <delta_ts>2011-02-08 12:33:03 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gustavo Noronha (kov)">gustavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>mrobinson</cc>
    
    <cc>zecke</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>175876</commentid>
    <comment_count>0</comment_count>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2009-12-30 04:44:26 -0800</bug_when>
    <thetext>I have investigate this to find out that the problem lies on readjusting the size of the view, here (FrameView.cpp::layout around line 679):

    if (!subtree &amp;&amp; !toRenderView(root)-&gt;printing())
        adjustViewSize();

This ends up in a call to updateScrollbars, in GTK+, which ends up triggering a resize of the view (because the parent widget&apos;s scroll bars take up space), which requests a relayout. So the ASSERT ends up being hit:

    ASSERT(!root-&gt;needsLayout());

I have investigated a bunch of solutions, such as having our own implementation of ScrollView::setContentsSize, but I always end up in having to either reimplement almost all of the updateScrollbars logic, or triggering a relayout anyway. I feel like the call to updateScrollbars is correct, and that triggering the resize of the view is an expected outcome - so the assert would not be correct for GTK+ - but I am not sure enough, so I decided to open this bug report and request help/advice from layout/scrolling wizards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287918</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2010-09-30 16:30:06 -0700</bug_when>
    <thetext>This seems to be passing locally (perhaps because of the scrollbar changes). I&apos;ll unskip it and close, reopening if there are any problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>347600</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-02-08 12:33:03 -0800</bug_when>
    <thetext>Unskipped and this doesn&apos;t appear to be an issue any longer. Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>