<?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>10259</bug_id>
          
          <creation_ts>2006-08-04 12:48:03 -0700</creation_ts>
          <short_desc>REGRESSION: Leaks reported by buildbot</short_desc>
          <delta_ts>2007-02-01 15:44:21 -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>WebCore Misc.</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Geoffrey Garen">ggaren</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51809</commentid>
    <comment_count>0</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-08-04 12:48:03 -0700</bug_when>
    <thetext>149 Node
11 RenderObject
1 Frame
39 KJS::Node

Looks like this began with r15791 (???).

Index: WebCore/ChangeLog
===================================================================
--- WebCore/ChangeLog   (revision 15790)
+++ WebCore/ChangeLog   (revision 15792)
@@ -1,3 +1,16 @@
+2006-08-03  David Hyatt  &lt;hyatt@apple.com&gt;
+
+        Fix for bug 10229, don&apos;t bother trying to clear when no floats are
+        present.  I suspect there&apos;s still a bug in the math that follows, but
+        this fix is safer in that it just does the obvious thing (and doesn&apos;t
+        compute any clearance if no floats are even around).
+
+        Reviewed by maciej
+
+        * ChangeLog:
+        * rendering/RenderBlock.cpp:
+        (WebCore::RenderBlock::getClearDelta):
+
 2006-08-03  Justin Garcia  &lt;justin.garcia@apple.com&gt;
 
         Reviewed by harrison</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51810</commentid>
    <comment_count>1</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-08-04 12:51:09 -0700</bug_when>
    <thetext>Dave says that this change just replaced a function call with its implementation, so it looks like the buildbot is blaming this change for an independent leak.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51851</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-05 09:09:08 -0700</bug_when>
    <thetext>Here&apos;s what I see:

    1) many leaks of the InlineBox created by RenderListMarker::createInlineBox -- this leak *does* seem like it was caused by a recent change

    2) a failure in test dom/html/level2/html/HTMLBaseElement02.html

    3) an entire frame leak as Geoff&apos;s reporting here -- not sure what caused this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51891</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-05 16:11:59 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt;     1) many leaks of the InlineBox created by RenderListMarker::createInlineBox
&gt; -- this leak *does* seem like it was caused by a recent change

I&apos;m trying and having trouble reproducing this locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51896</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-05 16:29:52 -0700</bug_when>
    <thetext>Now I can reproduce it fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51897</commentid>
    <comment_count>5</comment_count>
      <attachid>9896</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-05 17:09:46 -0700</bug_when>
    <thetext>Created attachment 9896
patch that fixes some of the biggest leaks I see</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51944</commentid>
    <comment_count>6</comment_count>
      <attachid>9896</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2006-08-06 11:07:56 -0700</bug_when>
    <thetext>Comment on attachment 9896
patch that fixes some of the biggest leaks I see

Patch looks good to me, but I&apos;ll wait for Hyatt.

What do you think about changing this:

+    if (!handle) {
+        delete this;
+        return false;
+    }
 
      return true;

to this:

if (handle)
    return true;

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51946</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-06 11:12:02 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; What do you think about changing this:
&gt; 
&gt; +    if (!handle) {
&gt; +        delete this;
&gt; +        return false;
&gt; +    }
&gt; 
&gt;       return true;
&gt; 
&gt; to this:
&gt; 
&gt; if (handle)
&gt;     return true;
&gt; 
&gt; ?

Seems OK. I handled the error case first because I think of it as the exceptional case, but I can see sharing the code instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52536</commentid>
    <comment_count>8</comment_count>
      <attachid>9896</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-08-14 11:41:11 -0700</bug_when>
    <thetext>Comment on attachment 9896
patch that fixes some of the biggest leaks I see

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52540</commentid>
    <comment_count>9</comment_count>
      <attachid>9896</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-08-14 12:08:20 -0700</bug_when>
    <thetext>Comment on attachment 9896
patch that fixes some of the biggest leaks I see

Committed revision 15857.

Clearing review flag so we can use this bug to track fixing the rest of the leaks (including the ones that Geoff was originally talking about, I think).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33340</commentid>
    <comment_count>10</comment_count>
    <who name="Stephanie Lewis">slewis</who>
    <bug_when>2007-01-22 16:39:40 -0800</bug_when>
    <thetext>In Radar
