<?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>9581</bug_id>
          
          <creation_ts>2006-06-25 13:33:23 -0700</creation_ts>
          <short_desc>REGRESSION: The new NativeTextArea scrolls to the top when the control is unfocused.</short_desc>
          <delta_ts>2006-11-02 20:36:48 -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>Forms</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>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rosyna">webkit-bugs</reporter>
          <assigned_to name="Adele Peterson">adele</assigned_to>
          <cc>daniele.metilli</cc>
    
    <cc>ian</cc>
    
    <cc>jon</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47132</commentid>
    <comment_count>0</comment_count>
    <who name="Rosyna">webkit-bugs</who>
    <bug_when>2006-06-25 13:33:23 -0700</bug_when>
    <thetext>If I have a lot of text In a textarea control, such that it makes the textarea get a scroll bar and I scroll to the bottom of the textarea control, then click on another control (such as a checkbox, radio control, or push button), the textarea scrolls to the top. This seems to be really &quot;jarring&quot;. Especially if I&apos;m trying to copy and paste something into the textarea from the webpage I&apos;m commenting on. Since it means I have to scroll all the way down to the bottom again to find the location I was *just* at in order to paste the thing I am going to quote.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47133</commentid>
    <comment_count>1</comment_count>
    <who name="Rosyna">webkit-bugs</who>
    <bug_when>2006-06-25 13:34:46 -0700</bug_when>
    <thetext>This is a test. There should be no line breaks in this comment. This is a test. There should be no line breaks in this comment.This is a test. There should be no line breaks in this comment.This is a test. There should be no line breaks in this comment.This is a test. There should be no line breaks in this comment.This is a test. There should be no line breaks in this comment.This is a test. There should be no line breaks in this comment.This is a test. There should be no line breaks in this comment.This is a test. There should be no line breaks in this comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47752</commentid>
    <comment_count>2</comment_count>
      <attachid>9096</attachid>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-06-29 11:09:58 -0700</bug_when>
    <thetext>Created attachment 9096
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47762</commentid>
    <comment_count>3</comment_count>
      <attachid>9096</attachid>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-06-29 12:21:45 -0700</bug_when>
    <thetext>Comment on attachment 9096
patch

clearing review flag. this isn&apos;t quite right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47764</commentid>
    <comment_count>4</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-06-29 12:49:16 -0700</bug_when>
    <thetext>That patch fixes some common cases of this problem, but RenderLayer::updateScrollInfoAfterLayout is still sometimes causing the layer to scroll back to the top.

I&apos;m not sure I understand this code.... we&apos;re calculating a new scroll position (line 1036):

        int newY = max(0, min(m_scrollY, scrollHeight() - m_object-&gt;clientHeight()));

where m_scrollY is 26... which seems to be valid, but gets clobbered by this calculation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49660</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Raboczi">srab8378</who>
    <bug_when>2006-07-13 08:18:08 -0700</bug_when>
    <thetext>A more severe (and presumably related) problem with the scrolling of textareas is that touching the scrollbar instantly and reproducibly crashes the browser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49671</commentid>
    <comment_count>6</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-07-13 09:28:01 -0700</bug_when>
    <thetext>Simon, please file a new bug about the crash, so we can fix that separately from this issue.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49960</commentid>
    <comment_count>7</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-07-15 12:57:51 -0700</bug_when>
    <thetext>This is a regression from production Safari, so adding Regression keyword.  Regressions are P1, and should have a Radar associated with them (adding NeedsRadar).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49983</commentid>
    <comment_count>8</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-07-15 14:50:44 -0700</bug_when>
    <thetext>Bug 9942 may be related to this bug since it exhibits similar behavior.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54546</commentid>
    <comment_count>9</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-09-01 00:48:22 -0700</bug_when>
    <thetext>*** Bug 10670 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53981</commentid>
    <comment_count>10</comment_count>
    <who name="Jon">jon</who>
    <bug_when>2006-10-05 22:06:22 -0700</bug_when>
    <thetext>Highlight scrolling is still crazy as of r16831. Major usability (i.e. testing) problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47595</commentid>
    <comment_count>11</comment_count>
      <attachid>9096</attachid>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-11-02 20:17:27 -0800</bug_when>
    <thetext>Comment on attachment 9096
patch

