<?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>25299</bug_id>
          
          <creation_ts>2009-04-20 14:24:13 -0700</creation_ts>
          <short_desc>Don&apos;t bound caret to root line box if it is still inside its containing block</short_desc>
          <delta_ts>2009-04-20 15:31:12 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Justin Garcia">justin.garcia</reporter>
          <assigned_to name="Justin Garcia">justin.garcia</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118157</commentid>
    <comment_count>0</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-04-20 14:24:13 -0700</bug_when>
    <thetext>In RTL, I think we should distribute odd caret widths more to the left than to the right, so that the caret doesn&apos;t overlap what is usually the just typed character.

Also in RTL, we shouldn&apos;t make the caret stay in the root line box in auto wrap modes, it should just be kept inside the containing block (like we do in non wrapping modes before the text wraps).

&lt;rdar://problem/6804912&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118158</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-04-20 14:35:20 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Also in RTL, we shouldn&apos;t make the caret stay in the root line box in auto wrap
&gt; modes, it should just be kept inside the containing block (like we do in non
&gt; wrapping modes before the text wraps).

I don&apos;t understand why there needs to be a different rule for RTL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118159</commentid>
    <comment_count>2</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-04-20 14:37:10 -0700</bug_when>
    <thetext>&gt;&gt; Also in RTL, we shouldn&apos;t make the caret stay in the root line box in auto wrap
&gt;&gt; modes, it should just be kept inside the containing block (like we do in non
&gt;&gt; wrapping modes before the text wraps).

&gt; I don&apos;t understand why there needs to be a different rule for RTL.

Sorry I was unclear.  I only mean that right now, we don&apos;t bound carets in LTR text to their root line box in auto wrap, only in RTL, so the fix only needs to happen in the RTL case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118161</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-04-20 14:38:13 -0700</bug_when>
    <thetext>As for the caret width, I agree, but I think the definition of &quot;in RTL&quot; should not be too fine-grained: perhaps consider the block direction, but not individual text boxes&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118164</commentid>
    <comment_count>4</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-04-20 14:46:45 -0700</bug_when>
    <thetext>Going to hold off on the caretWidth distribution change for now, since we think it may make us deviate from AppKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118166</commentid>
    <comment_count>5</comment_count>
      <attachid>29625</attachid>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-04-20 14:51:25 -0700</bug_when>
    <thetext>Created attachment 29625
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118170</commentid>
    <comment_count>6</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-04-20 15:29:05 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/42685</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118171</commentid>
    <comment_count>7</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2009-04-20 15:31:12 -0700</bug_when>
    <thetext>Oops!  Made a big typo.  Fixed it in http://trac.webkit.org/changeset/42686</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>29625</attachid>
            <date>2009-04-20 14:51:25 -0700</date>
            <delta_ts>2009-04-20 15:22:56 -0700</delta_ts>
            <desc>patch</desc>
            <filename>25299.txt</filename>
            <type>text/plain</type>
            <size>1218</size>
            <attacher name="Justin Garcia">justin.garcia</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDkyMDg0
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMDktMDQt
MjAgIEp1c3RpbiBHYXJjaWEgIDxqdXN0aW4uZ2FyY2lhQGFwcGxlLmNvbT4KKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKyAgICAgICAgCisgICAgICAgIGh0dHBzOi8vYnVn
cy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yNTI5OQorICAgICAgICBEb24ndCBib3VuZCBj
YXJldCB0byByb290IGxpbmUgYm94IGlmIGl0IGlzIHN0aWxsIGluc2lkZSBpdHMgY29udGFpbmlu
ZyBibG9jaworCisgICAgICAgIENhbid0IHlldCB0ZXN0IGNoYW5nZXMgdG8gYmVoYXZpb3Igd2l0
aCBub24tc3RhbmRhcmQgY2FyZXQgd2lkdGhzLgorCisgICAgICAgICogcmVuZGVyaW5nL1JlbmRl
clRleHQuY3BwOgorICAgICAgICAoV2ViQ29yZTo6UmVuZGVyVGV4dDo6bG9jYWxDYXJldFJlY3Qp
OgorCiAyMDA5LTA0LTIwICBEYXZpZCBLaWx6ZXIgIDxkZGtpbHplckBhcHBsZS5jb20+CgpJbmRl
eDogcmVuZGVyaW5nL1JlbmRlclRleHQuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHJlbmRlcmluZy9SZW5k
ZXJUZXh0LmNwcAkocmV2aXNpb24gOTIwNTgpCisrKyByZW5kZXJpbmcvUmVuZGVyVGV4dC5jcHAJ
KHdvcmtpbmcgY29weSkKQEAgLTQ4NCw3ICs0ODQsNyBAQAogICAgICAgICBpZiAoYm94LT5kaXJl
Y3Rpb24oKSA9PSBMVFIpCiAgICAgICAgICAgICBsZWZ0ID0gbWluKGxlZnQsIHJvb3RMZWZ0ICsg
YXZhaWxhYmxlV2lkdGggLSBjYXJldFdpZHRoUmlnaHRPZk9mZnNldCk7CiAgICAgICAgIGVsc2UK
LSAgICAgICAgICAgIGxlZnQgPSBtYXgobGVmdCwgcm9vdExlZnQpOworICAgICAgICAgICAgbGVm
dCA9IG1heChsZWZ0LCBjYi0+eCgpKTsKICAgICB9IGVsc2UgewogICAgICAgICAvLyBJZiB0aGVy
ZSBpcyBubyB3cmFwcGluZywgdGhlIGNhcmV0IGNhbiBsZWF2ZSBpdHMgY29udGFpbmluZyBibG9j
aywgYnV0IG5vdCBpdHMgcm9vdCBsaW5lIGJveC4KICAgICAgICAgaWYgKGNiLT5zdHlsZSgpLT5k
aXJlY3Rpb24oKSA9PSBMVFIpIHsK
</data>
<flag name="review"
          id="14799"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>