<?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>5573</bug_id>
          
          <creation_ts>2005-10-31 10:59:35 -0800</creation_ts>
          <short_desc>Bidi algorithm: AN after L has incorrect resolved level</short_desc>
          <delta_ts>2005-11-28 08:23:40 -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>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</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>mitz</reporter>
          <assigned_to name="Dave Hyatt">hyatt</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23384</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-10-31 10:59:35 -0800</bug_when>
    <thetext>Summary: if the embedding level is even, then in the sequence L AN, the AN&apos;s resolved level should be 
greater (by 2) than the L&apos;s. WebKit treats them as if they have the same resolved level. (3.3.5 in the UBA).

To reproduce: open the test case in Safari.

Expected: the two lines to be the same, from left to right: English, Hebrew, Arabic digits. Firefox renders 
as expected.

Actual: on the second line, from left to right: English, Arabic digits, Hebrew.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23386</commentid>
    <comment_count>1</comment_count>
      <attachid>4543</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-31 11:02:40 -0800</bug_when>
    <thetext>Created attachment 4543
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23388</commentid>
    <comment_count>2</comment_count>
      <attachid>4544</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-31 11:40:16 -0800</bug_when>
    <thetext>Created attachment 4544
Terminate L run when encountring AN on an even level</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23389</commentid>
    <comment_count>3</comment_count>
      <attachid>4545</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-31 11:43:59 -0800</bug_when>
    <thetext>Created attachment 4545
Terminate L run when encountring AN on an even level

Oops! Corrected style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23390</commentid>
    <comment_count>4</comment_count>
      <attachid>4545</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-31 11:44:24 -0800</bug_when>
    <thetext>Comment on attachment 4545
Terminate L run when encountring AN on an even level

Fixes the testcase and doesn&apos;t break any of the layout tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23409</commentid>
    <comment_count>5</comment_count>
      <attachid>4545</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-10-31 14:17:40 -0800</bug_when>
    <thetext>Comment on attachment 4545
Terminate L run when encountring AN on an even level

In the future, it&apos;s probably worthwhile adding a comment in code that has a
case that falls through to the next case, since the mistake of leaving out a
break is so common and we don&apos;t want anyone to think this is a mistake. But
that&apos;s a minor quibble. r=me</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4543</attachid>
            <date>2005-10-31 11:02:40 -0800</date>
            <delta_ts>2005-10-31 11:02:40 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>bidi-AN-after-L.html</filename>
            <type>text/html</type>
            <size>442</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlvbmFs
Ly9FTiIgCiJodHRwOi8vd3d3LnczLm9yZy9UUi9odG1sNC9sb29zZS5kdGQiPgo8aHRtbD4KPGhl
YWQ+CiAgICA8dGl0bGU+QU4gYWZ0ZXIgTDwvdGl0bGU+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+
CiAgICAubHJvIHsgZGlyZWN0aW9uOmx0cjsgdW5pY29kZS1iaWRpOmJpZGktb3ZlcnJpZGU7IH07
Cjwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+ClRoZSBmb2xsb3dpbmcgdHdvIGxpbmVzIHNob3VsZCBi
ZSB0aGUgc2FtZToKPHAgY2xhc3M9ImxybyI+YWJjJiN4MDVkMjsmI3gwNWQxOyYjeDA1ZDA7JiN4
MDY2MTsmI3gwNjYyOyYjeDA2NjM7PC9wPgo8cD5hYmMmI3gwNjYxOyYjeDA2NjI7JiN4MDY2Mzsm
I3gwNWQwOyYjeDA1ZDE7JiN4MDVkMjs8L3A+CjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4544</attachid>
            <date>2005-10-31 11:40:16 -0800</date>
            <delta_ts>2005-10-31 11:43:59 -0800</delta_ts>
            <desc>Terminate L run when encountring AN on an even level</desc>
            <filename>5573_r1.patch</filename>
            <type>text/plain</type>
            <size>716</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IGJpZGkuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9vdC9XZWJDb3JlL2to
