<?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>5443</bug_id>
          
          <creation_ts>2005-10-20 09:03:55 -0700</creation_ts>
          <short_desc>REGRESSION highlight left behind when contracting a selection</short_desc>
          <delta_ts>2005-10-21 11:14:11 -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>Layout and Rendering</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></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22363</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-10-20 09:03:55 -0700</bug_when>
    <thetext>The selection highlight is not repainted correctly when contracting the selection by dragging its end.

To reproduce: drag across a line of text on this page from left to right and all the way back, starting the 
selection anywhere *after* the first character.

I think this also comes from the latest changes to WebTextRenderer.m (r1.198 or r1.197).

Looks like the editing/selection/fake-drag pixel-test detects this regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22364</commentid>
    <comment_count>1</comment_count>
      <attachid>4422</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-20 09:46:17 -0700</bug_when>
    <thetext>Created attachment 4422
compute highlight width correctly

This patch also fixes the regression where the drag image for selections that
don&apos;t start at character 0 was incorrect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22383</commentid>
    <comment_count>2</comment_count>
      <attachid>4422</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-10-20 14:16:40 -0700</bug_when>
    <thetext>Comment on attachment 4422
compute highlight width correctly

Oops! Thanks. Sorry.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4422</attachid>
            <date>2005-10-20 09:46:17 -0700</date>
            <delta_ts>2005-10-20 14:16:40 -0700</delta_ts>
            <desc>compute highlight width correctly</desc>
            <filename>5443_r1.patch</filename>
            <type>text/plain</type>
            <size>1247</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYlRleHRSZW5kZXJlci5tCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9vdC9X
ZWJLaXQvV2ViQ29yZVN1cHBvcnQuc3VicHJvai9XZWJUZXh0UmVuZGVyZXIubSx2CnJldHJpZXZp
bmcgcmV2aXNpb24gMS4xOTgKZGlmZiAtcCAtdSAtcjEuMTk4IFdlYlRleHRSZW5kZXJlci5tCi0t
LSBXZWJUZXh0UmVuZGVyZXIubQkyMCBPY3QgMjAwNSAwNjowMjozOCAtMDAwMAkxLjE5OAorKysg
V2ViVGV4dFJlbmRlcmVyLm0JMjAgT2N0IDIwMDUgMTY6NDg6MTQgLTAwMDAKQEAgLTg2Niw3ICs4
NjYsNyBAQCBzdGF0aWMgdm9pZCBkcmF3R2x5cGhzKE5TRm9udCAqZm9udCwgTlNDCiAgICAgYWR2
YW5jZVdpZHRoSXRlcmF0b3IoJml0LCBydW4tPmZyb20sIDAsIDAsIDApOwogICAgIGZsb2F0IGJl
Zm9yZVdpZHRoID0gaXQucnVuV2lkdGhTb0ZhcjsKICAgICBhZHZhbmNlV2lkdGhJdGVyYXRvcigm
aXQsIHJ1bi0+dG8sIDAsIDAsIDApOwotICAgIGZsb2F0IGJhY2tncm91bmRXaWR0aCA9IGl0LnJ1
bldpZHRoU29GYXI7CisgICAgZmxvYXQgYmFja2dyb3VuZFdpZHRoID0gaXQucnVuV2lkdGhTb0Zh
ciAtIGJlZm9yZVdpZHRoOwogICAgIGlmIChzdHlsZS0+cnRsKSB7CiAgICAgICAgIGFkdmFuY2VX
aWR0aEl0ZXJhdG9yKCZpdCwgcnVuLT5sZW5ndGgsIDAsIDAsIDApOwogICAgICAgICBmbG9hdCBh
ZnRlcldpZHRoID0gaXQucnVuV2lkdGhTb0ZhcjsKQEAgLTE2NjAsNyArMTY2MCw3IEBAIHN0YXRp
YyB2b2lkIGluaXRpYWxpemVXaWR0aEl0ZXJhdG9yKFdpZHQKICAgICAgICAgc3RhcnRQb3NpdGlv
blJ1bi50byA9IHJ1bi0+bGVuZ3RoOwogICAgICAgICBXaWR0aEl0ZXJhdG9yIHN0YXJ0UG9zaXRp
b25JdGVyYXRvcjsKICAgICAgICAgaW5pdGlhbGl6ZVdpZHRoSXRlcmF0b3IoJnN0YXJ0UG9zaXRp
b25JdGVyYXRvciwgcmVuZGVyZXIsICZzdGFydFBvc2l0aW9uUnVuLCBzdHlsZSk7Ci0gICAgICAg
IGFkdmFuY2VXaWR0aEl0ZXJhdG9yKCZzdGFydFBvc2l0aW9uSXRlcmF0b3IsIHJ1bi0+dG8sIDAs
IDAsIDApOworICAgICAgICBhZHZhbmNlV2lkdGhJdGVyYXRvcigmc3RhcnRQb3NpdGlvbkl0ZXJh
dG9yLCBydW4tPmZyb20sIDAsIDAsIDApOwogICAgICAgICBpdGVyYXRvci0+d2lkdGhUb1N0YXJ0
ID0gc3RhcnRQb3NpdGlvbkl0ZXJhdG9yLnJ1bldpZHRoU29GYXI7CiAgICAgfQogfQo=
</data>
<flag name="review"
          id="757"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>