<?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>78910</bug_id>
          
          <creation_ts>2012-02-17 10:06:24 -0800</creation_ts>
          <short_desc>ScrollbarThemeComposite::thumbPosition uses the result of a divide by zero</short_desc>
          <delta_ts>2012-02-22 12:57:35 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Levi Weintraub">leviw</reporter>
          <assigned_to name="Levi Weintraub">leviw</assigned_to>
          <cc>darin</cc>
    
    <cc>eae</cc>
    
    <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>jamesr</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>559279</commentid>
    <comment_count>0</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 10:06:24 -0800</bug_when>
    <thetext>While testing on the subpixellayout branch, I discovered several tests that assign a float NaN to an int that&apos;s used as a size. We get NaN in ScrollbarThemeComposite::thumbPosition when usedTotalSize(scrollbar) == scrollbar-&gt;visibleSize(), and we end up dividing by zero. I&apos;m going to catch this case and assign the result to be 1, unless there are any objections.

Example failing test: scrollbars/listbox-scrollbar-combinations.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559300</commentid>
    <comment_count>1</comment_count>
      <attachid>127608</attachid>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 10:31:16 -0800</bug_when>
    <thetext>Created attachment 127608
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559324</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-17 10:47:12 -0800</bug_when>
    <thetext>How is this possible.  I thought divide by zero crashed on x86?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559332</commentid>
    <comment_count>3</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 10:51:11 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; How is this possible.  I thought divide by zero crashed on x86?

Integer divide by zero does... floating point returns NaN.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559335</commentid>
    <comment_count>4</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 10:53:27 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; How is this possible.  I thought divide by zero crashed on x86?
&gt; 
&gt; Integer divide by zero does... floating point returns NaN.

Actually, 0.0/0.0 == NaN. If the numerator is positive or negative, you get an appropriately signed infinity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559339</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-17 10:56:14 -0800</bug_when>
    <thetext>Can we write a test for this case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559340</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-17 10:56:31 -0800</bug_when>
    <thetext>I see, there already is a test.  But this change doens&apos;t fix that test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559344</commentid>
    <comment_count>7</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 11:01:15 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; I see, there already is a test.  But this change doens&apos;t fix that test?

There are several tests that do this (I put an assert in to test). This value ends up in an IntSize with a giant negative number, which eventually will just get maxed with zero. In subpixel code, we have assertions guarding against this sort of thing, so I want to fix the source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559358</commentid>
    <comment_count>8</comment_count>
      <attachid>127608</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-17 11:16:38 -0800</bug_when>
    <thetext>Comment on attachment 127608
Patch

OK.  How do we actually fix the FIXME?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559363</commentid>
    <comment_count>9</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 11:23:10 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; (From update of attachment 127608 [details])
&gt; OK.  How do we actually fix the FIXME?

I was hoping Antonio could chime in on that. He reviewed the original code.

CC-ing jamesr and smfr to see if they have any insight.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559370</commentid>
    <comment_count>10</comment_count>
      <attachid>127608</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-02-17 11:27:48 -0800</bug_when>
    <thetext>Comment on attachment 127608
Patch

Why 1 instead of 0?

I think this would be cleaner as a separate check for usedTotalSize(scrollbar) == scrollbar-&gt;visibleSize()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559373</commentid>
    <comment_count>11</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 11:35:29 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; (From update of attachment 127608 [details])
&gt; Why 1 instead of 0?
&gt; 
&gt; I think this would be cleaner as a separate check for usedTotalSize(scrollbar) == scrollbar-&gt;visibleSize()

I&apos;m happy to make those changes. Is it expected that usedTotalSize(scrollbar) would ever equal scrollbar-&gt;visibleSize()?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559414</commentid>
    <comment_count>12</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-02-17 12:03:37 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; (From update of attachment 127608 [details] [details])