I actually do think this patch is right.  The problem I was seeing before is caused by the flexbox double layout bugs.  Now that we&apos;ve moved textareas off of RenderFlexibleBox, this change should fully fix this scrolling problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47596</commentid>
    <comment_count>12</comment_count>
      <attachid>9096</attachid>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-11-02 20:18:14 -0800</bug_when>
    <thetext>Comment on attachment 9096
patch

oh, and of course, I&apos;ll update this patch so RenderTextField --&gt; RenderTextControl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47597</commentid>
    <comment_count>13</comment_count>
      <attachid>9096</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2006-11-02 20:26:19 -0800</bug_when>
    <thetext>Comment on attachment 9096
patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47598</commentid>
    <comment_count>14</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-11-02 20:36:48 -0800</bug_when>
    <thetext>Committed revision 17560.
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9096</attachid>
            <date>2006-06-29 11:09:58 -0700</date>
            <delta_ts>2006-11-02 20:26:19 -0800</delta_ts>
            <desc>patch</desc>
            <filename>patch_scroll_ta.txt</filename>
            <type>text/plain</type>
            <size>1295</size>
            <attacher name="Adele Peterson">adele</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDE1MDky
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMDYtMDYt
MjkgIEFkZWxlIFBldGVyc29uICA8YWRlbGVAYXBwbGUuY29tPgorCisgICAgICAgIFJldmlld2Vk
IGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIC0gRml4ZWQgaHR0cDovL2J1Z3ppbGxhLm9w
ZW5kYXJ3aW4ub3JnL3Nob3dfYnVnLmNnaT9pZD05NTgxCisgICAgICAgIFRoZSBuZXcgTmF0aXZl
VGV4dEFyZWEgc2Nyb2xscyB0byB0aGUgdG9wIHdoZW4gdGhlIGNvbnRyb2wgaXMgdW5mb2N1c2Vk
LgorCisgICAgICAgICogcmVuZGVyaW5nL1JlbmRlclRleHRGaWVsZC5jcHA6IChXZWJDb3JlOjpS
ZW5kZXJUZXh0RmllbGQ6OmZvcndhcmRFdmVudCk6CisgICAgICAgIE9uIGJsdXIsIG9ubHkgc2Ny
b2xsIGJhY2sgdG8gdGhlIHN0YXJ0IGZvciB0ZXh0IGZpZWxkcy4KKwogMjAwNi0wNi0yOSAgRGF2
aWQgS2lsemVyICA8ZGRraWx6ZXJAa2lsemVyLm5ldD4KIAogICAgICAgICBSZXZpZXdlZCBieSBE
YXJpbi4KSW5kZXg6IHJlbmRlcmluZy9SZW5kZXJUZXh0RmllbGQuY3BwCj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0t
IHJlbmRlcmluZy9SZW5kZXJUZXh0RmllbGQuY3BwCShyZXZpc2lvbiAxNTA5MikKKysrIHJlbmRl
cmluZy9SZW5kZXJUZXh0RmllbGQuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC0zODgsNyArMzg4LDgg
QEAKIHsKICAgICBpZiAoZXZ0LT50eXBlKCkgPT0gYmx1ckV2ZW50KSB7CiAgICAgICAgIFJlbmRl
ck9iamVjdCogaW5uZXJSZW5kZXJlciA9IG1fZGl2LT5yZW5kZXJlcigpOwotICAgICAgICBpZiAo
aW5uZXJSZW5kZXJlcikgeworICAgICAgICAvLyBTY3JvbGwgYmFjayB0byB0aGUgc3RhcnQgd2hl
biBsZWF2aW5nIHRleHQgZmllbGRzCisgICAgICAgIGlmIChpbm5lclJlbmRlcmVyICYmICFtX211
bHRpTGluZSkgewogICAgICAgICAgICAgUmVuZGVyTGF5ZXIqIGlubmVyTGF5ZXIgPSBpbm5lclJl
bmRlcmVyLT5sYXllcigpOwogICAgICAgICAgICAgaWYgKGlubmVyTGF5ZXIpCiAgICAgICAgICAg
ICAgICAgaW5uZXJMYXllci0+c2Nyb2xsVG9PZmZzZXQoc3R5bGUoKS0+ZGlyZWN0aW9uKCkgPT0g
UlRMID8gaW5uZXJMYXllci0+c2Nyb2xsV2lkdGgoKSA6IDAsIDApOwo=
</data>
<flag name="review"
          id="3957"
          type_id="1"
          status="+"
          setter="andersca"
    />
          </attachment>
      

    </bug>

</bugzilla>