&lt;rdar://problem/4946778&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29134</commentid>
    <comment_count>11</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-02-01 15:44:21 -0800</bug_when>
    <thetext>The leaks reported here are long-gone.  A new bug should be opened for any new leaks that are noticed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9896</attachid>
            <date>2006-08-05 17:09:46 -0700</date>
            <delta_ts>2006-08-14 12:08:20 -0700</delta_ts>
            <desc>patch that fixes some of the biggest leaks I see</desc>
            <filename>LeakPatch.txt</filename>
            <type>text/plain</type>
            <size>2125</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvcGxhdGZvcm0vbWFjL1Jlc291cmNlTG9hZGVyTWFjLm1tCj09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT0KLS0tIFdlYkNvcmUvcGxhdGZvcm0vbWFjL1Jlc291cmNlTG9hZGVyTWFjLm1tCShyZXZpc2lv
biAxNTgwOSkKKysrIFdlYkNvcmUvcGxhdGZvcm0vbWFjL1Jlc291cmNlTG9hZGVyTWFjLm1tCSh3
b3JraW5nIGNvcHkpCkBAIC01OCwxOCArNTgsMTkgQEAgUmVzb3VyY2VMb2FkZXI6On5SZXNvdXJj
ZUxvYWRlcigpCiAKIGJvb2wgUmVzb3VyY2VMb2FkZXI6OnN0YXJ0KERvY0xvYWRlciogZG9jTG9h
ZGVyKQogewotICAgIEZyYW1lTWFjICpmcmFtZSA9IE1hYyhkb2NMb2FkZXItPmZyYW1lKCkpOwot
ICAgIAorICAgIEZyYW1lTWFjKiBmcmFtZSA9IE1hYyhkb2NMb2FkZXItPmZyYW1lKCkpOworCiAg
ICAgaWYgKCFmcmFtZSkgewogICAgICAgICBkZWxldGUgdGhpczsKICAgICAgICAgcmV0dXJuIGZh
bHNlOwogICAgIH0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bWJsZVJlc3BvbnNlSGVhZGVycygpIGNvbnN0CkluZGV4
OiBXZWJDb3JlL3JlbmRlcmluZy9SZW5kZXJDb250YWluZXIuY3BwCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdl
YkNvcmUvcmVuZGVyaW5nL1JlbmRlckNvbnRhaW5lci5jcHAJKHJldmlzaW9uIDE1ODA5KQorKysg
V2ViQ29yZS9yZW5kZXJpbmcvUmVuZGVyQ29udGFpbmVyLmNwcAkod29ya2luZyBjb3B5KQpAQCAt
MTY5LDEwICsxNjksMTIgQEAgUmVuZGVyT2JqZWN0KiBSZW5kZXJDb250YWluZXI6OnJlbW92ZUNo
aQogICAgIGlmICghZG9jdW1lbnRCZWluZ0Rlc3Ryb3llZCgpKSB7CiAgICAgICAgIG9sZENoaWxk
LT5zZXROZWVkc0xheW91dEFuZE1pbk1heFJlY2FsYygpOwogICAgICAgICBvbGRDaGlsZC0+cmVw
YWludCgpOworICAgIH0KICAgICAgICAgCi0gICAgICAgIC8vIElmIHdlIGhhdmUgYSBsaW5lIGJv
eCB3cmFwcGVyLCBkZWxldGUgaXQuCi0gICAgICAgIG9sZENoaWxkLT5kZWxldGVMaW5lQm94V3Jh
cHBlcigpOworICAgIC8vIElmIHdlIGhhdmUgYSBsaW5lIGJveCB3cmFwcGVyLCBkZWxldGUgaXQu
CisgICAgb2xkQ2hpbGQtPmRlbGV0ZUxpbmVCb3hXcmFwcGVyKCk7CiAKKyAgICBpZiAoIWRvY3Vt
ZW50QmVpbmdEZXN0cm95ZWQoKSkgewogICAgICAgICAvLyBLZWVwIG91ciBsYXllciBoaWVyYXJj
aHkgdXBkYXRlZC4KICAgICAgICAgb2xkQ2hpbGQtPnJlbW92ZUxheWVycyhlbmNsb3NpbmdMYXll
cigpKTsKICAgICAgICAgCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>