dG1sL3JlbmRlcmluZy9iaWRpLmNwcCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xNTMKZGlmZiAt
cCAtdSAtcjEuMTUzIGJpZGkuY3BwCi0tLSBiaWRpLmNwcAkyNCBPY3QgMjAwNSAyMjo1MTowNiAt
MDAwMAkxLjE1MworKysgYmlkaS5jcHAJMzEgT2N0IDIwMDUgMTk6MzQ6NTQgLTAwMDAKQEAgLTEx
ODIsNiArMTE4Miw5IEBAIHZvaWQgUmVuZGVyQmxvY2s6OmJpZGlSZW9yZGVyTGluZShjb25zdCAK
ICAgICAgICAgICAgIHN3aXRjaChiaWRpLnN0YXR1cy5sYXN0KQogICAgICAgICAgICAgICAgIHsK
ICAgICAgICAgICAgICAgICBjYXNlIFFDaGFyOjpEaXJMOgorICAgICAgICAgICAgICAgICAgICBp
ZiAoYmlkaS5jb250ZXh0LT5kaXIgPT0gUUNoYXI6OkRpckwpIHsKKyAgICAgICAgICAgICAgICAg
ICAgICAgIGFwcGVuZFJ1bihiaWRpKTsKKyAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAg
ICAgICAgIGNhc2UgUUNoYXI6OkRpckFOOgogICAgICAgICAgICAgICAgICAgICBiaWRpLmVvciA9
IGJpZGkuY3VycmVudDsgYmlkaS5zdGF0dXMuZW9yID0gUUNoYXI6OkRpckFOOyBicmVhazsKICAg
ICAgICAgICAgICAgICBjYXNlIFFDaGFyOjpEaXJSOgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4545</attachid>
            <date>2005-10-31 11:43:59 -0800</date>
            <delta_ts>2005-10-31 14:17:40 -0800</delta_ts>
            <desc>Terminate L run when encountring AN on an even level</desc>
            <filename>5573_r2.patch</filename>
            <type>text/plain</type>
            <size>691</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IGJpZGkuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9vdC9XZWJDb3JlL2to
dG1sL3JlbmRlcmluZy9iaWRpLmNwcCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xNTMKZGlmZiAt
cCAtdSAtcjEuMTUzIGJpZGkuY3BwCi0tLSBiaWRpLmNwcAkyNCBPY3QgMjAwNSAyMjo1MTowNiAt
MDAwMAkxLjE1MworKysgYmlkaS5jcHAJMzEgT2N0IDIwMDUgMTk6NDc6NDMgLTAwMDAKQEAgLTEx
ODIsNiArMTE4Miw4IEBAIHZvaWQgUmVuZGVyQmxvY2s6OmJpZGlSZW9yZGVyTGluZShjb25zdCAK
ICAgICAgICAgICAgIHN3aXRjaChiaWRpLnN0YXR1cy5sYXN0KQogICAgICAgICAgICAgICAgIHsK
ICAgICAgICAgICAgICAgICBjYXNlIFFDaGFyOjpEaXJMOgorICAgICAgICAgICAgICAgICAgICBp
ZiAoYmlkaS5jb250ZXh0LT5kaXIgPT0gUUNoYXI6OkRpckwpCisgICAgICAgICAgICAgICAgICAg
ICAgICBhcHBlbmRSdW4oYmlkaSk7CiAgICAgICAgICAgICAgICAgY2FzZSBRQ2hhcjo6RGlyQU46
CiAgICAgICAgICAgICAgICAgICAgIGJpZGkuZW9yID0gYmlkaS5jdXJyZW50OyBiaWRpLnN0YXR1
cy5lb3IgPSBRQ2hhcjo6RGlyQU47IGJyZWFrOwogICAgICAgICAgICAgICAgIGNhc2UgUUNoYXI6
OkRpclI6Cg==
</data>
<flag name="review"
          id="806"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>