<?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>33093</bug_id>
          
          <creation_ts>2010-01-01 06:55:30 -0800</creation_ts>
          <short_desc>[Qt] LayoutTests/fast/html/text-field-input-types.html</short_desc>
          <delta_ts>2010-02-14 23:47:09 -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>WebKit Qt</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Hogan">robert</reporter>
          <assigned_to name="Chang Shu">cshu</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>cshu</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>176267</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2010-01-01 06:55:30 -0800</bug_when>
    <thetext>This test is skipped on Qt because it&apos;s output is:

A B C DE F

rather than

A B C D E F.

In the dumped text the spaces represent an &lt;input&gt; text field.

The reason for the difference is that on Mac all the input fields fit on a single line, whereas on Qt &apos;D&apos; starts on a new line. This happens because the width() of each of the &lt;input&gt; controls on Qt is 175, which must be larger than it is on Mac. The 175 is arrived at by taking the avgCharWidth of the render style&apos;s font (8) and multiplying it by InputElement::s_defaultSize (20), then adding the padding/margins. So the difference must stem from a different avgCharWidth between Mac and Qt.

What&apos;s the right thing to do here? Is it a bug that the text dump does not begin on a new line with E and F?

The test itself can be fixed for all platforms by specifying a small size attribute in the &lt;input&gt; markup, maybe that&apos;s the right way to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188686</commentid>
    <comment_count>1</comment_count>
      <attachid>48344</attachid>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-02-08 10:58:31 -0800</bug_when>
    <thetext>Created attachment 48344
fix patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189126</commentid>
    <comment_count>2</comment_count>
      <attachid>48344</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-02-09 12:38:41 -0800</bug_when>
    <thetext>Comment on attachment 48344
fix patch

Hum...  I think this patch is correct.  There&apos;s a separate question of whether you want the Qt metrics to match Mac, but that&apos;s not what this test is trying to test, so I think that&apos;s better dealt with separately.

I agree that it&apos;s possible we should improve the text dumping to be immune to these issues.  If this issue recurs, we can revisit that question.

BTW, it would be helpful if you&apos;d copy more of your analysis from Comment #0 into the ChangeLog.  I found Comment #0 quite informative but you ChangeLog somewhat mysterious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190259</commentid>
    <comment_count>3</comment_count>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-02-13 00:08:23 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 48344 [details])
&gt; Hum...  I think this patch is correct.  There&apos;s a separate question of whether
&gt; you want the Qt metrics to match Mac, but that&apos;s not what this test is trying
&gt; to test, so I think that&apos;s better dealt with separately.
&gt; I agree that it&apos;s possible we should improve the text dumping to be immune to
&gt; these issues.  If this issue recurs, we can revisit that question.
&gt; BTW, it would be helpful if you&apos;d copy more of your analysis from Comment #0
&gt; into the ChangeLog.  I found Comment #0 quite informative but you ChangeLog
&gt; somewhat mysterious.

Thanks for the review, Adam. And thanks to Robert, too. It is actually Robert who did all the analysis. I made this patch simply because this bug blocked my further work on making some of the input types working on Qt. And I also think the intention of the test case is somewhere else. Yes, I will add Robert&apos;s comment into the ChangLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190261</commentid>
    <comment_count>4</comment_count>
      <attachid>48701</attachid>
    <who name="Chang Shu">cshu</who>
    <bug_when>2010-02-13 00:43:32 -0800</bug_when>
    <thetext>Created attachment 48701
fix patch 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190263</commentid>
    <comment_count>5</comment_count>
      <attachid>48701</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-02-13 00:48:55 -0800</bug_when>
    <thetext>Comment on attachment 48701
fix patch 2

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190379</commentid>
    <comment_count>6</comment_count>
      <attachid>48701</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-14 21:14:57 -0800</bug_when>
    <thetext>Comment on attachment 48701
fix patch 2

Clearing flags on attachment: 48701

Committed r54761: &lt;http://trac.webkit.org/changeset/54761&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190380</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-14 21:15:07 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>48344</attachid>
            <date>2010-02-08 10:58:31 -0800</date>
            <delta_ts>2010-02-13 00:43:32 -0800</delta_ts>
            <desc>fix patch</desc>
            <filename>bug33093_1.patch</filename>
            <type>text/plain</type>
            <size>1824</size>
            <attacher name="Chang Shu">cshu</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBM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ZmlsdGVycy9mZVRpbGUuc3ZnCiAKICMgPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICMK
</data>
<flag name="review"
          id="31011"
          type_id="1"
          status="+"
          setter="abarth"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>48701</attachid>
            <date>2010-02-13 00:43:32 -0800</date>
            <delta_ts>2010-02-14 21:14:56 -0800</delta_ts>
            <desc>fix patch 2</desc>
            <filename>bug33093_2.patch</filename>
            <type>text/plain</type>
            <size>2066</size>
            <attacher name="Chang Shu">cshu</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDU0NjU0KQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTkgQEAKKzIwMTAtMDItMTMgIFNodSBDaGFuZyAgPENoYW5n
LlNodUBub2tpYS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisK
KyAgICAgICAgW1F0XSBUaGUgb3JpZ2luYWwgdGVzdCBjYXNlIGZhaWxlZCBvbiBRdCBiZWNhdXNl
IGl0cyByZWFsIG91dHB1dAorICAgICAgICAiQSBCIEMgREUgRiIgZGlkIG5vdCBtYXRjaCB0aGUg
ZXhwZWN0ZWQgIkEgQiBDIEQgRSBGIi4gVGhlIGlucHV0CisgICAgICAgIGZpZWxkIGJldHdlZW4g
RCBhbmQgRSBmYWlsZWQgdG8gZ2VuZXJhdGUgdGhlIHNwYWNlIGluIHRoZSBkdW1wZWQKKyAgICAg
ICAgdGV4dCBhcyBp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QgVHlwZXMgZm9yIFRleHQgQ29udHJvbHM8
L3RpdGxlPgorICAgIDxzdHlsZT4KKyAgICAgICAgYm9keSB7Zm9udC1zaXplOiA2MCU7fQorICAg
IDwvc3R5bGU+CiAgICAgPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPgogICAgICAgICBm
dW5jdGlvbiB0ZXN0KCkKICAgICAgICAgewpJbmRleDogTGF5b3V0VGVzdHMvcGxhdGZvcm0vcXQv
U2tpcHBlZAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9wbGF0Zm9ybS9xdC9Ta2lwcGVkCShy
ZXZpc2lvbiA1NDY1NCkKKysrIExheW91dFRlc3RzL3BsYXRmb3JtL3F0L1NraXBwZWQJKHdvcmtp
bmcgY29weSkKQEAgLTcsNyArNyw2IEBAIGVkaXRpbmcvcGFzdGVib2FyZC81NzgwNjk3LTIuaHRt
bAogZmFzdC9jc3MvZ2V0Q29tcHV0ZWRTdHlsZS9jb21wdXRlZC1zdHlsZS13aXRob3V0LXJlbmRl
cmVyLmh0bWwKIGZhc3QvY3NzL2dldENvbXB1dGVkU3R5bGUvY29tcHV0ZWQtc3R5bGUuaHRtbAog
ZmFzdC9oaXN0b3J5L2hpc3RvcnlfcmVsb2FkLmh0bWwKLWZhc3QvaHRtbC90ZXh0LWZpZWxkLWlu
cHV0LXR5cGVzLmh0bWwKIHN2Zy9iYXRpay9maWx0ZXJzL2ZlVGlsZS5zdmcKIAogIyA9PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT0gIwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>