<?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>45191</bug_id>
          
          <creation_ts>2010-09-03 11:57:45 -0700</creation_ts>
          <short_desc>[chromium] Fix complex text word spacing on Linux.</short_desc>
          <delta_ts>2010-09-13 11:47:39 -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>Other</rep_platform>
          <op_sys>Linux</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="Adam Langley">agl</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>274092</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Langley">agl</who>
    <bug_when>2010-09-03 11:57:45 -0700</bug_when>
    <thetext>I broke complex text word spacing with r66689. I misnamed a variable in the original code |glyphIndex| when it was actually indexing code points. That meant that I compared it against the wrong limit when working around Harfbuzz issues and neatly disabled word spacing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274094</commentid>
    <comment_count>1</comment_count>
      <attachid>66530</attachid>
    <who name="Adam Langley">agl</who>
    <bug_when>2010-09-03 12:00:45 -0700</bug_when>
    <thetext>Created attachment 66530
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274099</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-09-03 12:06:02 -0700</bug_when>
    <thetext>Can you also remove the line from test_expectations.txt where I marked the test as failing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>274111</commentid>
    <comment_count>3</comment_count>
      <attachid>66530</attachid>
    <who name="Adam Langley">agl</who>
    <bug_when>2010-09-03 12:16:18 -0700</bug_when>
    <thetext>Comment on attachment 66530
Patch

Will land on Monday (with the test-expectations changing included): landing on a Friday afternoon is tempting fate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275032</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Langley">agl</who>
    <bug_when>2010-09-07 07:54:04 -0700</bug_when>
    <thetext>r66882</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275130</commentid>
    <comment_count>5</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-09-07 10:26:11 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; r66882

Hmm, it still looks a bit off.  It looks like the initial spacing is lost.

Expected:
http://trac.webkit.org/export/66888/trunk/LayoutTests/platform/chromium-linux/fast/text/atsui-spacing-features-expected.png

Actual:
http://build.chromium.org/buildbot/layout_test_results/webkit-rel-linux-webkit-org/results/layout-test-results/fast/text/atsui-spacing-features-actual.png</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275132</commentid>
    <comment_count>6</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-09-07 10:26:37 -0700</bug_when>
    <thetext>Reopening</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275135</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Langley">agl</who>
    <bug_when>2010-09-07 10:29:22 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Hmm, it still looks a bit off.  It looks like the initial spacing is lost.

I checked by running the layout tests. However, I now imagine that the line in test_expectations.txt would have suppressed the failure, right?

I&apos;m not sure that either result is currently more &apos;right&apos;, but we should probably not change it for change&apos;s sake so I&apos;ll take another look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275139</commentid>
    <comment_count>8</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2010-09-07 10:36:34 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #5)
&gt; &gt; Hmm, it still looks a bit off.  It looks like the initial spacing is lost.
&gt; 
&gt; I checked by running the layout tests. However, I now imagine that the line in test_expectations.txt would have suppressed the failure, right?

Yes, if you ran the test before updating test_expectations.txt.

&gt; I&apos;m not sure that either result is currently more &apos;right&apos;, but we should probably not change it for change&apos;s sake so I&apos;ll take another look.

Thanks, Adam!  Sorry this is such a yak shave . . .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>278353</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Langley">agl</who>
    <bug_when>2010-09-13 11:47:39 -0700</bug_when>
    <thetext>Rebaselined in r67400.

I played with a few different things but nothing was clearly better. The new baseline doesn&apos;t include word-spacing at the right-hand-side of RTL text, which is better (I think).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66530</attachid>
            <date>2010-09-03 12:00:45 -0700</date>
            <delta_ts>2010-09-03 12:16:18 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-45191-20100903150044.patch</filename>
            <type>text/plain</type>
            <size>2072</size>
            <attacher name="Adam Langley">agl</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MGUyNTkwOTM3NzhjNTVjYzgyZDI2Mjg4MDRhZjA0ZTY0MDY4OGFiZi4uODc0ZjdlNjJkYjc5Y2Ex
ZWZjZDM0M2Q2Zjk5NGYyY2Q2OWNlMWZmNSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cK
KysrIGIvV2ViQ29yZS9DaGFuZ2VM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AgICAgICAgICAgICAgJiYgaXNXb3JkQnJlYWso
Z2x5cGhJbmRleCwgaXNSVEwpKSB7CisgICAgICAgICAgICBpZiAobG9nQ2x1c3RlcnNJbmRleCA8
IG1faXRlbS5pdGVtLmxlbmd0aAorICAgICAgICAgICAgICAgICYmIGlzV29yZEJyZWFrKG1faXRl
bS5pdGVtLnBvcyArIGxvZ0NsdXN0ZXJzSW5kZXgsIGlzUlRMKSkgewogICAgICAgICAgICAgICAg
IGFkdmFuY2UgKz0gbV93b3JkU3BhY2luZ0FkanVzdG1lbnQ7CiAKICAgICAgICAgICAgICAgICBp
ZiAobV9wYWRkaW5nID4gMCkgewo=
</data>
<flag name="review"
          id="55567"
          type_id="1"
          status="+"
          setter="tony"
    />
    <flag name="commit-queue"
          id="55570"
          type_id="3"
          status="-"
          setter="agl"
    />
          </attachment>
      

    </bug>

</bugzilla>