&gt; &gt; OK.  How do we actually fix the FIXME?
&gt; 
&gt; I was hoping Antonio could chime in on that. He reviewed the original code.
&gt; 
&gt; CC-ing jamesr and smfr to see if they have any insight.

Hi Levi. sorry about the delay...

would you mind to point to the original revision that introduced the problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559429</commentid>
    <comment_count>13</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 12:37:40 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; Hi Levi. sorry about the delay...
&gt; 
&gt; would you mind to point to the original revision that introduced the problem?

No worries. I was actually wrong, as you reviewed r91547, which didn&apos;t actually introduce the possibility of a divide by zero. That actually came from r76831.

Anyways, I&apos;ll adopt James&apos; strategy for a fix unless someone more familiar with this code has some advice. I plead mostly ignorance, but want to avoid the current bad behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559430</commentid>
    <comment_count>14</comment_count>
      <attachid>127608</attachid>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 12:38:39 -0800</bug_when>
    <thetext>Comment on attachment 127608
Patch

Removing the r+. I&apos;ll use James&apos; advice for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559517</commentid>
    <comment_count>15</comment_count>
      <attachid>127650</attachid>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-17 13:59:20 -0800</bug_when>
    <thetext>Created attachment 127650
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559545</commentid>
    <comment_count>16</comment_count>
      <attachid>127650</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-17 14:29:11 -0800</bug_when>
    <thetext>Comment on attachment 127650
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=127650&amp;action=review

&gt; Source/WebCore/platform/ScrollbarThemeComposite.cpp:230
&gt; +        if (usedTotalSize(scrollbar) == scrollbar-&gt;visibleSize())
&gt; +            return 1;

You should add a why comment to explain this.  Another way to check this would be to use a local for used - visible and check against 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>562182</commentid>
    <comment_count>17</comment_count>
      <attachid>128253</attachid>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-02-22 11:32:50 -0800</bug_when>
    <thetext>Created attachment 128253
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>562211</commentid>
    <comment_count>18</comment_count>
      <attachid>128253</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-02-22 11:59:26 -0800</bug_when>
    <thetext>Comment on attachment 128253
Patch

Seems reasonable.  I&apos;m slightly surprised we can&apos;t detect this any way through a layout test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>562284</commentid>
    <comment_count>19</comment_count>
      <attachid>128253</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-22 12:57:29 -0800</bug_when>
    <thetext>Comment on attachment 128253
Patch

Clearing flags on attachment: 128253

Committed r108541: &lt;http://trac.webkit.org/changeset/108541&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>562285</commentid>
    <comment_count>20</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-22 12:57:35 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>127608</attachid>
            <date>2012-02-17 10:31:16 -0800</date>
            <delta_ts>2012-02-17 13:58:59 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-78910-20120217103115.patch</filename>
            <type>text/plain</type>
            <size>1831</size>
            <attacher name="Levi Weintraub">leviw</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEwODA5MCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDEyLTAyLTE3ICBMZXZpIFdl
