<?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>12490</bug_id>
          
          <creation_ts>2007-01-30 21:46:28 -0800</creation_ts>
          <short_desc>Clean up canPlaceOnLine logic in bidi.cpp</short_desc>
          <delta_ts>2007-01-31 05:22:08 -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>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="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hyatt</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30066</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-30 21:46:28 -0800</bug_when>
    <thetext>The logic for calculating canPlaceOnLine in bidi.cpp may be simplified.  This is a follow-up to Bug 12423 Comment #21.

A true table for your edification:

                         auto
                         Wrap
                         Was
              will       Ever
              Fit        True
              On   auto  On
[0]  [1]  [2] Line Wrap  Line
---  ---  --- ---- ---- -------
 T    T    T    T    T    T
 T    T    T    T    T    T (F)
 T    T    T    T    F    T     
 T    T    T    T    F    F     
 F    F    F    F    T    T     
 F    F    F    F    T    T (F) 
 T    F    F    F    F    T     
 T    T    T    F    F    F     

[0] bool canFitOnLine = willFitOnLine || !autoWrap;
[1] bool canFitOnLine = willFitOnLine || !autoWrap;
    if (!willFitOnLine &amp;&amp; !autoWrap &amp;&amp; autoWrapWasEverTrueOnLine) 
        canFitOneLine = false;
[2] bool canFitOnLine = willFitOnLine || !willFitOnLine &amp;&amp; !autoWrapWasEverTrueOnLine;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29996</commentid>
    <comment_count>1</comment_count>
      <attachid>12818</attachid>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-30 21:49:14 -0800</bug_when>
    <thetext>Created attachment 12818
Patch v1

Proposed change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29994</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-30 21:50:13 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; A true table for your edification:

TRUTH table, even!
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29922</commentid>
    <comment_count>3</comment_count>
      <attachid>12818</attachid>
    <who name="">mitz</who>
    <bug_when>2007-01-30 23:10:33 -0800</bug_when>
    <thetext>Comment on attachment 12818
Patch v1

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29861</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-31 05:11:32 -0800</bug_when>
    <thetext>Committed revision 19300.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29858</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-01-31 05:15:26 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Committed revision 19300.

Oops, I overlooked that the change log did not mention the bug URL. Dave, could you please add it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29852</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-31 05:22:08 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Oops, I overlooked that the change log did not mention the bug URL. Dave, could
&gt; you please add it?

Good catch!  You know, something didn&apos;t look right when I committed it, but I couldn&apos;t figure out what it was.

Committed r19301.
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>12818</attachid>
            <date>2007-01-30 21:49:14 -0800</date>
            <delta_ts>2007-01-30 23:10:33 -0800</delta_ts>
            <desc>Patch v1</desc>
            <filename>bug-12490-v1.diff</filename>
            <type>text/plain</type>
            <size>1378</size>
            <attacher name="David Kilzer (:ddkilzer)">ddkilzer</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAxOTI4OCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTIgQEAKKzIwMDctMDEtMzAgIERhdmlkIEtpbHplciAgPGRka2lsemVyQGtpbHpl
ci5uZXQ+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
Tm8gdGVzdCBjYXNlcyBzaW5jZSB0aGVyZSBpcyBubyBjaGFuZ2UgaW4gZnVuY3Rpb25hbGl0eS4K
KworICAgICAgICAqIHJlbmRlcmluZy9iaWRpLmNwcDoKKyAgICAgICAgKFdlYkNvcmU6OlJlbmRl
ckJsb2NrOjpmaW5kTmV4dExpbmVCcmVhayk6IFNpbXBsaWZ5IGNhbkZpdE9uTGluZSBleHByZXNz
aW9uLgorCiAyMDA3LTAxLTMwICBNYWNpZWogU3RhY2hvd2lhayAgPG1qc0BhcHBsZS5jb20+CiAK
ICAgICAgICAgUmV2aWV3ZWQgYnkgQW5kZXJzLgpJbmRleDogV2ViQ29yZS9yZW5kZXJpbmcvYmlk
aS5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PQotLS0gV2ViQ29yZS9yZW5kZXJpbmcvYmlkaS5jcHAJKHJldmlzaW9u
IDE5Mjg2KQorKysgV2ViQ29yZS9yZW5kZXJpbmcvYmlkaS5jcHAJKHdvcmtpbmcgY29weSkKQEAg
LTI0MDAsOSArMjQwMCw3IEBAIEJpZGlJdGVyYXRvciBSZW5kZXJCbG9jazo6ZmluZE5leHRMaW5l
QnIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGVja0ZvckJyZWFrID0gdHJ1ZTsKICAg
ICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICBib29sIHdpbGxGaXRPbkxp
bmUgPSAodyArIHRtcFcgPD0gd2lkdGgpOwotICAgICAgICAgICAgICAgICAgICBib29sIGNhblBs
YWNlT25MaW5lID0gd2lsbEZpdE9uTGluZSB8fCAhYXV0b1dyYXA7Ci0gICAgICAgICAgICAgICAg
ICAgIGlmICghd2lsbEZpdE9uTGluZSAmJiAhYXV0b1dyYXAgJiYgYXV0b1dyYXBXYXNFdmVyVHJ1
ZU9uTGluZSkKLSAgICAgICAgICAgICAgICAgICAgICAgIGNhblBsYWNlT25MaW5lID0gZmFsc2U7
CisgICAgICAgICAgICAgICAgICAgIGJvb2wgY2FuUGxhY2VPbkxpbmUgPSB3aWxsRml0T25MaW5l
IHx8ICF3aWxsRml0T25MaW5lICYmICFhdXRvV3JhcFdhc0V2ZXJUcnVlT25MaW5lOwogICAgICAg
ICAgICAgICAgICAgICBpZiAoY2FuUGxhY2VPbkxpbmUgJiYgY2hlY2tGb3JCcmVhaykgewogICAg
ICAgICAgICAgICAgICAgICAgICAgdyArPSB0bXBXOwogICAgICAgICAgICAgICAgICAgICAgICAg
dG1wVyA9IDA7Cg==
</data>
<flag name="review"
          id="4906"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>