<?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>34049</bug_id>
          
          <creation_ts>2010-01-24 00:07:29 -0800</creation_ts>
          <short_desc>ScrollbarTheme[Chromium]Mac.mm wrongly set scrollbar view size to page step size</short_desc>
          <delta_ts>2011-03-28 15:23:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Kasting">pkasting</reporter>
          <assigned_to name="Peter Kasting">pkasting</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>john</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>184051</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-01-24 00:07:29 -0800</bug_when>
    <thetext>In ScrollbarTheme[Chromium]Mac::paint(), we have the following line:

trackInfo.trackInfo.scrollbar.viewsize = scrollbar-&gt;pageStep();

There is no documentation on what this member represents, other than header comments, and the ones in Appearance.h are not too enlightening: &quot;The current view range size&quot;.

I believe this is supposed to be the size of the visible area, and thus should be using scrollbar-&gt;visibleSize().  Using pageStep() meant that when bug 32595 changed how far we travel when scrolling by page, the scroll thumb changed size, which is unexpected.

Changing this to use visibleSize() will necessitate updating a number of layout test pixel baselines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184368</commentid>
    <comment_count>1</comment_count>
      <attachid>47358</attachid>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-01-25 10:49:47 -0800</bug_when>
    <thetext>Created attachment 47358
patch v1 (no layout test updates)

Here&apos;s the actual fix.  This doesn&apos;t change any test baselines.  Note that the affected tests already don&apos;t match their baselines today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184461</commentid>
    <comment_count>2</comment_count>
      <attachid>47380</attachid>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-01-25 18:02:13 -0800</bug_when>
    <thetext>Created attachment 47380
Layout test rebaselines

Here are the layout test rebaselines to go with the patch.

There are also a few other tests I should mention:
* The following tests have a pixel diff showing scroll thumb length changes, but are actually caused by some other pre-existing change, not my patch:
  * fast/block/margin-collapse/103.html
  * fast/inline/long-wrapped-line.html
  * fast/multicol/float-multicol.html
* The following tests are affected by my change, but also already have other pixel diffs, so I won&apos;t rebaseline them to avoid papering over other regressions:
  * compositing/layers-inside-overflow-scroll.html
  * compositing/self-painting-layers.html
  * css1/font_properties/font_family.html
  * fast/box-shadow/basic-shadows.html
  * fast/forms/textarea-scrollbar.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184466</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-01-25 18:37:23 -0800</bug_when>
    <thetext>Seems like this would be a 2-second review for hyatt.  I don&apos;t feel qualified here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184467</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2010-01-25 18:40:35 -0800</bug_when>
    <thetext>Hy-yatt! Hy-yatt! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184480</commentid>
    <comment_count>5</comment_count>
      <attachid>47380</attachid>
    <who name="">mitz</who>
    <bug_when>2010-01-25 20:42:39 -0800</bug_when>
    <thetext>Comment on attachment 47380
Layout test rebaselines

    platform/mac/fast/overflow/line-clamp-expected.png
    platform/mac-leopard/compositing/overflow/overflow-positioning-expected.png
and
    svg/custom/text-zoom-expected.png

appear to be unrelated to your patch (the latter looks no different from what’s already checked in, I couldn’t discern any difference in the former either).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184491</commentid>
    <comment_count>6</comment_count>
      <attachid>47386</attachid>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-01-25 21:22:12 -0800</bug_when>
    <thetext>Created attachment 47386
Layout test rebaselines v2

Good catches, all correct.  Fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184492</commentid>
    <comment_count>7</comment_count>
      <attachid>47386</attachid>
    <who name="">mitz</who>
    <bug_when>2010-01-25 21:24:30 -0800</bug_when>
    <thetext>Comment on attachment 47386
Layout test rebaselines v2

&gt; +        * fast/repaint/inline-overflow-expected.png:
&gt; +        * fast/repaint/inline-relative-positioned-expected.png:
&gt; +        * fast/repaint/table-cell-overflow-expected.png:
&gt; +        * fast/repaint/trailing-floats-root-line-box-overflow-expected.png:

These too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184497</commentid>
    <comment_count>8</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-01-25 21:35:51 -0800</bug_when>
    <thetext>Sigh, yes.  Will fix before landing.