aW50cmF1YiAgPGxldml3QGNocm9taXVtLm9yZz4KKworICAgICAgICBTY3JvbGxiYXJUaGVtZUNv
bXBvc2l0ZTo6dGh1bWJQb3NpdGlvbiB1c2VzIHRoZSByZXN1bHQgb2YgYSBkaXZpZGUgYnkgemVy
bworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9Nzg5MTAK
KworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBUZXN0aW5n
IGZvciBOYU4gYXMgdGhlIHJlc3VsdCBvZiBhIGZsb2F0aW5nIHBvaW50IGRpdmlkZSBmdW5jdGlv
biB0aGF0IHNvbWV0aW1lcyBkaXZpZGVzIGJ5IHplcm8uCisgICAgICAgIFRoaXMgZG9lc24ndCBj
cmFzaCwgYnV0IGFzc2lnbnMgTmFOIHRvIGFuIGludGVnZXIgYW5kIHVzZXMgdGhhdCBhcyBhIHNp
emUgaW4gdGhlIHJlbmRlcmluZyBjb2RlLgorICAgICAgICBUaGlzIGNhdXNlcyBwcm9ibGVtcyB3
aXRoIG91ciBjb252ZXJzaW9uIHRvIHN1YnBpeGVsIGxheW91dCwgd2hpY2ggYXNzZXJ0cyB3aGVu
IHdlIG92ZXJmbG93LgorCisgICAgICAg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3JvbGxiYXItPmN1cnJlbnRQb3MoKSkgKiAodHJhY2tM
ZW5ndGgoc2Nyb2xsYmFyKSAtIHRodW1iTGVuZ3RoKHNjcm9sbGJhcikpIC8gKHVzZWRUb3RhbFNp
emUoc2Nyb2xsYmFyKSAtIHNjcm9sbGJhci0+dmlzaWJsZVNpemUoKSk7Ci0gICAgICAgIHJldHVy
biAocG9zIDwgMSAmJiBwb3MgPiAwKSA/IDEgOiBwb3M7CisgICAgICAgIHJldHVybiAocG9zIDwg
MSAmJiBwb3MgPiAwKSB8fCBpc25hbihwb3MpID8gMSA6IHBvczsKICAgICB9CiAgICAgcmV0dXJu
IDA7CiB9Cg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>127650</attachid>
            <date>2012-02-17 13:59:20 -0800</date>
            <delta_ts>2012-02-22 11:32:46 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-78910-20120217135919.patch</filename>
            <type>text/plain</type>
            <size>1635</size>
            <attacher name="Levi Weintraub">leviw</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEwODA5MCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDEyLTAyLTE3ICBMZXZpIFdl
aW50cmF1YiAgPGxldml3QGNocm9taXVtLm9yZz4KKworICAgICAgICBTY3JvbGxiYXJUaGVtZUNv
bXBvc2l0ZTo6dGh1bWJQb3NpdGlvbiB1c2VzIHRoZSByZXN1bHQgb2YgYSBkaXZpZGUgYnkgemVy
bworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z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Zsb2F0IHVz
ZWRUb3RhbFNpemUoU2Nyb2xsYmFyKiBzYwogaW50IFNjcm9sbGJhclRoZW1lQ29tcG9zaXRlOjp0
aHVtYlBvc2l0aW9uKFNjcm9sbGJhciogc2Nyb2xsYmFyKQogewogICAgIGlmIChzY3JvbGxiYXIt
PmVuYWJsZWQoKSkgeworICAgICAgICBpZiAodXNlZFRvdGFsU2l6ZShzY3JvbGxiYXIpID09IHNj
cm9sbGJhci0+dmlzaWJsZVNpemUoKSkKKyAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICBm
bG9hdCBwb3MgPSBtYXgoMC4wZiwgc2Nyb2xsYmFyLT5jdXJyZW50UG9zKCkpICogKHRyYWNrTGVu
Z3RoKHNjcm9sbGJhcikgLSB0aHVtYkxlbmd0aChzY3JvbGxiYXIpKSAvICh1c2VkVG90YWxTaXpl
KHNjcm9sbGJhcikgLSBzY3JvbGxiYXItPnZpc2libGVTaXplKCkpOwogICAgICAgICByZXR1cm4g
KHBvcyA8IDEgJiYgcG9zID4gMCkgPyAxIDogcG9zOwogICAgIH0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>128253</attachid>
            <date>2012-02-22 11:32:50 -0800</date>
            <delta_ts>2012-02-22 12:57:29 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-78910-20120222113249.patch</filename>
            <type>text/plain</type>
            <size>1899</size>
            <attacher name="Levi Weintraub">leviw</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEwODA5MCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEB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OwogICAgICAgICByZXR1cm4gKHBvcyA8IDEgJiYgcG9zID4gMCkgPyAxIDogcG9zOwogICAg
IH0KICAgICByZXR1cm4gMDsK
</data>

          </attachment>
      

    </bug>

</bugzilla>