<?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>56046</bug_id>
          
          <creation_ts>2011-03-09 12:43:11 -0800</creation_ts>
          <short_desc>[Qt] Text layout is broken on Symbian</short_desc>
          <delta_ts>2011-03-30 09:38:42 -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>S60 Hardware</rep_platform>
          <op_sys>S60 3rd edition</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Viatcheslav Ostapenko">ostap73</reporter>
          <assigned_to name="Viatcheslav Ostapenko">ostap73</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>eric</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>luiz</cc>
    
    <cc>nlandry</cc>
    
    <cc>skyul</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>yong.li.webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>364707</commentid>
    <comment_count>0</comment_count>
    <who name="Viatcheslav Ostapenko">ostap73</who>
    <bug_when>2011-03-09 12:43:11 -0800</bug_when>
    <thetext>Load any page that has text on Symbian device and text is not rendered.

Appeared to be compiler implementation difference. RVCT compiler treats bitfields as unsigned by default and because of this in RenderBlock:lineHeight comparison &quot;m_lineHeight == -1&quot; is always false .

There are number of other places in webkit where integers in bitfields are assumed signed (most compilers have this default).

By quote from C++(2003) standard section 9.6/3 :
“It is implementation-defined whether a plain (neither explicitly signed nor unsigned) char, short, int or long bit-field is signed or unsigned”.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364714</commentid>
    <comment_count>1</comment_count>
      <attachid>85218</attachid>
    <who name="Viatcheslav Ostapenko">ostap73</who>
    <bug_when>2011-03-09 12:53:14 -0800</bug_when>
    <thetext>Created attachment 85218
Change bitfield integers to be signed by default on RVCT compiler.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364796</commentid>
    <comment_count>2</comment_count>
      <attachid>85218</attachid>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2011-03-09 14:47:48 -0800</bug_when>
    <thetext>Comment on attachment 85218
Change bitfield integers to be signed by default on RVCT compiler.

r=me. Great.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>364817</commentid>
    <comment_count>3</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2011-03-09 15:21:10 -0800</bug_when>
    <thetext>CCing Nick, Daniel and Kwang as the &quot;RVCT interest group&quot; to make sure that they evaluate if a similar change is needed for their ports.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365685</commentid>
    <comment_count>4</comment_count>
      <attachid>85218</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-10 17:14:15 -0800</bug_when>
    <thetext>Comment on attachment 85218
Change bitfield integers to be signed by default on RVCT compiler.

Clearing flags on attachment: 85218

Committed r80796: &lt;http://trac.webkit.org/changeset/80796&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365686</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-03-10 17:14:21 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>365756</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-03-10 19:29:55 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/80796 might have broken SnowLeopard Intel Release (Tests)
The following tests are not passing:
fast/text/large-text-composed-char-dos.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>376398</commentid>
    <comment_count>7</comment_count>
    <who name="Luiz Agostini">luiz</who>
    <bug_when>2011-03-30 09:38:02 -0700</bug_when>
    <thetext>Revision r80796 cherry-picked into qtwebkit-2.1.x with commit 3ecec08c9c7638a214d0e7c272190a94c27fd5cc &lt;https://gitorious.org/+qtwebkit-developers/webkit/qtwebkit/commit/3ecec08c9c7638a214d0e7c272190a94c27fd5cc&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>85218</attachid>
            <date>2011-03-09 12:53:14 -0800</date>
            <delta_ts>2011-03-10 17:14:15 -0800</delta_ts>
            <desc>Change bitfield integers to be signed by default on RVCT compiler.</desc>
            <filename>rvct_signed_integers.diff</filename>
            <type>text/plain</type>
            <size>1362</size>
            <attacher name="Viatcheslav Ostapenko">ostap73</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0NoYW5nZUxvZyBiL0NoYW5nZUxvZwppbmRleCBmZGQzNTA5Li43YWM0NDUz
IDEwMDY0NAotLS0gYS9DaGFuZ2VMb2cKKysrIGIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcgQEAK
KzIwMTEtMDMtMDkgIFZpYXRjaGVzbGF2IE9zdGFwZW5rbyAgPG9zdGFwZW5rby52aWF0Y2hlc2xh
dkBub2tpYS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAg
ICAgICAgW1F0XSBUZXh0IGxheW91dCBpcyBicm9rZW4gb24gU3ltYmlhbgorICAgICAgICBodHRw
czovL2J1Z3Mud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