Didn&apos;t even think of also checking outside platform/mac when I generated the new baselines.  Sloppy.  Sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184499</commentid>
    <comment_count>9</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-01-25 21:58:12 -0800</bug_when>
    <thetext>Landed both patches in r53838.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374831</commentid>
    <comment_count>10</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-03-28 15:23:40 -0700</bug_when>
    <thetext>*** Bug 23819 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47358</attachid>
            <date>2010-01-25 10:49:47 -0800</date>
            <delta_ts>2010-01-25 20:31:55 -0800</delta_ts>
            <desc>patch v1 (no layout test updates)</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>2140</size>
            <attacher name="Peter Kasting">pkasting</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1MzgwNikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTUgQEAKKzIwMTAtMDEtMjUgIFBldGVyIEthc3RpbmcgIDxwa2FzdGluZ0Bnb29n
bGUuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IE1hYyBzY3JvbGxiYXIgdGh1bWJzIHdlcmUgZHJhd24gd2l0aCB0aGUgd3Jvbmcgc2l6ZS4KKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM0MDQ5CisKKyAg
ICAgICAgKiBwbGF0Zm9ybS9jaHJvbWl1bS9TY3JvbGxiYXJUaGVtZUNocm9taXVtTWFjLm1tOgor
ICAgICAgICAoV2ViQ29yZTo6U2Nyb2xsYmFyVGhlbWVDaHJvbWl1bU1hYzo6cGFpbnQpOgorICAg
ICAgICAqIHBsYXRmb3JtL21hYy9TY3JvbGxiYXJUaGVtZU1hYy5tbToKKyAgICAgICAgKFdlYkNv
cmU6OlNj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RyYWNrSW5mby5hdHRyaWJ1dGVzIHw9IGtUaGVtZVRyYWNr
SG9yaXpvbnRhbDsKSW5kZXg6IFdlYkNvcmUvcGxhdGZvcm0vbWFjL1Njcm9sbGJhclRoZW1lTWFj
Lm1tCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvcGxhdGZvcm0vbWFjL1Njcm9sbGJhclRoZW1lTWFj
Lm1tCShyZXZpc2lvbiA1MzgwNikKKysrIFdlYkNvcmUvcGxhdGZvcm0vbWFjL1Njcm9sbGJhclRo
ZW1lTWFjLm1tCSh3b3JraW5nIGNvcHkpCkBAIC0zNjIsNyArMzYyLDcgQEAgYm9vbCBTY3JvbGxi
YXJUaGVtZU1hYzo6cGFpbnQoU2Nyb2xsYmFyKgogICAgIHRyYWNrSW5mby5taW4gPSAwOwogICAg
IHRyYWNrSW5mby5tYXggPSBzY3JvbGxiYXItPm1heGltdW0oKTsKICAgICB0cmFja0luZm8udmFs
dWUgPSBzY3JvbGxiYXItPmN1cnJlbnRQb3MoKTsKLSAgICB0cmFja0luZm8udHJhY2tJbmZvLnNj
cm9sbGJhci52aWV3c2l6ZSA9IHNjcm9sbGJhci0+cGFnZVN0ZXAoKTsKKyAgICB0cmFja0luZm8u
dHJhY2tJbmZvLnNjcm9sbGJhci52aWV3c2l6ZSA9IHNjcm9sbGJhci0+dmlzaWJsZVNpemUoKTsK
ICAgICB0cmFja0luZm8uYXR0cmlidXRlcyA9IDA7CiAgICAgaWYgKHNjcm9sbGJhci0+b3JpZW50
YXRpb24oKSA9PSBIb3Jpem9udGFsU2Nyb2xsYmFyKQogICAgICAgICB0cmFja0luZm8uYXR0cmli
dXRlcyB8PSBrVGhlbWVUcmFja0hvcml6b250YWw7Cg==
</data>
<flag name="review"
          id="29776"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47380</attachid>
            <date>2010-01-25 18:02:13 -0800</date>
            <delta_ts>2010-01-25 21:22:12 -0800</delta_ts>
            <desc>Layout test rebaselines</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Peter Kasting">pkasting</attacher>
            
              <data encoding="base64"></data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47386</attachid>
            <date>2010-01-25 21:22:12 -0800</date>
            <delta_ts>2010-01-25 21:24:30 -0800</delta_ts>
            <desc>Layout test rebaselines v2</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>0</size>
            <attacher name="Peter Kasting">pkasting</attacher>
            
              <data encoding="base64"></data>
<flag name="review"
          id="29810"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>