<?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>11749</bug_id>
          
          <creation_ts>2006-12-04 15:00:43 -0800</creation_ts>
          <short_desc>ScrollBar::setProportion() calls updateThumbProportion() unnecessarily</short_desc>
          <delta_ts>2006-12-07 16:23:06 -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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://mlb.mlb.com</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="Don Gibson">dgibson77</reporter>
          <assigned_to name="Don Gibson">dgibson77</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43466</commentid>
    <comment_count>0</comment_count>
    <who name="Don Gibson">dgibson77</who>
    <bug_when>2006-12-04 15:00:43 -0800</bug_when>
    <thetext>setProportion() blindly calls updateThumbProportion() even when nothing has changed.  Depending on how platforms implement updateThumbProportion(), this can lead to anything from too much work to infinite loops.

Rather than force updateThumbProportion() to realize when the proportion has not been updated, we should just make setProportion() be like setPosition() and do nothing when appropriate.

Patch coming shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43410</commentid>
    <comment_count>1</comment_count>
      <attachid>11731</attachid>
    <who name="Don Gibson">dgibson77</who>
    <bug_when>2006-12-04 15:10:47 -0800</bug_when>
    <thetext>Created attachment 11731
patch v1

The simplest possible fix.  I could have made setProportion() return a bool (like setPosition() does) or check that its arguments were positive, but I didn&apos;t have a particular reason to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43271</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-12-05 01:13:50 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; Depending on how platforms implement updateThumbProportion(), this
&gt; can lead to anything from too much work to infinite loops.

Sounds like this fix needs a layout test then (especially if the latter is the Windows behavior). Is it possible to make one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42949</commentid>
    <comment_count>3</comment_count>
      <attachid>11731</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-12-07 15:42:03 -0800</bug_when>
    <thetext>Comment on attachment 11731
patch v1

Looks fine, r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42914</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2006-12-07 16:23:06 -0800</bug_when>
    <thetext>Landed in r18066.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11731</attachid>
            <date>2006-12-04 15:10:47 -0800</date>
            <delta_ts>2006-12-07 15:42:03 -0800</delta_ts>
            <desc>patch v1</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>1036</size>
            <attacher name="Don Gibson">dgibson77</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAxODAwNCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTMgQEAKKzIwMDYtMT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dG90YWxTaXplID0gdG90
YWxTaXplOwogCg==
</data>
<flag name="review"
          id="4236"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>